Eclipse SUMO - Simulation of Urban MObility
GNEHierarchicalElementParents::ParentConnections Struct Reference

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

#include <GNEHierarchicalElementParents.h>

Collaboration diagram for GNEHierarchicalElementParents::ParentConnections:

Public Member Functions

void draw (const GUIVisualizationSettings &s, const GUIGlObjectType parentType) const
 draw connections between Parent and childrens More...
 
 ParentConnections (GNEHierarchicalElementParents *hierarchicalElement)
 constructor More...
 
void update ()
 update Connection's geometry More...
 

Data Fields

std::vector< PositionVectorconnectionPositions
 Matrix with the Vertex's positions of connections between parents an their children. More...
 
std::vector< std::pair< Position, double > > symbolsPositionAndRotation
 position and rotation of every symbol over lane More...
 

Private Attributes

GNEHierarchicalElementParentsmyHierarchicalElement
 pointer to hierarchical element parent More...
 

Detailed Description

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

Definition at line 149 of file GNEHierarchicalElementParents.h.

Constructor & Destructor Documentation

◆ ParentConnections()

GNEHierarchicalElementParents::ParentConnections::ParentConnections ( GNEHierarchicalElementParents hierarchicalElement)

constructor

Definition at line 222 of file GNEHierarchicalElementParents.cpp.

Member Function Documentation

◆ draw()

void GNEHierarchicalElementParents::ParentConnections::draw ( const GUIVisualizationSettings s,
const GUIGlObjectType  parentType 
) const

draw connections between Parent and childrens

Definition at line 316 of file GNEHierarchicalElementParents.cpp.

References GUIVisualizationColorSettings::childConnections, connectionPositions, GLHelper::drawLine(), and GLHelper::setColor().

◆ update()

Field Documentation

◆ connectionPositions

std::vector<PositionVector> GNEHierarchicalElementParents::ParentConnections::connectionPositions

Matrix with the Vertex's positions of connections between parents an their children.

Definition at line 163 of file GNEHierarchicalElementParents.h.

Referenced by draw(), and update().

◆ myHierarchicalElement

GNEHierarchicalElementParents* GNEHierarchicalElementParents::ParentConnections::myHierarchicalElement
private

pointer to hierarchical element parent

Definition at line 167 of file GNEHierarchicalElementParents.h.

Referenced by update().

◆ symbolsPositionAndRotation

std::vector<std::pair<Position, double> > GNEHierarchicalElementParents::ParentConnections::symbolsPositionAndRotation

position and rotation of every symbol over lane

Definition at line 160 of file GNEHierarchicalElementParents.h.

Referenced by update().


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