18 #ifndef AGXPOWERLINE_ACTUATOR_1DOF_H
19 #define AGXPOWERLINE_ACTUATOR_1DOF_H
172 int dimensionType)
const override;
225 static dont_create_input_t dont_create_input;
230 void connectActuatorConnector();
231 void disconnectActuatorConnector();
232 void reconnectActuatorConnector();
237 agxPowerLine::detail::RotationalActuatorConnectorRef m_actuatorConnector;
309 agxPowerLine::detail::TranslationalActuatorConnectorRef m_actuatorConnector;
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
Observer that not only sets the Constraint1DOF pointer to nullptr on object deletion,...
ConstraintObserver(agx::Constraint1DOF *actuatedConstraint, Actuator1DOF *owningActuator)
virtual void objectDeleted(void *) override
virtual agx::Vec3 getCmToAnchorPos2() const override
void store(agxStream::OutputArchive &out) const override
void synchronizeDirections()
virtual agx::Vec3 getCmToAnchorPos1() const override
virtual bool store(agxStream::StorageStream &str) const override
Stores internal data into stream.
void synchronizeUnits(agx::Constraint1DOF *constraint)
virtual agx::Vec3 getDir2() const override
void replaceActuatorUnit(Unit *oldUnit, Unit *newUnit)
AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE(agxPowerLine::Actuator1DOF)
ConstraintObserver m_constraint1DOF
virtual bool preUpdate(agx::Real timeStamp) override
virtual agx::Vec3 getSeparation() const override
void detachActuatorUnitsFromEachOther()
virtual bool restore(agxStream::StorageStream &str) override
Restores internal data from stream.
virtual agxPowerLine::DimensionAndSide getConnectableDimension(agxPowerLine::PhysicalDimension::Type type, agxPowerLine::Side side) override
void restore(agxStream::InputArchive &in) override
virtual agx::Real calculateRelativeValue() const override
virtual agx::Vec3 getDir1() const override
Actuator1DOF(agx::Constraint1DOF *constraint1DOF)
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 void setEnable(bool enabled)
virtual bool getEnable() const
virtual agx::Real calculateRelativeGradient() const override
agx::Bool getUseHighSpeedMode() const
virtual agx::Vec3 calculateLocalDirection(Side side, int dimensionType) const override
virtual bool preUpdate(agx::Real timeStamp) override
RotationalActuator(agx::Hinge *hinge)
virtual bool restore(agxStream::StorageStream &in) override
Restores internal data from stream.
void setUseHighSpeedMode(agx::Bool highSpeedMode)
Set the usage of high speed mode.
virtual void getConnectableDimensionTypes(agxPowerLine::PhysicalDimension::TypeVector &types, agxPowerLine::Side side) const override
virtual bool store(agxStream::StorageStream &out) const override
Stores internal data into stream.
agxPowerLine::RotationalUnit * getInputShaft()
virtual agx::Vec3 calculateWorldDirection(Side side, agxPowerLine::PhysicalDimension::Type dimensionType) const override
A rotational unit has one degree of freedom.
TranslationalActuator(agx::Prismatic *prismatic)
void connectActuatorConnector()
virtual agx::Vec3 calculateLocalDirection(Side side, int dimensionType) const override
static dont_create_input_t dont_create_input
agxPowerLine::TranslationalUnit * getInputRod()
virtual bool store(agxStream::StorageStream &str) const override
Stores internal data into stream.
virtual void getConnectableDimensionTypes(agxPowerLine::PhysicalDimension::TypeVector &types, agxPowerLine::Side side) const override
TranslationalActuator(agx::Prismatic *prismatic, dont_create_input_t)
virtual ~TranslationalActuator()
virtual bool restore(agxStream::StorageStream &str) override
Restores internal data from stream.
TranslationalActuator(agx::DistanceJoint *distance, dont_create_input_t)
virtual agx::Real calculateRelativeGradient() const override
Restores internal data from stream.
virtual agxPowerLine::DimensionAndSide getConnectableDimension(agxPowerLine::PhysicalDimension::Type type, agxPowerLine::Side side) override
Stores internal data into stream.
virtual agx::Vec3 calculateWorldDirection(Side side, agxPowerLine::PhysicalDimension::Type dimensionType) const override
TranslationalActuator(agx::DistanceJoint *distance)
Class for writing serialized data in binary format to a stream.
Abstract base class for storing/restoring a line/drums with version control.
Specialization for constraints that have only one degree of freedom such as Hinge and Prismatic.
This joint will preserve the initial distance between a body and a point in world coordinate or betwe...
The hinge constraint between two rigid bodies or one rigid body and the world.
A prismatic joint keeps a fixed relative orientation between the attached bodies but allows them to s...
Smart pointer for observed objects, that automatically set pointers to them to null when they deleted...
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
agxPowerLine contains a collection of connected components that transport power across a system.
agx::ref_ptr< TranslationalActuator > TranslationalActuatorRef
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.