18 #ifndef AGXPOWERLINE_SUB_GRAPH_ROUTER_H
19 #define AGXPOWERLINE_SUB_GRAPH_ROUTER_H
29 namespace agxPowerLine
32 class PhysicalDimension;
47 class ConstraintHolder;
50 namespace agxPowerLine
78 const SubGraph* getEnclosingGraph()
const;
81 const SubGraph* getRootEnclosingGraph()
const;
83 Unit* getEnclosingUnit();
84 const Unit* getEnclosingUnit()
const;
87 const Connector* getEnclosingConnector()
const;
92 bool isEnclosedWithin(
const SubGraph* component)
const;
112 virtual void prepareForStore();
113 virtual void prepareForRestore();
121 void spreadPowerLineToGraph();
133 virtual bool preUpdate(
agx::Real timeStep);
134 virtual bool postUpdate(
agx::Real timeStep);
InputRef< T > in(const char *name, T &obj)
Create an object with a name and a reference to the object that should be restored (usually a pointer...
Links two connections together.
Utility class to hold custom implementations of constraints.
SubGraphObserver m_enclosingGraph
OutputRef< Serializable > out(const char *name, const Serializable *obj)
Return an object that contain the name and the object that should be serialized to an archive...
AGX_DECLARE_VECTOR_TYPES(SubGraph)
#define AGX_DECLARE_POINTER_TYPES(type)
Representation of a name string.
Base class providing referencing counted objects.
agx::Vector< UnitRef > UnitRefVector
agx::ref_ptr< Unit > UnitRef
agx::Vector< ConnectorRef > ConnectorRefVector
Abstract base class for storing/restoring a line/drums with version control.
agx::Vector< Unit * > UnitPtrVector
UnitRefVector m_internalUnits
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
Class for writing serialized data in binary format to a stream.
agx::ref_ptr< Connector > ConnectorRef
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
#define AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE(T)
Use this in a pure abstract Serializable class to add the required methods Important: Use full namesp...
PowerLine is the base class for a system of power transfer integrated into the rigid body simulation...
ConnectorRefVector m_internalConnectors
agx::Vector< Connector * > ConnectorPtrVector