![]() |
Eclipse SUMO - Simulation of Urban MObility
|
struct used for represent segments of element geometry More...
#include <GNEGeometry.h>
Public Member Functions | |
const PositionVector & | getShape () const |
get lane/lane2lane shape More... | |
const std::vector< double > & | getShapeLengths () const |
get lane/lane2lane shape lengths More... | |
const std::vector< double > & | getShapeRotations () const |
get lane/lane2lane shape rotations More... | |
Segment (const GNEAttributeCarrier *_AC, const GNELane *_lane, const bool _valid) | |
parameter constructor for lanes (geometry will be taked from lane) More... | |
Segment (const GNEAttributeCarrier *_AC, const GNELane *_lane, const PositionVector &shape, const std::vector< double > &shapeRotations, const std::vector< double > &shapeLengths, const bool _valid) | |
parameter constructor for segments which geometry will be storaged in segment More... | |
Segment (const GNEAttributeCarrier *_AC, const GNELane *currentLane, const GNELane *nextLane, const bool _valid) | |
parameter constructor for lane2lane connections More... | |
void | update (const PositionVector &shape, const std::vector< double > &shapeRotations, const std::vector< double > &shapeLengths) |
update segment More... | |
Data Fields | |
const GNEAttributeCarrier * | AC |
element More... | |
const GNEEdge * | edge |
edge More... | |
const GNEJunction * | junction |
junction More... | |
const GNELane * | lane |
lane More... | |
const bool | valid |
valid More... | |
Private Member Functions | |
Segment & | operator= (const Segment &other)=delete |
Invalidated assignment operator. More... | |
Private Attributes | |
std::vector< double > | mySegmentLengths |
segment lengths More... | |
std::vector< double > | mySegmentRotations |
segment rotation More... | |
PositionVector | mySegmentShape |
segment shape More... | |
bool | myUseLane2LaneShape |
flag to use lane2lane connection More... | |
bool | myUseLaneShape |
flag to use lane shape More... | |
struct used for represent segments of element geometry
Definition at line 119 of file GNEGeometry.h.
GNEGeometry::SegmentGeometry::Segment::Segment | ( | const GNEAttributeCarrier * | _AC, |
const GNELane * | _lane, | ||
const bool | _valid | ||
) |
parameter constructor for lanes (geometry will be taked from lane)
Definition at line 188 of file GNEGeometry.cpp.
GNEGeometry::SegmentGeometry::Segment::Segment | ( | const GNEAttributeCarrier * | _AC, |
const GNELane * | _lane, | ||
const PositionVector & | shape, | ||
const std::vector< double > & | shapeRotations, | ||
const std::vector< double > & | shapeLengths, | ||
const bool | _valid | ||
) |
parameter constructor for segments which geometry will be storaged in segment
Definition at line 199 of file GNEGeometry.cpp.
GNEGeometry::SegmentGeometry::Segment::Segment | ( | const GNEAttributeCarrier * | _AC, |
const GNELane * | currentLane, | ||
const GNELane * | nextLane, | ||
const bool | _valid | ||
) |
parameter constructor for lane2lane connections
Definition at line 214 of file GNEGeometry.cpp.
const PositionVector & GNEGeometry::SegmentGeometry::Segment::getShape | ( | ) | const |
get lane/lane2lane shape
Definition at line 244 of file GNEGeometry.cpp.
Referenced by GNEDemandElement::calculatePersonPlanPositionStartEndPos(), and GNEGeometry::drawSegmentGeometry().
const std::vector< double > & GNEGeometry::SegmentGeometry::Segment::getShapeLengths | ( | ) | const |
get lane/lane2lane shape lengths
Definition at line 264 of file GNEGeometry.cpp.
Referenced by GNEGeometry::drawSegmentGeometry().
const std::vector< double > & GNEGeometry::SegmentGeometry::Segment::getShapeRotations | ( | ) | const |
get lane/lane2lane shape rotations
Definition at line 254 of file GNEGeometry.cpp.
Referenced by GNEGeometry::drawSegmentGeometry().
Invalidated assignment operator.
void GNEGeometry::SegmentGeometry::Segment::update | ( | const PositionVector & | shape, |
const std::vector< double > & | shapeRotations, | ||
const std::vector< double > & | shapeLengths | ||
) |
update segment
Definition at line 229 of file GNEGeometry.cpp.
const GNEAttributeCarrier* GNEGeometry::SegmentGeometry::Segment::AC |
element
Definition at line 143 of file GNEGeometry.h.
const GNEEdge* GNEGeometry::SegmentGeometry::Segment::edge |
edge
Definition at line 146 of file GNEGeometry.h.
Referenced by GNEGeometry::updateGeometricPath().
const GNEJunction* GNEGeometry::SegmentGeometry::Segment::junction |
junction
Definition at line 152 of file GNEGeometry.h.
const GNELane* GNEGeometry::SegmentGeometry::Segment::lane |
lane
Definition at line 149 of file GNEGeometry.h.
Referenced by GNEGeometry::updateGeometricPath().
|
private |
segment lengths
Definition at line 171 of file GNEGeometry.h.
|
private |
segment rotation
Definition at line 168 of file GNEGeometry.h.
|
private |
segment shape
Definition at line 165 of file GNEGeometry.h.
|
private |
flag to use lane2lane connection
Definition at line 162 of file GNEGeometry.h.
|
private |
flag to use lane shape
Definition at line 159 of file GNEGeometry.h.
const bool GNEGeometry::SegmentGeometry::Segment::valid |
valid
Definition at line 155 of file GNEGeometry.h.