|
AGX Dynamics 2.42.3.0
|
Constraint angle class. More...
#include <ConstraintAngle.h>
Inheritance diagram for agx::Angle:Public Types | |
| 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... | |
Public Member Functions | |
| 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 |
| agx::Real | getValue () const |
| virtual void | onPostSolve (const agx::AttachmentPair &ap, agx::Real dt) |
| Post solvers, velocity dependent variables should be updated. | |
| virtual void | restore (agxStream::InputArchive &in) override |
| Restore given stream. | |
| virtual void | restoreLightData (agxStream::StorageStream &str) override |
| Restore structural independent data from stream. | |
| virtual void | store (agxStream::OutputArchive &out) const override |
| Store given stream. | |
| virtual void | storeLightData (agxStream::StorageStream &str) const override |
| Store structural independent data to stream. | |
| virtual void | transform (const agx::AttachmentPair &ap) |
| Transform method to update the value of this angle. | |
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. | |
Protected Member Functions | |
| Angle (agx::Angle::Axis axis, agx::Angle::Type type, agx::Real initialAngle=agx::Real(0)) | |
| Construct given axis and initial angle. | |
| virtual | ~Angle () |
| Reference counted object, protected destructor. | |
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 () |
Protected Attributes | |
| 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 | |
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. | |
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. | |
Constraint angle class.
Definition at line 31 of file ConstraintAngle.h.
| enum agx::Angle::Axis |
Axis this constraint angle is defined about or along.
| Enumerator | |
|---|---|
| U | Constraint x axis. |
| V | Constraint y axis. |
| N | Constraint z axis. |
Definition at line 37 of file ConstraintAngle.h.
| enum agx::Angle::Type |
Type, i.e., defines Axis as 'along' or 'about'.
| Enumerator | |
|---|---|
| TRANSLATIONAL |
|
| ROTATIONAL |
|
Definition at line 47 of file ConstraintAngle.h.
|
protected |
Construct given axis and initial angle.
|
protectedvirtual |
Reference counted object, protected destructor.
| agx::Angle::AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE | ( | agx::Angle | ) |
| agx::Angle::Axis agx::Angle::getAxis | ( | ) | const |
|
virtual |
| ap | - attachment pair |
| index | - which attachment (0,1) |
Reimplemented in agxopenplx::DistanceAngle, and agx::ConeLimitAngle.
Referenced by agx::ConstraintAngleBasedData::getDir1(), and agx::ConstraintAngleBasedData::getDir2().
| agx::Angle::Type agx::Angle::getType | ( | ) | const |
Axis is 'along' or 'about')
|
inline |
Definition at line 345 of file ConstraintAngle.h.
References m_value.
|
virtual |
Post solvers, velocity dependent variables should be updated.
| ap | - attachment pair this angle is part of |
| dt | - time step size |
Reimplemented in agx::RotationalAngle.
|
overridevirtual |
Restore given stream.
|
overridevirtual |
Restore structural independent data from stream.
Reimplemented in agx::RotationalAngle.
|
overridevirtual |
Store given stream.
|
overridevirtual |
Store structural independent data to stream.
Reimplemented in agx::RotationalAngle.
|
virtual |
Transform method to update the value of this angle.
| ap | - attachment pair this angle is part of |
Reimplemented in agx::RotationalAngle, agx::SeparationAngle, agxopenplx::DistanceAngle, and agx::ConeLimitAngle.
|
protected |
Definition at line 123 of file ConstraintAngle.h.
|
protected |
Definition at line 124 of file ConstraintAngle.h.
|
protected |
Definition at line 125 of file ConstraintAngle.h.
Referenced by getValue(), and agxopenplx::DistanceAngle::transform().