30 myPathManager(pathManager),
31 myPathElement(element),
34 myNextSegment(nullptr),
35 myPreviousSegment(nullptr),
36 myLabelSegment(false),
38 myFromContour(nullptr),
39 myToContour(nullptr) {
41 if (segments.size() > 0) {
60 segments.push_back(
this);
67 myPathManager(pathManager),
68 myPathElement(element),
71 myNextSegment(nullptr),
72 myPreviousSegment(nullptr),
73 myLabelSegment(false),
75 myFromContour(nullptr),
76 myToContour(nullptr) {
78 if (segments.size() > 0) {
97 segments.push_back(
this);
232 myPathManager(nullptr),
233 myPathElement(nullptr),
236 myNextSegment(nullptr),
237 myPreviousSegment(nullptr),
238 myLabelSegment(false) {
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
void addSegmentInLaneSegments(GNESegment *segment, const GNELane *lane)
add segments int laneSegments (called by GNESegment constructor)
bool myCleaningSegments
flag for clear segments quickly
void clearSegmentFromJunctionAndLaneSegments(GNESegment *segment)
clear segments from junction and lane Segments (called by GNESegment destructor)
void addSegmentInJunctionSegments(GNESegment *segment, const GNEJunction *junction)
add segments int junctionSegments (called by GNESegment constructor)
const GNELane * getLane() const
get lane associated with this segment
void markSegmentLabel()
mark segment as middle segment
GNEContour * myContour
contour associated with segment
const GNEJunction * getJunction() const
get junction associated with this segment
GNESegment * getPreviousSegment() const
get previous segment
GNESegment * myNextSegment
pointer to next segment
bool myLabelSegment
flag for check if this segment is a label segment
const GNELane * getNextLane() const
get next lane
GNEContour * myToContour
to contour, used for moving elements (only in the last segment)
const GNELane * getPreviousLane() const
get previous lane
GNEContour * myFromContour
from contour, used for moving elements (only in the first segment)
int myJunctionIndex
junction index
GNESegment * myPreviousSegment
pointer to previous segment
GNESegment * getNextSegment() const
functions related with the other paht segments
GNEContour * getFromContour() const
get from contour associated with segment (only if this is the first path segment)
const GNEJunction * myJunction
junction associated with this segment
int getJunctionIndex() const
get lane index
GNEPathElement * getPathElement() const
bool isFirstSegment() const
check if segment is the first path's segment
const GNELane * myLane
lane associated with this segment
GNESegment()
default constructor
GNEContour * getContour() const
int myLaneIndex
lane index
int getLaneIndex() const
get lane index
GNEPathManager * myPathManager
pointer to path manager
bool isLastSegment() const
check if segment is the last path's segment
GNEPathElement * myPathElement
path element associated with this segment
bool isLabelSegment() const
check if segment is label segment
GNEContour * getToContour() const
get to contour associated with segment (only if this is the last path segment)