|
AGX Dynamics 2.42.3.1
|
ConstraintGeometry for 1-DOF constraints. More...
#include <Actuator1DOF.h>
Inheritance diagram for agxPowerLine::Constraint1DOFGeometry:Public Member Functions | |
| Constraint1DOFGeometry () | |
| Constraint1DOFGeometry (agx::Constraint1DOF *constraint) | |
| AGXSTREAM_DECLARE_SERIALIZABLE_BASE (agxPowerLine::Constraint1DOFGeometry) | |
| virtual bool | isValid () const override |
| virtual bool | setConstraint (agx::Constraint *constraint) override |
| Set a new constraint, which must be of type Constraint1DOF. | |
Public Member Functions inherited from agxPowerLine::ControllerConstraintGeometry | |
| ControllerConstraintGeometry () | |
| ControllerConstraintGeometry (agx::Constraint *constraint, agx::BasicControllerConstraint *controller) | |
| Create a ConstraintGeometry aligned with the direction of the given BasicControllerConstraint. | |
| AGXSTREAM_DECLARE_SERIALIZABLE_BASE (agxPowerLine::ControllerConstraintGeometry) | |
| virtual agx::Real | getAngle () const override |
| This method returns the current angle for the constraint. | |
| const agx::ConstraintAngleBasedData & | getAngleData () const |
| virtual agx::RangeReal | getAngleRange () const override |
| Get the range of allowed angles. | |
| virtual agx::Vec3 | getCmToPosition (agx::UInt index) const override |
| virtual const agx::Constraint * | getConstraint () const override |
| virtual agx::Constraint * | getConstraint () override |
| agx::BasicControllerConstraint * | getController () |
| const agx::BasicControllerConstraint * | getController () const |
| virtual agx::Real | getMaxAngle () const override |
| virtual agx::Real | getMinAngle () const override |
| virtual agx::Vec3 | getSeparation () const override |
| virtual agx::Vec3 | getWorldDirection (agx::UInt index) const override |
| virtual agx::Vec3 | getWorldPosition (agx::UInt index) const override |
| virtual bool | isValid () const override |
| virtual bool | setConstraint (agx::Constraint *constraint) override |
| Replace the constraint being queried for geometry information. | |
| bool | setConstraint (agx::Constraint *constraint, agx::BasicControllerConstraint *controller) |
| virtual void | transform () override |
| Transform constraint attachment frames and updates data. | |
Public Member Functions inherited from agxPowerLine::ConstraintGeometry | |
| virtual agx::Real | getAngle () const =0 |
| This method returns the current angle for the constraint. | |
| virtual agx::RangeReal | getAngleRange () const |
| Get the range of allowed angles. | |
| virtual agx::Vec3 | getCmToPosition (agx::UInt index) const =0 |
| agx::Vec3 | getCmToPosition1 () const |
| agx::Vec3 | getCmToPosition2 () const |
| virtual const agx::Constraint * | getConstraint () const =0 |
| virtual agx::Constraint * | getConstraint ()=0 |
| virtual agx::Real | getMaxAngle () const =0 |
| virtual agx::Real | getMinAngle () const =0 |
| virtual agx::Vec3 | getSeparation () const =0 |
| virtual agx::Vec3 | getWorldDirection (agx::UInt index) const =0 |
| agx::Vec3 | getWorldDirection1 () const |
| agx::Vec3 | getWorldDirection2 () const |
| virtual agx::Vec3 | getWorldPosition (agx::UInt index) const =0 |
| agx::Vec3 | getWorldPosition1 () const |
| agx::Vec3 | getWorldPosition2 () const |
| virtual bool | isValid () const =0 |
| virtual bool | setConstraint (agx::Constraint *constraint)=0 |
| Replace the constraint being queried for geometry information. | |
| virtual void | transform ()=0 |
| Transform constraint attachment frames and updates data. | |
Public Member Functions inherited from agx::Referenced | |
| Referenced () | |
| Default constructor. | |
| Referenced (const Referenced &) | |
| template<typename T > | |
| T * | as () |
| Subclass casting. | |
| template<typename T > | |
| const T * | as () const |
| template<typename T > | |
| T * | asSafe () |
| Safe subclass casting, return nullptr if template type does not match. | |
| template<typename T > | |
| const T * | asSafe () const |
| int | getReferenceCount () const |
| template<typename T > | |
| bool | is () const |
| Subclass test. | |
| Referenced & | operator= (const Referenced &) |
| Assignment operator. Will increment the number of references to the referenced object. | |
| void | reference (void *ptr=nullptr) const |
| Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. | |
| void | unreference (void *ptr=nullptr) const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. | |
| void | unreference_nodelete () const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. | |
Public Member Functions inherited from agxStream::Serializable | |
| virtual | ~Serializable () |
| Destructor for normal C++ use but hidden from SWIG bindings. | |
| virtual const char * | getClassName () const |
| bool | getEnableSerialization () const |
| bool | getEnableUuidGeneration () |
| agx::UInt32 | getIndex () const |
| This index is given at creation of this object. | |
| virtual StorageAgent * | getStorageAgent () const =0 |
| agx::Uuid | getUuid () const |
| bool | isFinished () const |
| void | setEnableSerialization (bool flag) |
| Set to false to disable serialization of this object. | |
| void | setFinished () |
| Tells this class that it is restored correctly and should not be deleted during destruction of an Archive. | |
| void | setUuid (const agx::Uuid &uuid) |
| Explicitly set a Uuid on a serializable object. | |
Static Public Member Functions | |
| static agxStream::Serializable * | create (agxStream::InputArchive &) |
Static Public Member Functions inherited from agxPowerLine::ControllerConstraintGeometry | |
| static agxStream::Serializable * | create (agxStream::InputArchive &) |
Static Public Member Functions inherited from agx::Referenced | |
| template<typename T > | |
| static bool | ValidateCast (const Referenced *object) |
Static Public Member Functions inherited from agxStream::Serializable | |
| static void | setEnableUuidGeneration (bool flag) |
| Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled. | |
Additional Inherited Members | |
Protected Member Functions inherited from agx::Referenced | |
| virtual | ~Referenced () |
| Destructor. | |
| void | allocateObserverVector () const |
| void | deleteUsingDeleteHandler () const |
Protected Member Functions inherited from agxStream::Serializable | |
| Serializable () | |
| Default constructor. | |
| Serializable (const Serializable &other) | |
| Copy constructor. | |
| void | generateUuid () |
Static Protected Member Functions inherited from agx::Referenced | |
| static DeleteHandler * | getDeleteHandler () |
| static void | setDeleteHandler (DeleteHandler *handler) |
| Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to. | |
Protected Attributes inherited from agx::Referenced | |
| Mutex | m_mutex |
| ObserverContainer | m_observers |
| AtomicValue | m_refCount |
ConstraintGeometry for 1-DOF constraints.
Orients the Actuator to act along or around the free degree of freedom of the constraint.
Definition at line 240 of file Actuator1DOF.h.
| agxPowerLine::Constraint1DOFGeometry::Constraint1DOFGeometry | ( | ) |
| agxPowerLine::Constraint1DOFGeometry::Constraint1DOFGeometry | ( | agx::Constraint1DOF * | constraint | ) |
| agxPowerLine::Constraint1DOFGeometry::AGXSTREAM_DECLARE_SERIALIZABLE_BASE | ( | agxPowerLine::Constraint1DOFGeometry | ) |
|
inlinestatic |
Definition at line 257 of file Actuator1DOF.h.
|
overridevirtual |
Reimplemented from agxPowerLine::ControllerConstraintGeometry.
|
overridevirtual |
Set a new constraint, which must be of type Constraint1DOF.
Becomes invalid if passed incorrect constraint type.
| constraint | The new constraint. |
Reimplemented from agxPowerLine::ControllerConstraintGeometry.