Eclipse SUMO - Simulation of Urban MObility
GNEHierarchicalChildElements::ChildConnections Class Reference

class to pack all variables and functions relative to connections between hierarchical element and their children More...

#include <GNEHierarchicalChildElements.h>

Collaboration diagram for GNEHierarchicalChildElements::ChildConnections:
[legend]

Data Structures

class  ConnectionGeometry
 connection geometry More...
 

Public Member Functions

 ChildConnections (GNEHierarchicalChildElements *hierarchicalElement)
 constructor More...
 
void drawConnection (const GUIVisualizationSettings &s, const GUIGlObjectType parentType, const double exaggeration) const
 draw connections between Parent and childrens More...
 
void drawDottedConnection (const GUIVisualizationSettings &s, const double exaggeration) const
 draw dotted connections between Parent and childrens More...
 
void update ()
 update Connection's geometry More...
 

Data Fields

std::vector< GNEGeometry::GeometryconnectionsGeometries
 geometry connections between parents an their children More...
 
std::vector< ConnectionGeometrysymbolsPositionAndRotation
 position and rotation of every symbol over lane More...
 

Private Attributes

GNEHierarchicalChildElementsmyHierarchicalElement
 pointer to hierarchical element parent More...
 

Detailed Description

class to pack all variables and functions relative to connections between hierarchical element and their children

Definition at line 161 of file GNEHierarchicalChildElements.h.

Constructor & Destructor Documentation

◆ ChildConnections()

GNEHierarchicalChildElements::ChildConnections::ChildConnections ( GNEHierarchicalChildElements hierarchicalElement)

constructor

Definition at line 622 of file GNEHierarchicalChildElements.cpp.

Member Function Documentation

◆ drawConnection()

void GNEHierarchicalChildElements::ChildConnections::drawConnection ( const GUIVisualizationSettings s,
const GUIGlObjectType  parentType,
const double  exaggeration 
) const

draw connections between Parent and childrens

Definition at line 706 of file GNEHierarchicalChildElements.cpp.

References GUIVisualizationColorSettings::childConnections, GUIVisualizationSettings::colorSettings, connectionsGeometries, GLHelper::drawBoxLines(), and GLHelper::setColor().

Referenced by GNEHierarchicalChildElements::drawChildConnections().

Here is the caller graph for this function:

◆ drawDottedConnection()

void GNEHierarchicalChildElements::ChildConnections::drawDottedConnection ( const GUIVisualizationSettings s,
const double  exaggeration 
) const

draw dotted connections between Parent and childrens

Definition at line 724 of file GNEHierarchicalChildElements.cpp.

References connectionsGeometries, GNEGeometry::drawDottedContourLane(), and GNEGeometry::DottedGeometry::setWidth().

Referenced by GNEHierarchicalChildElements::drawChildDottedConnections().

Here is the caller graph for this function:

◆ update()

Field Documentation

◆ connectionsGeometries

std::vector<GNEGeometry::Geometry> GNEHierarchicalChildElements::ChildConnections::connectionsGeometries

geometry connections between parents an their children

Definition at line 211 of file GNEHierarchicalChildElements.h.

Referenced by drawConnection(), drawDottedConnection(), and update().

◆ myHierarchicalElement

GNEHierarchicalChildElements* GNEHierarchicalChildElements::ChildConnections::myHierarchicalElement
private

pointer to hierarchical element parent

Definition at line 215 of file GNEHierarchicalChildElements.h.

Referenced by update().

◆ symbolsPositionAndRotation

std::vector<ConnectionGeometry> GNEHierarchicalChildElements::ChildConnections::symbolsPositionAndRotation

position and rotation of every symbol over lane

Definition at line 208 of file GNEHierarchicalChildElements.h.

Referenced by GNEHierarchicalChildElements::getChildPosition(), GNEHierarchicalChildElements::getChildRotation(), and update().


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