18 #ifndef AGXPOWERLINE_ACTUATOR_H
19 #define AGXPOWERLINE_ACTUATOR_H
33 class PhysicalDimension;
#define AGX_DECLARE_POINTER_TYPES(type)
An ActuatorBodyUnit forms a connection between the power line world and the rest of the simulation.
agx::Constraint * getConstraint()
AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE(agxMode::Actuator)
virtual agx::Vec3 calculateWorldDirection(Side side, agxPowerLine::PhysicalDimension::Type dimensionType) const =0
Actuator(agx::Constraint *constraint)
virtual agxPowerLine::DimensionAndSide getConnectableDimension(agxPowerLine::PhysicalDimension::Type type, agxPowerLine::Side side) override
virtual const agx::RigidBody * getRigidBody(Side side) const
agxPowerLine::detail::Translational3DofState * getTranslationalState(Side side)
virtual agx::Vec3 calculateLocalDirection(Side side, int dimensionType) const =0
agxPowerLine::detail::Rotational3DofState * getRotationalState(Side side)
virtual bool store(agxStream::StorageStream &str) const override
Stores internal data into stream.
virtual void store(agxStream::OutputArchive &out) const override
virtual agx::Vec3 getDir2() const =0
const agx::Constraint * getConstraint() const
virtual agx::Real calculateRelativeValue() const =0
virtual agx::Vec3 getCmToAnchorPos2() const =0
virtual bool restore(agxStream::StorageStream &str) override
Restores internal data from stream.
agxPowerLine::ActuatorBodyUnit * getActuatorBodyUnit(Side side)
agxPowerLine::detail::AbstractDimensionState3Dof * getDimensionState(agxPowerLine::Side side, agxPowerLine::PhysicalDimension::Type dimensionType)
agxPowerLine::PhysicalDimension * getPhysicalDimension(Side side, int dimensionType)
agx::observer_ptr< agx::Constraint > m_constraint
const agxPowerLine::ActuatorBodyUnit * getActuatorBodyUnit(Side side) const
virtual agx::Real calculateRelativeGradient() const =0
virtual agx::Vec3 getCmToAnchorPos1() const =0
virtual void restore(agxStream::InputArchive &in) override
virtual agx::RigidBody * getRigidBody(Side side)
virtual agx::Vec3 getSeparation() const =0
bool reverseOrderRelativeConstraint() const
virtual agx::Vec3 getDir1() const =0
const agxPowerLine::PhysicalDimension * getPhysicalDimension(Side side, int dimensionType) const
virtual bool restore(agxStream::StorageStream &str)
Restores internal data from stream.
virtual bool store(agxStream::StorageStream &str) const
Stores internal data into stream.
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.
agxPowerLine contains a collection of connected components that transport power across a system.
std::pair< agxPowerLine::PhysicalDimension *, agxPowerLine::Side > DimensionAndSide
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.