Eclipse SUMO - Simulation of Urban MObility
GNEDemandElement::DemandElementGeometry Struct Reference

struct for pack all variables related with geometry of stop More...

#include <GNEDemandElement.h>

Collaboration diagram for GNEDemandElement::DemandElementGeometry:

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

Detailed Description

struct for pack all variables related with geometry of stop

Definition at line 58 of file GNEDemandElement.h.

Constructor & Destructor Documentation

◆ DemandElementGeometry()

GNEDemandElement::DemandElementGeometry::DemandElementGeometry ( )

constructor

Definition at line 49 of file GNEDemandElement.cpp.

Member Function Documentation

◆ calculateShapeRotationsAndLengths()

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

◆ clearGeometry()

void GNEDemandElement::DemandElementGeometry::clearGeometry ( )

reset geometry

Definition at line 53 of file GNEDemandElement.cpp.

References shape, shapeLengths, and shapeRotations.

Referenced by GNEStop::updateGeometry().

Field Documentation

◆ shape

PositionVector GNEDemandElement::DemandElementGeometry::shape

◆ shapeLengths

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

◆ shapeRotations

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


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