![]() |
Eclipse SUMO - Simulation of Urban MObility
|
struct used for represent segments of element geometry More...
#include <GNEGeometry.h>
Public Member Functions | |
| const GNEJunction * | getJunction () const |
| junction More... | |
| const GNELane * | getLane () const |
| lane (only for lane segments) More... | |
| 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... | |
| bool | getValid () const |
| valid More... | |
| bool | isLaneSegment () const |
| return true if this is a lane segment (i.e. myNextLane is nullptr) More... | |
| Segment (const GNELane *lane, const bool valid) | |
| parameter constructor for lanes (geometry will be taked from lane) More... | |
| Segment (const GNELane *lane, const Geometry &geometry, const bool valid) | |
| parameter constructor for segments which geometry will be storaged in segment More... | |
| Segment (const GNELane *lane, const GNELane *nextLane, const bool valid) | |
| parameter constructor for lane2lane connections More... | |
| void | update (const Geometry &geometry) |
| update segment using geometry More... | |
| void | update (const GNELane *lane) |
| update segment using lane More... | |
Protected Attributes | |
| const GNELane * | myLane |
| lane More... | |
| const GNELane * | myNextLane |
| nextLane More... | |
| bool | myUseLaneShape |
| flag to use lane shape More... | |
| const bool | myValid |
| valid More... | |
Private Member Functions | |
| Segment & | operator= (const Segment &other)=delete |
| Invalidated assignment operator. More... | |
Private Attributes | |
| Geometry | mySegmentGeometry |
| geometry used in segment More... | |
struct used for represent segments of element geometry
Definition at line 264 of file GNEGeometry.h.
| GNEGeometry::SegmentGeometry::Segment::Segment | ( | const GNELane * | lane, |
| const bool | valid | ||
| ) |
parameter constructor for lanes (geometry will be taked from lane)
Definition at line 538 of file GNEGeometry.cpp.
| GNEGeometry::SegmentGeometry::Segment::Segment | ( | const GNELane * | lane, |
| const Geometry & | geometry, | ||
| const bool | valid | ||
| ) |
parameter constructor for segments which geometry will be storaged in segment
Definition at line 546 of file GNEGeometry.cpp.
| GNEGeometry::SegmentGeometry::Segment::Segment | ( | const GNELane * | lane, |
| const GNELane * | nextLane, | ||
| const bool | valid | ||
| ) |
parameter constructor for lane2lane connections
Definition at line 555 of file GNEGeometry.cpp.
| const GNEJunction * GNEGeometry::SegmentGeometry::Segment::getJunction | ( | ) | const |
junction
Definition at line 624 of file GNEGeometry.cpp.
References GNEHierarchicalElement::getParentJunctions().
| const GNELane * GNEGeometry::SegmentGeometry::Segment::getLane | ( | ) | const |
lane (only for lane segments)
Definition at line 618 of file GNEGeometry.cpp.
Referenced by GNEGeometry::updateGeometricPath().
| const PositionVector & GNEGeometry::SegmentGeometry::Segment::getShape | ( | ) | const |
get lane/lane2lane shape
Definition at line 582 of file GNEGeometry.cpp.
Referenced by GNEGeometry::drawSegmentGeometry().
| const std::vector< double > & GNEGeometry::SegmentGeometry::Segment::getShapeLengths | ( | ) | const |
get lane/lane2lane shape lengths
Definition at line 606 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 594 of file GNEGeometry.cpp.
Referenced by GNEGeometry::drawSegmentGeometry().
| bool GNEGeometry::SegmentGeometry::Segment::getValid | ( | ) | const |
valid
Definition at line 630 of file GNEGeometry.cpp.
| bool GNEGeometry::SegmentGeometry::Segment::isLaneSegment | ( | ) | const |
return true if this is a lane segment (i.e. myNextLane is nullptr)
Definition at line 636 of file GNEGeometry.cpp.
Invalidated assignment operator.
| void GNEGeometry::SegmentGeometry::Segment::update | ( | const Geometry & | geometry | ) |
update segment using geometry
Definition at line 564 of file GNEGeometry.cpp.
| void GNEGeometry::SegmentGeometry::Segment::update | ( | const GNELane * | lane | ) |
update segment using lane
Definition at line 573 of file GNEGeometry.cpp.
|
protected |
lane
Definition at line 305 of file GNEGeometry.h.
|
protected |
nextLane
Definition at line 308 of file GNEGeometry.h.
|
private |
geometry used in segment
Definition at line 318 of file GNEGeometry.h.
|
protected |
flag to use lane shape
Definition at line 314 of file GNEGeometry.h.
|
protected |
valid
Definition at line 311 of file GNEGeometry.h.