 |
AGXDynamics
2.35.0.3
|
Go to the documentation of this file.
18 #ifndef AGXPOWERLINE_ACTUATOR_1DOF_H
19 #define AGXPOWERLINE_ACTUATOR_1DOF_H
47 virtual agx::Real calculateRelativeValue()
const override;
58 virtual bool preUpdate(
agx::Real timeStamp)
override;
61 void synchronizeDirections();
87 void replaceActuatorUnit(
Unit* oldUnit,
Unit* newUnit );
89 void detachActuatorUnitsFromEachOther();
91 virtual agx::Vec3 getDir1()
const override;
92 virtual agx::Vec3 getDir2()
const override;
93 virtual agx::Vec3 getCmToAnchorPos1()
const override;
94 virtual agx::Vec3 getCmToAnchorPos2()
const override;
95 virtual agx::Vec3 getSeparation()
const override;
107 virtual void objectDeleted(
void*)
override;
143 void setUseHighSpeedMode(
agx::Bool highSpeedMode );
153 virtual void setEnable(
bool enabled);
154 virtual bool getEnable()
const;
158 virtual bool preUpdate(
agx::Real timeStamp)
override;
160 virtual void getConnectableDimensionTypes(
164 virtual agx::Real calculateRelativeGradient()
const override;
166 virtual agx::Vec3 calculateWorldDirection(
170 virtual agx::Vec3 calculateLocalDirection(
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;
253 agxPowerLine::TranslationalUnit* getInputRod();
258 virtual void getConnectableDimensionTypes(
272 virtual agx::Real calculateRelativeGradient()
const override;
274 virtual agx::Vec3 calculateWorldDirection(
278 virtual agx::Vec3 calculateLocalDirection(
Side side,
int dimensionType)
const override;
305 void connectActuatorConnector();
309 agxPowerLine::detail::TranslationalActuatorConnectorRef m_actuatorConnector;
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.
Specialization for constraints that have only one degree of freedom such as Hinge and Prismatic.
agx::observer_ptr< Constraint > ConstraintObserver
#define DOXYGEN_END_INTERNAL_BLOCK()
A prismatic joint keeps a fixed relative orientation between the attached bodies but allows them to s...
#define DOXYGEN_START_INTERNAL_BLOCK()
virtual bool store(agxStream::StorageStream &str) const override
Stores internal data into stream.
Abstract base class for storing/restoring a line/drums with version control.
virtual bool restore(agxStream::StorageStream &str) override
Restores internal data from stream.
#define AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE(T)
Use this in a pure abstract Serializable class to add the required methods Important: Use full namesp...
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
Smart pointer for observed objects, that automatically set pointers to them to null when they deleted...
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
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...
agx::ref_ptr< TranslationalActuator > TranslationalActuatorRef
static dont_create_input_t dont_create_input
Observer that not only sets the Constraint1DOF pointer to nullptr on object deletion,...
Class for writing serialized data in binary format to a stream.
ConstraintObserver m_constraint1DOF
#define AGX_DECLARE_POINTER_TYPES(type)
agxPowerLine contains a collection of connected components that transport power across a system.
The hinge constraint between two rigid bodies or one rigid body and the world.
A rotational unit has one degree of freedom.
This joint will preserve the initial distance between a body and a point in world coordinate or betwe...
std::pair< agxPowerLine::PhysicalDimension *, agxPowerLine::Side > DimensionAndSide