18 #ifndef AGXPOWERLINE_ACTUATOR_1DOF_H 19 #define AGXPOWERLINE_ACTUATOR_1DOF_H 46 virtual agx::Real calculateRelativeValue( )
const override;
52 virtual bool preUpdate(
agx::Real timeStamp)
override;
54 void synchronizeDirections();
81 void replaceActuatorUnit(
Unit* oldUnit,
Unit* newUnit );
83 void detachActuatorUnitsFromEachOther();
85 virtual agx::Vec3 getDir1()
const override;
86 virtual agx::Vec3 getDir2()
const override;
87 virtual agx::Vec3 getCmToAnchorPos1()
const override;
88 virtual agx::Vec3 getCmToAnchorPos2()
const override;
89 virtual agx::Vec3 getSeparation()
const override;
101 virtual void objectDeleted(
void*)
override;
137 void setUseHighSpeedMode(
agx::Bool highSpeedMode );
147 virtual void setEnable(
bool enabled);
148 virtual bool getEnable()
const;
152 virtual bool preUpdate(
agx::Real timeStamp)
override;
154 virtual void getConnectableDimensionTypes(
158 virtual agx::Real calculateRelativeGradient()
const override;
160 virtual agx::Vec3 calculateWorldDirection(
164 virtual agx::Vec3 calculateLocalDirection(
166 int dimensionType)
const override;
219 static dont_create_input_t dont_create_input;
224 void connectActuatorConnector();
225 void disconnectActuatorConnector();
226 void reconnectActuatorConnector();
247 agxPowerLine::TranslationalUnit* getInputRod();
252 virtual void getConnectableDimensionTypes(
266 virtual agx::Real calculateRelativeGradient()
const override;
268 virtual agx::Vec3 calculateWorldDirection(
272 virtual agx::Vec3 calculateLocalDirection(
Side side,
int dimensionType)
const override;
299 void connectActuatorConnector();
303 agxPowerLine::detail::TranslationalActuatorConnectorRef m_actuatorConnector;
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...
ConstraintObserver m_constraint1DOF
static dont_create_input_t dont_create_input
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...
A rotational unit has one degree of freedom.
Smart pointer for observed objects, that automatically set pointers to them to null when they deleted...
Observer that not only sets the Constraint1DOF pointer to nullptr on object deletion, but also informs the owning Actuator so the body units can be updated.
This joint will preserve the initial distance between a body and a point in world coordinate or betwe...
#define AGX_DECLARE_POINTER_TYPES(type)
Specialization for constraints that have only one degree of freedom such as Hinge and Prismatic...
agx::ref_ptr< TranslationalActuator > TranslationalActuatorRef
Namespace agx contains the dynamics/math part of the AGX Dynamics API.
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...
virtual bool restore(agxStream::StorageStream &str) override
Restores internal data from stream.
Abstract base class for storing/restoring a line/drums with version control.
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
Class for writing serialized data in binary format to a stream.
#define AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE(T)
Use this in a pure abstract Serializable class to add the required methods Important: Use full namesp...
virtual bool store(agxStream::StorageStream &str) const override
Stores internal data into stream.
std::pair< agxPowerLine::PhysicalDimension *, agxPowerLine::Side > DimensionAndSide
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
agx::observer_ptr< Constraint > ConstraintObserver