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:
Collaboration graph

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 307 of file GNEAdditional.h.

Constructor & Destructor Documentation

◆ AdditionalGeometry()

GNEAdditional::AdditionalGeometry::AdditionalGeometry ( )

constructor

Definition at line 691 of file GNEAdditional.cpp.

Member Function Documentation

◆ calculateMultiShapeRotationsAndLengths()

void GNEAdditional::AdditionalGeometry::calculateMultiShapeRotationsAndLengths ( )

calculate multi shape rotations and lenghts

Definition at line 740 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 707 of file GNEAdditional.cpp.

Referenced by GNEDetectorE2::updateGeometry().

◆ calculateShapeRotationsAndLengths()

void GNEAdditional::AdditionalGeometry::calculateShapeRotationsAndLengths ( )

calculate shape rotations and lenghts

Definition at line 716 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 327 of file GNEAdditional.h.

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

◆ multiShapeLengths

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

The lengths of the multi-shape shape parts.

Definition at line 339 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 336 of file GNEAdditional.h.

Referenced by GNEDetectorE2::drawGL().

◆ multiShapeUnified

PositionVector GNEAdditional::AdditionalGeometry::multiShapeUnified

multi shape unified

Definition at line 342 of file GNEAdditional.h.

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

◆ shape

PositionVector GNEAdditional::AdditionalGeometry::shape

The shape of the additional element.

Definition at line 324 of file GNEAdditional.h.

Referenced by GNETAZ::commitGeometryMoving(), GNETAZ::commitShapeChange(), GNETAZ::deleteGeometryPoint(), GNEBusStop::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEParkingArea::drawGL(), GNEVaporizer::drawGL(), GNERouteProbe::drawGL(), GNEDetectorE3::drawGL(), GNEVariableSpeedSign::drawGL(), GNEAccess::drawGL(), GNERerouter::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorEntry::drawGL(), GNEDetectorExit::drawGL(), GNEDetectorE1Instant::drawGL(), GNECalibrator::drawGL(), GNETAZ::drawGL(), GNEDetectorE2::drawGL(), GNETAZ::getAttribute(), GNEAdditional::getCenteringBoundary(), GNEAdditional::getPopUpMenu(), GNETAZ::getPositionInView(), GNEAdditional::getShape(), GNETAZ::getVertexIndex(), GNETAZ::GNETAZ(), GNETAZ::moveEntireShape(), GNETAZ::moveGeometry(), GNETAZ::moveVertexShape(), GNETAZ::setAttribute(), GNEAdditional::BlockIcon::setRotation(), GNEStoppingPlace::setStoppingPlaceGeometry(), GNEChargingStation::updateGeometry(), GNEContainerStop::updateGeometry(), GNEBusStop::updateGeometry(), GNEParkingArea::updateGeometry(), GNEVaporizer::updateGeometry(), GNERouteProbe::updateGeometry(), GNEDetectorE3::updateGeometry(), GNEParkingSpace::updateGeometry(), GNEVariableSpeedSign::updateGeometry(), GNEAccess::updateGeometry(), GNERerouter::updateGeometry(), GNEDetectorEntry::updateGeometry(), GNEDetectorE1::updateGeometry(), GNEDetectorExit::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 333 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: