Eclipse SUMO - Simulation of Urban MObility
GNEGeometry::HierarchicalConnections Class Reference

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

#include <GNEGeometry.h>

Collaboration diagram for GNEGeometry::HierarchicalConnections:
[legend]

Data Structures

class  ConnectionGeometry
 connection geometry More...
 

Public Member Functions

void drawConnection (const GUIVisualizationSettings &s, const GNEAttributeCarrier *AC, const double exaggeration) const
 draw connections between Parent and childrens More...
 
void drawDottedConnection (const DottedContourType type, const GUIVisualizationSettings &s, const double exaggeration) const
 draw dotted connections between Parent and childrens More...
 
 HierarchicalConnections (GNEHierarchicalElement *hierarchicalElement)
 constructor 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

GNEHierarchicalElementmyHierarchicalElement
 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 446 of file GNEGeometry.h.

Constructor & Destructor Documentation

◆ HierarchicalConnections()

GNEGeometry::HierarchicalConnections::HierarchicalConnections ( GNEHierarchicalElement hierarchicalElement)

constructor

Definition at line 894 of file GNEGeometry.cpp.

Member Function Documentation

◆ drawConnection()

void GNEGeometry::HierarchicalConnections::drawConnection ( const GUIVisualizationSettings s,
const GNEAttributeCarrier AC,
const double  exaggeration 
) const

draw connections between Parent and childrens

Definition at line 978 of file GNEGeometry.cpp.

References RGBColor::changedBrightness(), GUIVisualizationColorSettings::childConnections, GUIVisualizationSettings::colorSettings, GLHelper::drawBoxLines(), GNEAttributeCarrier::isAttributeCarrierSelected(), GUIVisualizationColorSettings::selectedAdditionalColor, and GLHelper::setColor().

Referenced by GNEHierarchicalElement::drawHierarchicalConnections().

Here is the caller graph for this function:

◆ drawDottedConnection()

void GNEGeometry::HierarchicalConnections::drawDottedConnection ( const DottedContourType  type,
const GUIVisualizationSettings s,
const double  exaggeration 
) const

draw dotted connections between Parent and childrens

Definition at line 998 of file GNEGeometry.cpp.

References GNEGeometry::drawDottedContourLane(), GNEGeometry::FRONT, GLO_DOTTEDCONTOUR_FRONT, GLO_DOTTEDCONTOUR_INSPECTED, GNEGeometry::INSPECT, and GNEGeometry::DottedGeometry::setWidth().

Referenced by GNEHierarchicalElement::drawHierarchicalConnections().

Here is the caller graph for this function:

◆ update()

Field Documentation

◆ connectionsGeometries

std::vector<GNEGeometry::Geometry> GNEGeometry::HierarchicalConnections::connectionsGeometries

geometry connections between parents an their children

Definition at line 496 of file GNEGeometry.h.

◆ myHierarchicalElement

GNEHierarchicalElement* GNEGeometry::HierarchicalConnections::myHierarchicalElement
private

pointer to hierarchical element parent

Definition at line 500 of file GNEGeometry.h.

◆ symbolsPositionAndRotation

std::vector<ConnectionGeometry> GNEGeometry::HierarchicalConnections::symbolsPositionAndRotation

position and rotation of every symbol over lane

Definition at line 493 of file GNEGeometry.h.


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