Eclipse SUMO - Simulation of Urban MObility
GNEGeometry::SegmentGeometry::Segment Class Reference

struct used for represent segments of element geometry More...

#include <GNEGeometry.h>

Collaboration diagram for GNEGeometry::SegmentGeometry::Segment:
[legend]

Public Member Functions

const GNEJunctiongetJunction () const
 junction More...
 
const GNELanegetLane () const
 lane (only for lane segments) More...
 
const PositionVectorgetShape () 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 GNELanemyLane
 lane More...
 
const GNELanemyNextLane
 nextLane More...
 
bool myUseLaneShape
 flag to use lane shape More...
 
const bool myValid
 valid More...
 

Private Member Functions

Segmentoperator= (const Segment &other)=delete
 Invalidated assignment operator. More...
 

Private Attributes

Geometry mySegmentGeometry
 geometry used in segment More...
 

Detailed Description

struct used for represent segments of element geometry

Definition at line 264 of file GNEGeometry.h.

Constructor & Destructor Documentation

◆ Segment() [1/3]

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.

◆ Segment() [2/3]

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.

◆ Segment() [3/3]

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.

Member Function Documentation

◆ getJunction()

const GNEJunction * GNEGeometry::SegmentGeometry::Segment::getJunction ( ) const

junction

Definition at line 624 of file GNEGeometry.cpp.

References GNEHierarchicalElement::getParentJunctions().

◆ getLane()

const GNELane * GNEGeometry::SegmentGeometry::Segment::getLane ( ) const

lane (only for lane segments)

Definition at line 618 of file GNEGeometry.cpp.

Referenced by GNEGeometry::updateGeometricPath().

Here is the caller graph for this function:

◆ getShape()

const PositionVector & GNEGeometry::SegmentGeometry::Segment::getShape ( ) const

get lane/lane2lane shape

Definition at line 582 of file GNEGeometry.cpp.

Referenced by GNEGeometry::drawSegmentGeometry().

Here is the caller graph for this function:

◆ getShapeLengths()

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().

Here is the caller graph for this function:

◆ getShapeRotations()

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().

Here is the caller graph for this function:

◆ getValid()

bool GNEGeometry::SegmentGeometry::Segment::getValid ( ) const

valid

Definition at line 630 of file GNEGeometry.cpp.

◆ isLaneSegment()

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.

◆ operator=()

Segment& GNEGeometry::SegmentGeometry::Segment::operator= ( const Segment other)
privatedelete

Invalidated assignment operator.

◆ update() [1/2]

void GNEGeometry::SegmentGeometry::Segment::update ( const Geometry geometry)

update segment using geometry

Definition at line 564 of file GNEGeometry.cpp.

◆ update() [2/2]

void GNEGeometry::SegmentGeometry::Segment::update ( const GNELane lane)

update segment using lane

Definition at line 573 of file GNEGeometry.cpp.

Field Documentation

◆ myLane

const GNELane* GNEGeometry::SegmentGeometry::Segment::myLane
protected

lane

Definition at line 305 of file GNEGeometry.h.

◆ myNextLane

const GNELane* GNEGeometry::SegmentGeometry::Segment::myNextLane
protected

nextLane

Definition at line 308 of file GNEGeometry.h.

◆ mySegmentGeometry

Geometry GNEGeometry::SegmentGeometry::Segment::mySegmentGeometry
private

geometry used in segment

Definition at line 318 of file GNEGeometry.h.

◆ myUseLaneShape

bool GNEGeometry::SegmentGeometry::Segment::myUseLaneShape
protected

flag to use lane shape

Definition at line 314 of file GNEGeometry.h.

◆ myValid

const bool GNEGeometry::SegmentGeometry::Segment::myValid
protected

valid

Definition at line 311 of file GNEGeometry.h.


The documentation for this class was generated from the following files: