228 virtual
bool addNotification(
agxSDK::Simulation* simulation) override;
229 virtual
bool removeNotification(
agxUtil::ConstraintHolder* constraintHolder,
agxSDK::Simulation* simulation) override;
241 size_t getNumConnections() const;
267 bool getIgnoreForStoreRestoreStream() const;
270 virtual
bool postStore(
agxStream::StorageStream& str) const;
272 virtual
bool postRestore(
agxStream::StorageStream& str);
277 virtual
bool store(
agxStream::StorageStream& str) const override;
282 virtual
bool restore(
agxStream::StorageStream& str) override;
284 void spreadRootToGraph();
293 virtual
void store(
agxStream::OutputArchive& out) const override;
294 virtual
void restore(
agxStream::InputArchive& in) override;
302 friend class Traverser;
303 friend class GraphTraverser;
311 virtual
bool hasValidInputConnection() const;
325 agx::observer_ptr<
agx::RigidBody> m_attachBody;
327 bool m_ignoreMeForStoreRestoreStream;
#define AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE(T)
Use this in a pure abstract Serializable class to add the required methods Important: Use full namesp...
Abstract base class for connecting a agxPowerLine::Unit to an ordinary constraint such as a Hinge or ...
Links two connections together.
PowerLine is the base class for a system of power transfer integrated into the rigid body simulation.
virtual bool connect(agxPowerLine::Side mySide, agxPowerLine::Side connectorSide, agxPowerLine::Connector *connector)
Connect the unit to a connector, specifying the side of each.
virtual size_t getNumConnectableDimensions(Side side) const
agxPowerLine::PhysicalDimension * getConnectableInputDimension(agxPowerLine::PhysicalDimension::Type type)
virtual bool disconnect(agxPowerLine::Unit *unit)
virtual bool connect(agxPowerLine::Unit *otherUnit)
Connect the unit to another unit.
void addNotification(agxPowerLine::PowerLine *powerLine)
void removeNotification(agxPowerLine::PowerLine *powerLine)
void getOwnConnectedUnits(UnitPtrSetVector &unitSet, bool startFromCleanUnitSet=true) const
Constructs the set of Units connected to this Unit's own dimensions.
agxPowerLine::PhysicalDimension * getConnectableOutputDimension(agxPowerLine::PhysicalDimension::Type type)
void getConnectedUnits(UnitPtrSetVector &result, agxPowerLine::Side side)
agx::String buildDimensionsName() const
agxPowerLine::PhysicalDimensionRefVector & getDimensions()
size_t getNumActiveDimensions() const
The number of non-null PhysicalDimension in this Unit, not including internal Units.
const agxPowerLine::PhysicalDimensionRefVector & getDimensions() const
void attach(agx::RigidBody *body)
Define which body in the simulation this Unit is attached to.
virtual void getConnectableDimensionTypes(agxPowerLine::PhysicalDimension::TypeVector &types, agxPowerLine::Side side) const
agxPowerLine::PhysicalDimension * getActiveDimension(size_t index)
virtual bool isValid() const
const agxPowerLine::PhysicalDimension * getDimension(agxPowerLine::PhysicalDimension::Type type) const
virtual agxPowerLine::DimensionAndSide getConnectableDimension(agxPowerLine::PhysicalDimension::Type type, agxPowerLine::Side side)
agxPowerLine::PhysicalDimension * getDimension(agxPowerLine::PhysicalDimension::Type type)
virtual bool isConnected(agxPowerLine::Unit *otherUnit) const
virtual bool connect(agxPowerLine::Side mySide, agxPowerLine::Side otherSide, agxPowerLine::Unit *other)
virtual bool connect(agxPowerLine::Connector *connector)
Connect the unit to a connector.
const agxPowerLine::PhysicalDimension * getActiveDimension(size_t index) const
void getOwnConnectedUnits(UnitPtrSetVector &unitSet, agxPowerLine::Side side, bool startFromCleanUnitSet=true) const
Inheritance with partial specialization due to bug with ref_ptr containers.
The rigid body class, combining a geometric model and a frame of reference.
Smart pointer for handling referenced counted objects.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
agxPowerLine contains a collection of connected components that transport power across a system.
agx::SetVector< Unit * > UnitPtrSetVector
agx::Vector< UnitRef > UnitRefVector
agx::Vector< std::pair< agxPowerLine::PhysicalDimension *, agxPowerLine::Side > > DimensionSideVector
agx::HashSet< UnitRef > UnitRefSet
std::pair< agxPowerLine::PhysicalDimension *, agxPowerLine::Side > DimensionAndSide
agx::Vector< ConnectorRef > ConnectorRefVector
agx::ref_ptr< Unit > UnitRef
agx::Vector< Connector * > ConnectorPtrVector
agx::SetVector< UnitRef > UnitRefSetVector
agx::Vector< agx::observer_ptr< Unit > > UnitObsVector
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
This namespace contain classes for streaming classes into archives, ASCII, binary for storage (serial...
The agxUtil namespace contain classes and methods for utility functionality.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.