![]() |
Eclipse SUMO - Simulation of Urban MObility
|
struct for pack all variables and functions relative to connections between hierarchical element and their children More...
#include <GNEGeometry.h>
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< PositionVector > | connectionPositions |
| 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 | |
| GNEHierarchicalElement * | myHierarchicalElement |
| pointer to hierarchical element parent More... | |
struct for pack all variables and functions relative to connections between hierarchical element and their children
Definition at line 448 of file GNEGeometry.h.
|
inline |
Definition at line 449 of file GNEGeometry.h.
| GNEGeometry::ParentConnections::ParentConnections | ( | GNEHierarchicalElement * | hierarchicalElement | ) |
constructor
Definition at line 858 of file GNEGeometry.cpp.
| 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().
| 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().
| 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.
|
private |
pointer to hierarchical element parent
Definition at line 468 of file GNEGeometry.h.
Referenced by update().
| 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().