![]() |
Eclipse SUMO - Simulation of Urban MObility
|
struct for pack all variables and functions relative to connections between hierarchical element and their children More...
#include <GNEHierarchicalElementChildren.h>
Data Structures | |
| struct | ConnectionGeometry |
| connection geometry More... | |
Public Member Functions | |
| ChildConnections (GNEHierarchicalElementChildren *hierarchicalElement) | |
| constructor More... | |
| void | draw (const GUIVisualizationSettings &s, const GUIGlObjectType parentType) const |
| draw connections between Parent and childrens 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< ConnectionGeometry > | symbolsPositionAndRotation |
| position and rotation of every symbol over lane More... | |
Private Attributes | |
| GNEHierarchicalElementChildren * | 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 189 of file GNEHierarchicalElementChildren.h.
| GNEHierarchicalElementChildren::ChildConnections::ChildConnections | ( | GNEHierarchicalElementChildren * | hierarchicalElement | ) |
constructor
Definition at line 513 of file GNEHierarchicalElementChildren.cpp.
| void GNEHierarchicalElementChildren::ChildConnections::draw | ( | const GUIVisualizationSettings & | s, |
| const GUIGlObjectType | parentType | ||
| ) | const |
draw connections between Parent and childrens
Definition at line 605 of file GNEHierarchicalElementChildren.cpp.
References GUIVisualizationColorSettings::childConnections, GUIVisualizationSettings::colorSettings, connectionPositions, GUIVisualizationSettings::drawForSelecting, GLHelper::drawLine(), and GLHelper::setColor().
Referenced by GNEHierarchicalElementChildren::drawChildConnections().
| void GNEHierarchicalElementChildren::ChildConnections::update | ( | ) |
update Connection's geometry
Definition at line 518 of file GNEHierarchicalElementChildren.cpp.
References connectionPositions, GNEHierarchicalElementChildren::getPositionInView(), GNEHierarchicalElementChildren::myAdditionalChildren, GNEHierarchicalElementChildren::myEdgeChildren, myHierarchicalElement, GNEHierarchicalElementChildren::myLaneChildren, symbolsPositionAndRotation, Position::x(), and Position::y().
Referenced by GNEHierarchicalElementChildren::addLaneChild(), GNEHierarchicalElementChildren::addShapeChild(), GNEHierarchicalElementChildren::changeEdgeChildren(), GNEHierarchicalElementChildren::changeLaneChildren(), GNEHierarchicalElementChildren::removeEdgeChild(), GNEHierarchicalElementChildren::removeLaneChild(), GNEHierarchicalElementChildren::removeShapeChild(), GNEDetectorE3::updateAdditionalParent(), GNEHierarchicalElementChildren::updateChildConnections(), GNEDetectorE3::updateGeometry(), GNEVariableSpeedSign::updateGeometry(), and GNERerouter::updateGeometry().
| std::vector<PositionVector> GNEHierarchicalElementChildren::ChildConnections::connectionPositions |
Matrix with the Vertex's positions of connections between parents an their children.
Definition at line 224 of file GNEHierarchicalElementChildren.h.
Referenced by draw(), GNEDetectorE3::drawGL(), GNEVariableSpeedSign::drawGL(), GNERerouter::drawGL(), and update().
|
private |
pointer to hierarchical element parent
Definition at line 228 of file GNEHierarchicalElementChildren.h.
Referenced by update().
| std::vector<ConnectionGeometry> GNEHierarchicalElementChildren::ChildConnections::symbolsPositionAndRotation |
position and rotation of every symbol over lane
Definition at line 221 of file GNEHierarchicalElementChildren.h.
Referenced by GNEHierarchicalElementChildren::getChildPosition(), GNEHierarchicalElementChildren::getChildRotation(), and update().