 |
AGX Dynamics
2.38.0.2
|
Go to the documentation of this file.
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(
532 virtual agx::Real calculateRelativeGradient()
const override;
534 virtual agx::Vec3 calculateWorldDirection(
538 virtual agx::Vec3 calculateLocalDirection(
Side side,
int dimensionType)
const override;
566 void connectActuatorConnector();
570 agxPowerLine::detail::TranslationalActuatorConnectorRef m_actuatorConnector;
agx::Vec3 getCmToPosition1() const
Basic data holder class for "angle based" (secondary) constraints.
Description of how an Actuator is allowed to apply forces and torques on the body or bodies attached ...
void AGXCORE_EXPORT transform(void *target, const Format *targetFormat, const void *source, const Format *sourceFormat, size_t numElements)
Transform data between two buffers.
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.
agx::Vec3 getWorldDirection1() const
Specialization for constraints that have only one degree of freedom such as Hinge and Prismatic.
agx::Vec3 getCmToPosition2() const
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
agx::observer_ptr< Constraint > ConstraintObserver
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
ConstraintObserver m_constraintObserver
agx::Vec3 getWorldDirection2() const
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...
Base class for constraint angle based elementary constraints (secondary constraints).
#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.
agx::Vec3 getWorldPosition1() const
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 Constraint pointer to nullptr on object deletion, but also informs th...
Class for writing serialized data in binary format to a stream.
An Actuator that operates on Constraint1DOF constraints.
Base class providing referencing counted objects.
#define AGX_DECLARE_POINTER_TYPES(type)
ConstraintGeometry for any type of constraint that has a BasicControllerConstraint along the axis tha...
agxPowerLine contains a collection of connected components that transport power across a system.
Real getAngle(const Vec3 &a, const Vec3 &b, const Vec3 &c)
a and b should be orthogonal
agx::Vec3 getWorldPosition2() const
virtual agx::RangeReal getAngleRange() const
Get the range of allowed angles.
ConstraintGeometry for 1-DOF constraints.
The base class for a constraint.
ConstraintGeometryRef m_constraintGeometry
A rotational unit has one degree of freedom.
std::pair< agxPowerLine::PhysicalDimension *, agxPowerLine::Side > DimensionAndSide