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

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

#include <GNEGeometry.h>

Collaboration diagram for GNEGeometry::ParentConnections:
[legend]

Public Member Functions

void draw (const GUIVisualizationSettings &s, const GUIGlObjectType parentType) const
 draw connections between Parent and childrens More...
 
 ParentConnections ()
 
 ParentConnections (GNEHierarchicalElement *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

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

Constructor & Destructor Documentation

◆ ParentConnections() [1/2]

GNEGeometry::ParentConnections::ParentConnections ( )
inline

Definition at line 449 of file GNEGeometry.h.

◆ ParentConnections() [2/2]

GNEGeometry::ParentConnections::ParentConnections ( GNEHierarchicalElement hierarchicalElement)

constructor

Definition at line 858 of file GNEGeometry.cpp.

Member Function Documentation

◆ draw()

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

draw connections between Parent and childrens

Definition at line 948 of file GNEGeometry.cpp.

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

◆ update()

void GNEGeometry::ParentConnections::update ( )

update Connection's geometry

Definition at line 863 of file GNEGeometry.cpp.

References connectionPositions, GNEHierarchicalElement::getParentAdditionals(), GNEHierarchicalElement::getParentEdges(), GNEHierarchicalElement::getParentLanes(), GNEHierarchicalElement::getPositionInView(), myHierarchicalElement, symbolsPositionAndRotation, Position::x(), and Position::y().

Referenced by GNEHierarchicalElement::addChildElement(), and GNEHierarchicalElement::removeChildElement().

Here is the caller graph for this function:

Field Documentation

◆ connectionPositions

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

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

Definition at line 464 of file GNEGeometry.h.

Referenced by draw(), and update().

◆ myHierarchicalElement

GNEHierarchicalElement* GNEGeometry::ParentConnections::myHierarchicalElement
private

pointer to hierarchical element parent

Definition at line 468 of file GNEGeometry.h.

Referenced by update().

◆ symbolsPositionAndRotation

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

position and rotation of every symbol over lane

Definition at line 461 of file GNEGeometry.h.

Referenced by update().


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