Eclipse SUMO - Simulation of Urban MObility
GNEAdditional::AdditionalGeometry Struct Reference

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

#include <GNEAdditional.h>

Collaboration diagram for GNEAdditional::AdditionalGeometry:

Public Member Functions

 AdditionalGeometry ()
 constructor More...
 
void calculateMultiShapeRotationsAndLengths ()
 calculate multi shape rotations and lenghts More...
 
void calculateMultiShapeUnified ()
 calculate multi shape unified More...
 
void calculateShapeRotationsAndLengths ()
 calculate shape rotations and lenghts More...
 
void clearGeometry ()
 reset geometry More...
 

Data Fields

std::vector< PositionVectormultiShape
 The multi-shape of the additional element (used by certain additionals) More...
 
std::vector< std::vector< double > > multiShapeLengths
 The lengths of the multi-shape shape parts. More...
 
std::vector< std::vector< double > > multiShapeRotations
 The rotations of the multi-shape parts. More...
 
PositionVector multiShapeUnified
 multi shape unified More...
 
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 elemement

Definition at line 51 of file GNEAdditional.h.

Constructor & Destructor Documentation

◆ AdditionalGeometry()

GNEAdditional::AdditionalGeometry::AdditionalGeometry ( )

constructor

Definition at line 49 of file GNEAdditional.cpp.

Member Function Documentation

◆ calculateMultiShapeRotationsAndLengths()

void GNEAdditional::AdditionalGeometry::calculateMultiShapeRotationsAndLengths ( )

calculate multi shape rotations and lenghts

Definition at line 98 of file GNEAdditional.cpp.

References Position::distanceTo(), M_PI, Position::x(), and Position::y().

Referenced by GNEDetectorE2::updateGeometry().

◆ calculateMultiShapeUnified()

void GNEAdditional::AdditionalGeometry::calculateMultiShapeUnified ( )

calculate multi shape unified

Definition at line 65 of file GNEAdditional.cpp.

Referenced by GNEDetectorE2::updateGeometry().

◆ calculateShapeRotationsAndLengths()

void GNEAdditional::AdditionalGeometry::calculateShapeRotationsAndLengths ( )

calculate shape rotations and lenghts

Definition at line 74 of file GNEAdditional.cpp.

References Position::distanceTo(), M_PI, Position::x(), and Position::y().

Referenced by GNEStoppingPlace::setStoppingPlaceGeometry(), and GNEDetectorE2::updateGeometry().

◆ clearGeometry()

Field Documentation

◆ multiShape

std::vector<PositionVector> GNEAdditional::AdditionalGeometry::multiShape

The multi-shape of the additional element (used by certain additionals)

Definition at line 71 of file GNEAdditional.h.

Referenced by GNEDetectorE2::drawGL(), and GNEDetectorE2::updateGeometry().

◆ multiShapeLengths

std::vector<std::vector<double> > GNEAdditional::AdditionalGeometry::multiShapeLengths

The lengths of the multi-shape shape parts.

Definition at line 83 of file GNEAdditional.h.

Referenced by GNEDetectorE2::drawGL().

◆ multiShapeRotations

std::vector<std::vector<double> > GNEAdditional::AdditionalGeometry::multiShapeRotations

The rotations of the multi-shape parts.

Definition at line 80 of file GNEAdditional.h.

Referenced by GNEDetectorE2::drawGL().

◆ multiShapeUnified

PositionVector GNEAdditional::AdditionalGeometry::multiShapeUnified

multi shape unified

Definition at line 86 of file GNEAdditional.h.

Referenced by GNEDetectorE2::drawGL(), and GNEDetector::getCenteringBoundary().

◆ shape

PositionVector GNEAdditional::AdditionalGeometry::shape

The shape of the additional element.

Definition at line 68 of file GNEAdditional.h.

Referenced by GNEPerson::calculatePersonPlanConnectionBusStop(), GNETAZ::commitGeometryMoving(), GNETAZ::commitShapeChange(), GNETAZ::deleteGeometryPoint(), GNEContainerStop::drawGL(), GNEBusStop::drawGL(), GNEChargingStation::drawGL(), GNEParkingArea::drawGL(), GNEVaporizer::drawGL(), GNERouteProbe::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorEntryExit::drawGL(), GNEAccess::drawGL(), GNEDetectorE1Instant::drawGL(), GNECalibrator::drawGL(), GNETAZ::drawGL(), GNEDetectorE2::drawGL(), GNETAZ::getAttribute(), GNEContainerStop::getCenteringBoundary(), GNEChargingStation::getCenteringBoundary(), GNEBusStop::getCenteringBoundary(), GNEParkingArea::getCenteringBoundary(), GNETAZ::getCenteringBoundary(), GNEVaporizer::getCenteringBoundary(), GNERouteProbe::getCenteringBoundary(), GNEAccess::getCenteringBoundary(), GNECalibrator::getCenteringBoundary(), GNEDetector::getCenteringBoundary(), GNEAdditional::getPopUpMenu(), GNETAZ::getPositionInView(), GNEAdditional::getShape(), GNETAZ::getVertexIndex(), GNETAZ::moveEntireShape(), GNETAZ::moveGeometry(), GNETAZ::moveVertexShape(), GNETAZ::setAttribute(), GNEStoppingPlace::setStoppingPlaceGeometry(), GNEChargingStation::updateGeometry(), GNEBusStop::updateGeometry(), GNEContainerStop::updateGeometry(), GNEParkingArea::updateGeometry(), GNEVaporizer::updateGeometry(), GNERouteProbe::updateGeometry(), GNEAccess::updateGeometry(), GNEDetectorE1::updateGeometry(), GNEDetectorEntryExit::updateGeometry(), GNEDetectorE1Instant::updateGeometry(), GNECalibrator::updateGeometry(), and GNEDetectorE2::updateGeometry().

◆ shapeLengths

std::vector<double> GNEAdditional::AdditionalGeometry::shapeLengths

The lengths of the single shape parts.

Definition at line 77 of file GNEAdditional.h.

Referenced by GNEBusStop::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEParkingArea::drawGL(), and GNEDetectorE2::drawGL().

◆ shapeRotations


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