Eclipse SUMO - Simulation of Urban MObility
GNENetElement::NetElementGeometry Struct Reference

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

#include <GNENetElement.h>

Collaboration diagram for GNENetElement::NetElementGeometry:

Public Member Functions

void calculateShapeRotationsAndLengths ()
 calculate shape rotations and lengths More...
 
void clearGeometry ()
 reset geometry More...
 
 NetElementGeometry ()
 constructor More...
 

Data Fields

PositionVector shape
 The shape of the netElement 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 46 of file GNENetElement.h.

Constructor & Destructor Documentation

◆ NetElementGeometry()

GNENetElement::NetElementGeometry::NetElementGeometry ( )

constructor

Definition at line 43 of file GNENetElement.cpp.

Member Function Documentation

◆ calculateShapeRotationsAndLengths()

void GNENetElement::NetElementGeometry::calculateShapeRotationsAndLengths ( )

calculate shape rotations and lengths

Definition at line 55 of file GNENetElement.cpp.

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

Referenced by GNEConnection::updateGeometry(), GNECrossing::updateGeometry(), and GNELane::updateGeometry().

◆ clearGeometry()

void GNENetElement::NetElementGeometry::clearGeometry ( )

reset geometry

Definition at line 47 of file GNENetElement.cpp.

Referenced by GNEConnection::updateGeometry(), GNECrossing::updateGeometry(), and GNELane::updateGeometry().

Field Documentation

◆ shape

PositionVector GNENetElement::NetElementGeometry::shape

◆ shapeLengths

std::vector<double> GNENetElement::NetElementGeometry::shapeLengths

◆ shapeRotations

std::vector<double> GNENetElement::NetElementGeometry::shapeRotations

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