17 #ifndef AGXPOWERLINE_ACTUATOR_UNIT_H
18 #define AGXPOWERLINE_ACTUATOR_UNIT_H
35 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
virtual bool store(agxStream::StorageStream &str) const override
Stores internal data into stream.
agx::ref_ptr< ActuatorTranslationalDimension > m_translationalDimension
const agx::RigidBody * getRigidBody() const
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 Actuator * getActuator() const
agxPowerLine::ActuatorTranslationalDimension * getTranslationalDimension()
returns a pointer to the rotational dimension
agxPowerLine::ActuatorRotationalDimension * getRotationalDimension()
returns a pointer to the rotational dimension
void setActuatorBodyUnit(ActuatorBodyUnit *actuatorBodyUnit)
agx::observer_ptr< ActuatorBodyUnit > m_actuatorBodyUnit
void restore(agxStream::InputArchive &in)
void store(agxStream::OutputArchive &out) const
bool store(agxStream::StorageStream &str) const
virtual ~ActuatorDimension()=0
virtual agxPowerLine::detail::AbstractDimensionState3Dof * getDimensionState()=0
virtual agx::RigidBody * getBody()=0
ActuatorDimension(ActuatorBodyUnit *actuatorBodyUnit)
bool restore(agxStream::StorageStream &str)
const ActuatorBodyUnit * getActuatorBodyUnit() const
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.
virtual agxPowerLine::detail::AbstractDimensionState3Dof * getDimensionState() override
ActuatorRotationalDimension(ActuatorBodyUnit *actuatorBodyUnit, agx::RigidBody *body, bool externalBody)
virtual ~ActuatorRotationalDimension()
agx::RigidBody * getBody() override
agxPowerLine::detail::Rotational3DofState * getRotationalDimensionState()
virtual bool store(agxStream::StorageStream &str) const override
Stores internal data into stream.
virtual ~ActuatorTranslationalDimension()
virtual agx::RigidBody * getBody() override
virtual agxPowerLine::detail::AbstractDimensionState3Dof * getDimensionState() override
agxPowerLine::detail::Translational3DofState * getTranslationalDimensionState()
ActuatorTranslationalDimension(ActuatorBodyUnit *actuatorBodyUnit, agx::RigidBody *body, bool externalBody)
virtual bool restore(agxStream::StorageStream &str) override
Restores internal data from stream.
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
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...
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.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.