30 class PhysicalDimension;
45 class ConstraintHolder;
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGX_DECLARE_VECTOR_TYPES(type)
Links two connections together.
PowerLine is the base class for a system of power transfer integrated into the rigid body simulation.
Unit * getEnclosingUnit()
virtual void prepareForStore()
bool isEnclosedWithin(const SubGraph *component) const
const Unit * getEnclosingUnit() const
AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE(agxPowerLine::SubGraph)
void addInternalUnit(agxPowerLine::Unit *unit)
const agx::Name & getName() const
SubGraphObserver m_enclosingGraph
virtual bool preUpdate(agx::Real timeStep)
const agxPowerLine::ConnectorRefVector & getInternalConnectors() const
virtual void store(agxStream::OutputArchive &out) const override
virtual bool restore(agxStream::StorageStream &str)
Restores internal data from stream.
const agxPowerLine::UnitRefVector & getInternalUnits() const
virtual void getUnitsRecursive(UnitPtrVector &units)
Fill the given vector with the Units that are held by this SubGraph.
ConnectorRefVector m_internalConnectors
const SubGraph * getRootEnclosingGraph() const
const Connector * getEnclosingConnector() const
void setName(const agx::Name &name)
Set the name of this power line component.
virtual void restore(agxStream::InputArchive &in) override
virtual void getConnectorsRecursive(ConnectorPtrVector &connectors)
Fill the given vector with the Connectors that are held by this SubGraph.
void removeInternalConnector(agxPowerLine::Connector *connector)
virtual bool removeNotification(agxUtil::ConstraintHolder *holder, agxSDK::Simulation *simulation)=0
SubGraph * getEnclosingGraph()
virtual bool postUpdate(agx::Real timeStep)
const SubGraph * getEnclosingGraph() const
SubGraph * getRootEnclosingGraph()
Connector * getEnclosingConnector()
void addInternalConnector(agxPowerLine::Connector *connector)
UnitRefVector m_internalUnits
void removeInternalUnit(agxPowerLine::Unit *unit)
void spreadPowerLineToGraph()
agx::Bool replaceInternalUnit(agxPowerLine::Unit *oldUnit, agxPowerLine::Unit *newUnit)
virtual bool store(agxStream::StorageStream &str) const
Stores internal data into stream.
virtual void prepareForRestore()
virtual bool addNotification(agxSDK::Simulation *simulation)=0
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Class for writing serialized data in binary format to a stream.
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
Abstract base class for storing/restoring a line/drums with version control.
Utility class to hold custom implementations of constraints.
Representation of a name string.
Base class providing referencing counted objects.
Smart pointer for handling referenced counted objects.
agxPowerLine contains a collection of connected components that transport power across a system.
agx::Vector< UnitRef > UnitRefVector
agx::Vector< ConnectorRef > ConnectorRefVector
agx::ref_ptr< Unit > UnitRef
agx::Vector< Connector * > ConnectorPtrVector
agx::ref_ptr< Connector > ConnectorRef
agx::Vector< Unit * > UnitPtrVector
The agxUtil namespace contain classes and methods for utility functionality.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.