![]() |
Eclipse SUMO - Simulation of Urban MObility
|
struct for pack all variables related with geometry of stop More...
#include <GNEDemandElement.h>
Public Member Functions | |
void | calculateShapeRotationsAndLengths () |
calculate shape rotations and lengths More... | |
void | clearGeometry () |
reset geometry More... | |
DemandElementGeometry () | |
constructor More... | |
Data Fields | |
PositionVector | shape |
The shape of the additional element. More... | |
std::vector< double > | shapeLengths |
The lengths of the single shape parts. More... | |
std::vector< double > | shapeRotations |
The rotations of the single shape parts. More... | |
struct for pack all variables related with geometry of stop
Definition at line 58 of file GNEDemandElement.h.
GNEDemandElement::DemandElementGeometry::DemandElementGeometry | ( | ) |
constructor
Definition at line 49 of file GNEDemandElement.cpp.
void GNEDemandElement::DemandElementGeometry::calculateShapeRotationsAndLengths | ( | ) |
calculate shape rotations and lengths
Definition at line 61 of file GNEDemandElement.cpp.
References Position::distanceTo(), M_PI, shape, shapeLengths, shapeRotations, Position::x(), and Position::y().
Referenced by GNEStop::updateGeometry().
void GNEDemandElement::DemandElementGeometry::clearGeometry | ( | ) |
reset geometry
Definition at line 53 of file GNEDemandElement.cpp.
References shape, shapeLengths, and shapeRotations.
Referenced by GNEStop::updateGeometry().
PositionVector GNEDemandElement::DemandElementGeometry::shape |
The shape of the additional element.
Definition at line 70 of file GNEDemandElement.h.
Referenced by GNEPerson::calculatePersonPlanConnectionStop(), calculateShapeRotationsAndLengths(), clearGeometry(), GNEStop::drawGL(), GNEStop::getCenteringBoundary(), and GNEStop::updateGeometry().
std::vector<double> GNEDemandElement::DemandElementGeometry::shapeLengths |
The lengths of the single shape parts.
Definition at line 76 of file GNEDemandElement.h.
Referenced by calculateShapeRotationsAndLengths(), clearGeometry(), GNEStop::drawGL(), and GNEStop::updateGeometry().
std::vector<double> GNEDemandElement::DemandElementGeometry::shapeRotations |
The rotations of the single shape parts.
Definition at line 73 of file GNEDemandElement.h.
Referenced by calculateShapeRotationsAndLengths(), clearGeometry(), GNEStop::drawGL(), and GNEStop::updateGeometry().