18 #ifndef AGXPOWERLINE_SUB_GRAPH_ROUTER_H 19 #define AGXPOWERLINE_SUB_GRAPH_ROUTER_H 32 class PhysicalDimension;
47 class ConstraintHolder;
78 const SubGraph* getEnclosingGraph()
const;
88 const SubGraph* getRootEnclosingGraph()
const;
90 Unit* getEnclosingUnit();
91 const Unit* getEnclosingUnit()
const;
94 const Connector* getEnclosingConnector()
const;
99 bool isEnclosedWithin(
const SubGraph* component)
const;
119 virtual void prepareForStore();
120 virtual void prepareForRestore();
128 void spreadPowerLineToGraph();
140 virtual bool preUpdate(
agx::Real timeStep);
141 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...
#define AGX_DECLARE_POINTER_TYPES(type)
Representation of a name string.
agxPowerLine contains a collection of connected components that transport power across a system...
agx::Vector< Connector * > ConnectorPtrVector
Base class providing referencing counted objects.
agx::Vector< UnitRef > UnitRefVector
agx::ref_ptr< Unit > UnitRef
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
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...
#define AGX_DECLARE_VECTOR_TYPES(type)
PowerLine is the base class for a system of power transfer integrated into the rigid body simulation...
ConnectorRefVector m_internalConnectors
The agxUtil namespace contain classes and methods for utility functionality.