49 virtual bool isValid()
const = 0;
72 return getWorldPosition(0);
81 return getWorldPosition(1);
96 return getWorldDirection(0);
105 return getWorldDirection(1);
120 return getCmToPosition(0);
128 return getCmToPosition(1);
134 virtual agx::Vec3 getSeparation()
const = 0;
151 return {getMinAngle(), getMaxAngle()};
157 virtual agx::Real getMinAngle()
const = 0;
162 virtual agx::Real getMaxAngle()
const = 0;
202 virtual bool isValid()
const override;
210 virtual agx::Vec3 getSeparation()
const override;
213 virtual agx::Real getMinAngle()
const override;
214 virtual agx::Real getMaxAngle()
const override;
246 virtual bool isValid()
const override;
283 virtual agx::Real calculateRelativeValue()
const override;
294 virtual bool preUpdate(
agx::Real timeStamp)
override;
304 void synchronizeDirections();
330 void replaceActuatorUnit(
Unit* oldUnit,
Unit* newUnit);
332 void detachActuatorUnitsFromEachOther();
334 virtual agx::Vec3 getDir1()
const override;
335 virtual agx::Vec3 getDir2()
const override;
336 virtual agx::Vec3 getCmToAnchorPos1()
const override;
337 virtual agx::Vec3 getCmToAnchorPos2()
const override;
338 virtual agx::Vec3 getSeparation()
const override;
350 virtual void objectDeleted(
void*)
override;
408 void setUseHighSpeedMode(
agx::Bool highSpeedMode );
418 virtual void setEnable(
bool enabled);
419 virtual bool getEnable()
const;
423 virtual bool preUpdate(
agx::Real timeStamp)
override;
425 virtual void getConnectableDimensionTypes(
429 virtual agx::Real calculateRelativeGradient()
const override;
431 virtual agx::Vec3 calculateWorldDirection(
435 virtual agx::Vec3 calculateLocalDirection(
437 int dimensionType)
const override;
490 static dont_create_input_t dont_create_input;
496 void connectActuatorConnector();
497 void disconnectActuatorConnector();
498 void reconnectActuatorConnector();
503 agxPowerLine::detail::RotationalActuatorConnectorRef m_actuatorConnector;
524 virtual void getConnectableDimensionTypes(
538 virtual agx::Real calculateRelativeGradient()
const override;
540 virtual agx::Vec3 calculateWorldDirection(
544 virtual agx::Vec3 calculateLocalDirection(
Side side,
int dimensionType)
const override;
572 void connectActuatorConnector();
576 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...
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 Constraint pointer to nullptr on object deletion, but also informs th...
An Actuator that operates on Constraint1DOF constraints.
void AGXCORE_EXPORT transform(void *target, const Format *targetFormat, const void *source, const Format *sourceFormat, size_t numElements)
Transform data between two buffers.
ConstraintGeometry for any type of constraint that has a BasicControllerConstraint along the axis tha...
The base class for a constraint.
agx::Vec3 getWorldPosition2() const
#define AGX_DECLARE_POINTER_TYPES(type)
Specialization for constraints that have only one degree of freedom such as Hinge and Prismatic...
ConstraintGeometry for 1-DOF constraints.
agx::ref_ptr< TranslationalActuator > TranslationalActuatorRef
Basic data holder class for "angle based" (secondary) constraints.
agxPowerLine contains a collection of connected components that transport power across a system...
virtual agx::RangeReal getAngleRange() const
Get the range of allowed angles.
Base class providing referencing counted objects.
Base class for constraint angle based elementary constraints (secondary constraints).
agx::Vec3 getCmToPosition2() const
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
agx::Vec3 getCmToPosition1() const
ConstraintObserver m_constraintObserver
ConstraintGeometryRef m_constraintGeometry
Description of how an Actuator is allowed to apply forces and torques on the body or bodies attached ...
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...
agx::Vec3 getWorldDirection1() const
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
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
agx::Vec3 getWorldDirection2() const
agx::Vec3 getWorldPosition1() const
Real getAngle(const Vec3 &a, const Vec3 &b, const Vec3 &c)
a and b should be orthogonal
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
agx::observer_ptr< Constraint > ConstraintObserver