|
AGX Dynamics
2.35.0.1
|
Implementation of constraint angle ABOUT an axis. More...
#include <ConstraintAngle.h>
Inheritance diagram for agx::RotationalAngle:Public Member Functions | |
| RotationalAngle (agx::Angle::Axis axis, agx::Real initialAngle=agx::Real(0)) | |
| Construct given axis and initial angle. More... | |
| agx::Real | calculateCurrentAngle (const AttachmentPair &ap) const |
| const char * | getClassName () const override |
| agx::Real | getLastAngle () const |
| agxStream::StorageAgent * | getStorageAgent () const override |
| agx::Int | getWindingNumber () const |
| virtual void | restore (agxStream::InputArchive &in) override |
| Restore given stream. More... | |
| virtual void | restoreLightData (agxStream::StorageStream &str) override |
| Restore structural independent data from stream. More... | |
| void | setLastAngle (agx::Real lastAngle) |
| Set the last angle bewteen (-pi, +pi) (winding number NOT included) More... | |
| void | setWindingNumber (agx::Int windingNumber) |
Use with caution since each values of windingNumber represent plus or minus 360 degrees of the joint angle (e.g, affecting locks and ranges). More... | |
| virtual void | store (agxStream::OutputArchive &out) const override |
| Store given stream. More... | |
| virtual void | storeLightData (agxStream::StorageStream &str) const override |
| Store structural independent data to stream. More... | |
| virtual void | transform (const agx::AttachmentPair &ap) override |
| Update value given constraint pair. More... | |
Public Member Functions inherited from agx::Angle | |
| AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE (agx::Angle) | |
| agx::Angle::Axis | getAxis () const |
| virtual const agx::Vec3 & | getDir (const agx::AttachmentPair &ap, agx::UInt index) const |
| agx::Angle::Type | getType () const |
| const agx::Real & | getValue () const |
Public Member Functions inherited from agx::Referenced | |
| Referenced () | |
| Default constructor. More... | |
| Referenced (const Referenced &) | |
| template<typename T > | |
| T * | as () |
| Subclass casting. More... | |
| template<typename T > | |
| const T * | as () const |
| template<typename T > | |
| T * | asSafe () |
| Safe subclass casting, return nullptr if template type does not match. More... | |
| template<typename T > | |
| const T * | asSafe () const |
| int | getReferenceCount () const |
| template<typename T > | |
| bool | is () const |
| Subclass test. More... | |
| Referenced & | operator= (const Referenced &) |
| Assignment operator. Will increment the number of references to the referenced object. More... | |
| void | reference (void *ptr=nullptr) const |
| Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
| void | unreference (void *ptr=nullptr) const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| void | unreference_nodelete () const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
Public Member Functions inherited from agxStream::Serializable | |
| virtual | ~Serializable () |
| Destructor for normal C++ use but hidden from SWIG bindings. More... | |
| bool | getEnableSerialization () const |
| bool | getEnableUuidGeneration () |
| agx::UInt32 | getIndex () const |
| This index is given at creation of this object. More... | |
| agx::Uuid | getUuid () const |
| bool | isFinished () const |
| void | setEnableSerialization (bool flag) |
| Set to false to disable serialization of this object. More... | |
| void | setFinished () |
| Tells this class that it is restored correctly and should not be deleted during destruction of an Archive. More... | |
| void | setUuid (const agx::Uuid &uuid) |
| Explicitly set a Uuid on a serializable object. More... | |
Static Public Member Functions | |
| static agxStream::Serializable * | create () |
| static agxStream::Serializable * | create (agxStream::InputArchive &) |
| static const char * | getConstructClassId () |
| static agx::RotationalAngle * | safeCast (const agx::Angle *angle) |
| Utility cast method. More... | |
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. More... | |
Protected Member Functions | |
| RotationalAngle () | |
| Default constructor used during restore. More... | |
| virtual | ~RotationalAngle () |
| Reference counted object, protected destructor. More... | |
Protected Member Functions inherited from agx::Angle | |
| Angle (agx::Angle::Axis axis, agx::Angle::Type type, agx::Real initialAngle=agx::Real(0)) | |
| Construct given axis and initial angle. More... | |
| virtual | ~Angle () |
| Reference counted object, protected destructor. More... | |
Protected Member Functions inherited from agx::Referenced | |
| virtual | ~Referenced () |
| Destructor. More... | |
| void | allocateObserverVector () const |
| void | deleteUsingDeleteHandler () const |
Protected Member Functions inherited from agxStream::Serializable | |
| Serializable () | |
| Default constructor. More... | |
| Serializable (const Serializable &other) | |
| Copy constructor. More... | |
| void | generateUuid () |
Protected Attributes | |
| agx::Real | m_lastAngle |
| agx::Int | m_windingNumber |
Protected Attributes inherited from agx::Angle | |
| Axis | m_axis |
| Type | m_type |
| agx::Real | m_value |
Protected Attributes inherited from agx::Referenced | |
| Mutex | m_mutex |
| ObserverContainer | m_observers |
| AtomicValue | m_refCount |
Additional Inherited Members | |
Public Types inherited from agx::Angle | |
| enum | Axis { U , V , N } |
| Axis this constraint angle is defined about or along. More... | |
| enum | Type { TRANSLATIONAL , ROTATIONAL } |
Type, i.e., defines Axis as 'along' or 'about'. More... | |
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. More... | |
Implementation of constraint angle ABOUT an axis.
Definition at line 126 of file ConstraintAngle.h.
| agx::RotationalAngle::RotationalAngle | ( | agx::Angle::Axis | axis, |
| agx::Real | initialAngle = agx::Real(0) |
||
| ) |
Construct given axis and initial angle.
|
protected |
Default constructor used during restore.
|
protectedvirtual |
Reference counted object, protected destructor.
| agx::Real agx::RotationalAngle::calculateCurrentAngle | ( | const AttachmentPair & | ap | ) | const |
| ap | - attachment pair |
|
inlinestatic |
Definition at line 174 of file ConstraintAngle.h.
|
inlinestatic |
Definition at line 174 of file ConstraintAngle.h.
|
inlineoverridevirtual |
Reimplemented from agxStream::Serializable.
Definition at line 174 of file ConstraintAngle.h.
|
inlinestatic |
Definition at line 174 of file ConstraintAngle.h.
| agx::Real agx::RotationalAngle::getLastAngle | ( | ) | const |
|
inlineoverridevirtual |
Implements agxStream::Serializable.
Definition at line 174 of file ConstraintAngle.h.
| agx::Int agx::RotationalAngle::getWindingNumber | ( | ) | const |
|
overridevirtual |
Restore given stream.
Reimplemented from agx::Angle.
|
overridevirtual |
Restore structural independent data from stream.
Reimplemented from agx::Angle.
|
static |
Utility cast method.
| void agx::RotationalAngle::setLastAngle | ( | agx::Real | lastAngle | ) |
Set the last angle bewteen (-pi, +pi) (winding number NOT included)
| lastAngle | - will be clamped in range (-pi, +pi) if outside |
| void agx::RotationalAngle::setWindingNumber | ( | agx::Int | windingNumber | ) |
Use with caution since each values of windingNumber represent plus or minus 360 degrees of the joint angle (e.g, affecting locks and ranges).
| windingNumber | - new windingNumber |
|
overridevirtual |
Store given stream.
Reimplemented from agx::Angle.
|
overridevirtual |
Store structural independent data to stream.
Reimplemented from agx::Angle.
|
overridevirtual |
Update value given constraint pair.
Reimplemented from agx::Angle.
|
protected |
Definition at line 199 of file ConstraintAngle.h.
|
protected |
Definition at line 198 of file ConstraintAngle.h.