![]() |
Eclipse SUMO - Simulation of Urban MObility
|
struct for pack all variables related with geometry of elemements divided in segments More...
#include <GNEDemandElement.h>
Data Structures | |
| struct | Segment |
| struct used for represent segments of demand element geometry More... | |
Public Member Functions | |
| std::vector< Segment >::const_iterator | begin () const |
| begin iterator More... | |
| void | calculatePartialShapeRotationsAndLengths () |
| calculate partial shape, rotations and lengths More... | |
| void | clearDemandElementSegmentGeometry () |
| clear demand element geometry More... | |
| DemandElementSegmentGeometry () | |
| constructor More... | |
| std::vector< Segment >::const_iterator | end () const |
| end iterator More... | |
| void | insertEdgeLengthRotSegment (const GNEDemandElement *element, const GNEEdge *edge, const Position pos, double length, double rotation, const bool visible, const bool valid) |
| insert edge segment with length and rotation (used to avoid unnecessary calculation in calculatePartialShapeRotationsAndLengths) More... | |
| void | insertEdgeSegment (const GNEDemandElement *element, const GNEEdge *edge, const Position pos, const bool visible, const bool valid) |
| insert edge segment More... | |
| void | insertJunctionSegment (const GNEDemandElement *element, const GNEJunction *junction, const Position pos, const bool visible, const bool valid) |
| insert junction segment More... | |
Data Fields | |
| bool | geometryDeprecated |
| mark geometry as deprecated (used to avoid multiple updates) More... | |
Private Attributes | |
| std::vector< Segment > | myShapeSegments |
| vector of segments that constitutes the shape More... | |
struct for pack all variables related with geometry of elemements divided in segments
Definition at line 80 of file GNEDemandElement.h.
| GNEDemandElement::DemandElementSegmentGeometry::DemandElementSegmentGeometry | ( | ) |
constructor
Definition at line 127 of file GNEDemandElement.cpp.
| std::vector< GNEDemandElement::DemandElementSegmentGeometry::Segment >::const_iterator GNEDemandElement::DemandElementSegmentGeometry::begin | ( | ) | const |
begin iterator
Definition at line 185 of file GNEDemandElement.cpp.
References myShapeSegments.
Referenced by GNEVehicle::drawGL(), GNEEdge::drawPartialRoute(), and GNEEdge::drawPartialTripFromTo().
| void GNEDemandElement::DemandElementSegmentGeometry::calculatePartialShapeRotationsAndLengths | ( | ) |
calculate partial shape, rotations and lengths
Definition at line 161 of file GNEDemandElement.cpp.
References Position::distanceTo2D(), M_PI, myShapeSegments, Position::x(), and Position::y().
Referenced by GNERoute::updateGeometry(), GNEPerson::updateGeometry(), and GNEVehicle::updateGeometry().
| void GNEDemandElement::DemandElementSegmentGeometry::clearDemandElementSegmentGeometry | ( | ) |
clear demand element geometry
Definition at line 154 of file GNEDemandElement.cpp.
References myShapeSegments.
Referenced by GNERoute::updateGeometry(), GNEPerson::updateGeometry(), and GNEVehicle::updateGeometry().
| std::vector< GNEDemandElement::DemandElementSegmentGeometry::Segment >::const_iterator GNEDemandElement::DemandElementSegmentGeometry::end | ( | ) | const |
end iterator
Definition at line 191 of file GNEDemandElement.cpp.
References myShapeSegments.
Referenced by GNEEdge::drawPartialRoute(), and GNEEdge::drawPartialTripFromTo().
| void GNEDemandElement::DemandElementSegmentGeometry::insertEdgeLengthRotSegment | ( | const GNEDemandElement * | element, |
| const GNEEdge * | edge, | ||
| const Position | pos, | ||
| double | length, | ||
| double | rotation, | ||
| const bool | visible, | ||
| const bool | valid | ||
| ) |
insert edge segment with length and rotation (used to avoid unnecessary calculation in calculatePartialShapeRotationsAndLengths)
Definition at line 140 of file GNEDemandElement.cpp.
References myShapeSegments.
Referenced by GNERoute::updateGeometry(), GNEPerson::updateGeometry(), and GNEVehicle::updateGeometry().
| void GNEDemandElement::DemandElementSegmentGeometry::insertEdgeSegment | ( | const GNEDemandElement * | element, |
| const GNEEdge * | edge, | ||
| const Position | pos, | ||
| const bool | visible, | ||
| const bool | valid | ||
| ) |
insert edge segment
Definition at line 133 of file GNEDemandElement.cpp.
References myShapeSegments.
Referenced by GNERoute::updateGeometry(), GNEPerson::updateGeometry(), and GNEVehicle::updateGeometry().
| void GNEDemandElement::DemandElementSegmentGeometry::insertJunctionSegment | ( | const GNEDemandElement * | element, |
| const GNEJunction * | junction, | ||
| const Position | pos, | ||
| const bool | visible, | ||
| const bool | valid | ||
| ) |
insert junction segment
Definition at line 147 of file GNEDemandElement.cpp.
References myShapeSegments.
Referenced by GNEPerson::calculateSmoothPersonPlanConnection(), GNERoute::updateGeometry(), and GNEVehicle::updateGeometry().
| bool GNEDemandElement::DemandElementSegmentGeometry::geometryDeprecated |
mark geometry as deprecated (used to avoid multiple updates)
Definition at line 147 of file GNEDemandElement.h.
Referenced by GNEVehicle::compute(), GNEDemandElement::markSegmentGeometryDeprecated(), GNERoute::setAttribute(), GNERoute::updateGeometry(), GNEPerson::updateGeometry(), and GNEVehicle::updateGeometry().
|
private |
vector of segments that constitutes the shape
Definition at line 151 of file GNEDemandElement.h.
Referenced by begin(), calculatePartialShapeRotationsAndLengths(), clearDemandElementSegmentGeometry(), end(), insertEdgeLengthRotSegment(), insertEdgeSegment(), and insertJunctionSegment().