 |
AGXDynamics
2.35.0.3
|
Go to the documentation of this file.
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);
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.
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
Utility class to hold custom implementations of constraints.
ConnectorRefVector m_internalConnectors
Abstract base class for storing/restoring a line/drums with version control.
#define AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE(T)
Use this in a pure abstract Serializable class to add the required methods Important: Use full namesp...
UnitRefVector m_internalUnits
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
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...
#define AGX_DECLARE_VECTOR_TYPES(type)
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
agx::ref_ptr< Unit > UnitRef
agx::Vector< UnitRef > UnitRefVector
PowerLine is the base class for a system of power transfer integrated into the rigid body simulation.
Representation of a name string.
agx::Vector< ConnectorRef > ConnectorRefVector
agx::ref_ptr< Connector > ConnectorRef
Class for writing serialized data in binary format to a stream.
SubGraphObserver m_enclosingGraph
agx::Vector< Unit * > UnitPtrVector
Base class providing referencing counted objects.
#define AGX_DECLARE_POINTER_TYPES(type)
agxPowerLine contains a collection of connected components that transport power across a system.
Links two connections together.
agx::Vector< Connector * > ConnectorPtrVector
The agxUtil namespace contain classes and methods for utility functionality.