|
AGX Dynamics 2.42.3.1
|
PowerLineTraverser that stores the nodes it visits. More...
#include <PowerLineTraverser.h>
Inheritance diagram for agxPowerLine::PowerLineCollector:Protected Member Functions | |
| virtual bool | visit (agxPowerLine::Connector *connector) override |
| Called when a Connector is encountered in the graph, if the GraphNodeTypes variable includes CONNECTORS. | |
| virtual bool | visit (agxPowerLine::PhysicalDimension *dimension) override |
| Called when a PhysicalDimension is encountered in the graph, if the GraphNodeTypes variable includes DIMENSIONS. | |
| virtual bool | visit (agxPowerLine::Unit *unit) override |
| Called when a Unit is encountered in the graph, if the GraphNodeTypes variable includes UNITS. | |
Protected Member Functions inherited from agxPowerLine::AbstractPowerLineTraverser< agxPowerLine::Unit *, agxPowerLine::PhysicalDimension *, agxPowerLine::Connector *, agxPowerLine::SubGraph * > | |
| virtual | ~AbstractPowerLineTraverser () |
| virtual bool | shouldQueueChildren (agxPowerLine::Connector * connector) |
| virtual bool | shouldQueueChildren (agxPowerLine::PhysicalDimension * dimension) |
| virtual bool | shouldQueueChildren (agxPowerLine::Unit * unit) |
| virtual bool | visit (agxPowerLine::Connector * connector)=0 |
| Called when a Connector is encountered in the graph, if the GraphNodeTypes variable includes CONNECTORS. | |
| virtual bool | visit (agxPowerLine::PhysicalDimension * dimension)=0 |
| Called when a PhysicalDimension is encountered in the graph, if the GraphNodeTypes variable includes DIMENSIONS. | |
| virtual bool | visit (agxPowerLine::Unit * unit)=0 |
| Called when a Unit is encountered in the graph, if the GraphNodeTypes variable includes UNITS. | |
Additional Inherited Members | |
Public Types inherited from agxPowerLine::AbstractPowerLineTraverser< agxPowerLine::Unit *, agxPowerLine::PhysicalDimension *, agxPowerLine::Connector *, agxPowerLine::SubGraph * > | |
| enum | TraversalMode |
| Enumeration that controls how the traversal should behave when encountering compound GraphNodes. More... | |
PowerLineTraverser that stores the nodes it visits.
It can be seen as taking a snapshot of the graph contents so that the same nodes can be processed later even if the graph itself has been reconfigured.
The collector keeps references to the collected nodes so that they stay valid even if they are removed from the graph itself.
Definition at line 184 of file PowerLineTraverser.h.
| agxPowerLine::PowerLineCollector::PowerLineCollector | ( | ) |
| agxPowerLine::PowerLineCollector::PowerLineCollector | ( | agxPowerLine::PowerLine * | source, |
| TraversalMode | mode | ||
| ) |
| agxPowerLine::PowerLineCollector::PowerLineCollector | ( | agxPowerLine::Unit * | source, |
| TraversalMode | mode | ||
| ) |
| agxPowerLine::PowerLineCollector::PowerLineCollector | ( | agxPowerLine::GraphNodeTypes | typesToCollect, |
| agxPowerLine::Unit * | source, | ||
| TraversalMode | mode | ||
| ) |
| const agxPowerLine::ConnectorRefVector & agxPowerLine::PowerLineCollector::getConnectors | ( | ) |
| const agxPowerLine::PhysicalDimensionRefVector & agxPowerLine::PowerLineCollector::getDimensions | ( | ) |
| const agxPowerLine::UnitRefVector & agxPowerLine::PowerLineCollector::getUnits | ( | ) |
|
overrideprotectedvirtual |
Called when a Connector is encountered in the graph, if the GraphNodeTypes variable includes CONNECTORS.
|
overrideprotectedvirtual |
Called when a PhysicalDimension is encountered in the graph, if the GraphNodeTypes variable includes DIMENSIONS.
|
overrideprotectedvirtual |
Called when a Unit is encountered in the graph, if the GraphNodeTypes variable includes UNITS.