34 class ActuatorBodyUnit;
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
An ActuatorBodyUnit forms a connection between the power line world and the rest of the simulation.
agx::ref_ptr< ActuatorRotationalDimension > m_rotationalDimension
virtual ~ActuatorBodyUnit()
bool isInputAndOutput() const
const Actuator * getActuator() const
agxPowerLine::ActuatorTranslationalDimension * getTranslationalDimension()
returns a pointer to the rotational dimension
virtual bool store(agxStream::StorageStream &str) const override
Stores internal data into stream.
agx::ref_ptr< ActuatorTranslationalDimension > m_translationalDimension
agx::observer_ptr< Actuator > m_actuator
ActuatorBodyUnit(Actuator *actuator, agx::Constraint *constraint, agxPowerLine::Side actuatorSide)
Create a rotational and translational unit.
virtual bool restore(agxStream::StorageStream &str) override
Restores internal data from stream.
const agx::RigidBody * getRigidBody() const
agxPowerLine::ActuatorRotationalDimension * getRotationalDimension()
returns a pointer to the rotational dimension
const ActuatorBodyUnit * getActuatorBodyUnit() const
void setActuatorBodyUnit(ActuatorBodyUnit *actuatorBodyUnit)
agx::observer_ptr< ActuatorBodyUnit > m_actuatorBodyUnit
virtual agx::RigidBody * getBody()=0
void restore(agxStream::InputArchive &in)
void store(agxStream::OutputArchive &out) const
bool store(agxStream::StorageStream &str) const
virtual ~ActuatorDimension()=0
ActuatorDimension(ActuatorBodyUnit *actuatorBodyUnit)
virtual agxPowerLine::detail::AbstractDimensionState3Dof * getDimensionState()=0
bool restore(agxStream::StorageStream &str)
virtual agxPowerLine::detail::AbstractDimensionState3Dof * getDimensionState() override
virtual bool store(agxStream::StorageStream &str) const override
Stores internal data into stream.
virtual bool restore(agxStream::StorageStream &str) override
Restores internal data from stream.
agxPowerLine::detail::Rotational3DofState * getRotationalDimensionState()
ActuatorRotationalDimension(ActuatorBodyUnit *actuatorBodyUnit, agx::RigidBody *body, bool externalBody)
virtual ~ActuatorRotationalDimension()
agx::RigidBody * getBody() override
virtual agxPowerLine::detail::AbstractDimensionState3Dof * getDimensionState() override
virtual bool store(agxStream::StorageStream &str) const override
Stores internal data into stream.
virtual agx::RigidBody * getBody() override
virtual ~ActuatorTranslationalDimension()
agxPowerLine::detail::Translational3DofState * getTranslationalDimensionState()
ActuatorTranslationalDimension(ActuatorBodyUnit *actuatorBodyUnit, agx::RigidBody *body, bool externalBody)
virtual bool restore(agxStream::StorageStream &str) override
Restores internal data from stream.
Abstract base class for connecting a agxPowerLine::Unit to an ordinary constraint such as a Hinge or ...
The rotational has one rotational degree of freedom.
Base class for the two three dimensional dimension state classes.
Templated three dimensional dimension state.
Class for writing serialized data in binary format to a stream.
Abstract base class for storing/restoring a line/drums with version control.
The base class for a constraint.
The rigid body class, combining a geometric model and a frame of reference.
Smart pointer for observed objects, that automatically set pointers to them to null when they deleted...
Smart pointer for handling referenced counted objects.
agxPowerLine contains a collection of connected components that transport power across a system.
agx::ref_ptr< ActuatorBodyUnit > ActuatorBodyUnitRef
The agx namespace contains the dynamics/math part of the AGX Dynamics API.