Implementation of constraint angle ALONG an axis.
More...
#include <ConstraintAngle.h>
Implementation of constraint angle ALONG an axis.
Definition at line 195 of file ConstraintAngle.h.
◆ Axis
Axis this constraint angle is defined about or along.
Definition at line 37 of file ConstraintAngle.h.
◆ Type
Type, i.e., defines Axis as 'along' or 'about'.
| Enumerator |
|---|
| TRANSLATIONAL | Axis is along U, V or N.
|
| ROTATIONAL | Axis is about U, V or N.
|
Definition at line 47 of file ConstraintAngle.h.
◆ SeparationAngle() [1/2]
Construct given axis and initial angle.
◆ SeparationAngle() [2/2]
| agx::SeparationAngle::SeparationAngle |
( |
| ) |
|
|
protected |
Default constructor used during restore.
◆ ~SeparationAngle()
| virtual agx::SeparationAngle::~SeparationAngle |
( |
| ) |
|
|
protectedvirtual |
Reference counted object, protected destructor.
◆ AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE()
| agx::Angle::AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE |
( |
agx::Angle |
| ) |
|
|
inherited |
◆ allocateObserverVector()
| void agx::Referenced::allocateObserverVector |
( |
| ) |
const |
|
protectedinherited |
◆ as() [1/2]
template<typename T >
| T* agx::Referenced::as |
( |
| ) |
|
|
inherited |
◆ as() [2/2]
template<typename T >
| const T* agx::Referenced::as |
( |
| ) |
const |
|
inherited |
◆ asSafe() [1/2]
template<typename T >
| T* agx::Referenced::asSafe |
( |
| ) |
|
|
inherited |
◆ asSafe() [2/2]
template<typename T >
| const T* agx::Referenced::asSafe |
( |
| ) |
const |
|
inherited |
◆ create() [1/2]
◆ create() [2/2]
◆ deleteUsingDeleteHandler()
| void agx::Referenced::deleteUsingDeleteHandler |
( |
| ) |
const |
|
protectedinherited |
◆ generateUuid()
| void agxStream::Serializable::generateUuid |
( |
| ) |
|
|
protectedinherited |
◆ getAxis()
- Returns
- the axis this constraint angle is defined about or along
◆ getClassName()
| const char* agx::SeparationAngle::getClassName |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getConstructClassId()
| static const char* agx::SeparationAngle::getConstructClassId |
( |
| ) |
|
|
inlinestatic |
◆ getDeleteHandler()
◆ getDir()
- Parameters
-
| ap | - attachment pair |
| index | - which attachment (0,1) |
- Returns
- the world direction of the axis given the attachment pair
◆ getEnableSerialization()
| bool agxStream::Serializable::getEnableSerialization |
( |
| ) |
const |
|
inherited |
- Returns
- true if serialization is enabled for this object
Definition at line 273 of file Serializable.h.
◆ getEnableUuidGeneration()
| bool agxStream::Serializable::getEnableUuidGeneration |
( |
| ) |
|
|
inherited |
- Returns
- true if Uuid:s should be generated for each new Serializable object
◆ getIndex()
| agx::UInt32 agxStream::Serializable::getIndex |
( |
| ) |
const |
|
inherited |
This index is given at creation of this object.
It is guaranteed to be unique for the lifetime of this library instance. As long as the application is running. This value is not serialized or restored. A new object will always get a new index no matter how it is created.
- Returns
- an instance index of this object. This is unique for the lifetime of this library instance.
Definition at line 247 of file Serializable.h.
◆ getReferenceCount()
| int agx::Referenced::getReferenceCount |
( |
| ) |
const |
|
inherited |
- Returns
- the number pointers currently referencing this object.
◆ getStorageAgent()
| agxStream::StorageAgent* agx::SeparationAngle::getStorageAgent |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getType()
- Returns
- the type of this constraint angle (i.e., if
Axis is 'along' or 'about')
◆ getUuid()
| agx::Uuid agxStream::Serializable::getUuid |
( |
| ) |
const |
|
inherited |
◆ getValue()
| const Real & agx::Angle::getValue |
( |
| ) |
const |
|
inherited |
- Returns
- const reference to value (so it may be used by elementary constraints that works on this angle)
Definition at line 230 of file ConstraintAngle.h.
◆ is()
template<typename T >
| bool agx::Referenced::is |
( |
| ) |
const |
|
inherited |
◆ isFinished()
| bool agxStream::Serializable::isFinished |
( |
| ) |
const |
|
inherited |
- Returns
- true if this class is restored correctly and should not be deleted during destruction of an Archive.
Definition at line 252 of file Serializable.h.
References AGX_FORCE_INLINE.
◆ reference()
| void agx::Referenced::reference |
( |
void * |
ptr = nullptr | ) |
const |
|
inherited |
Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
This method should be used with care, always balanced with the same number of calls to unreference.
◆ restore()
Restore given stream.
Reimplemented from agx::Angle.
◆ restoreLightData()
◆ safeCast()
◆ setDeleteHandler()
Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
◆ setEnableSerialization()
| void agxStream::Serializable::setEnableSerialization |
( |
bool |
flag | ) |
|
|
inherited |
Set to false to disable serialization of this object.
It will just be ignored during serialization (writing). It is still possible to restore TO this object.
◆ setEnableUuidGeneration()
| static void agxStream::Serializable::setEnableUuidGeneration |
( |
bool |
flag | ) |
|
|
staticinherited |
Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled.
◆ setFinished()
| void agxStream::Serializable::setFinished |
( |
| ) |
|
|
inherited |
Tells this class that it is restored correctly and should not be deleted during destruction of an Archive.
◆ setUuid()
Explicitly set a Uuid on a serializable object.
Use this method with great care, as it can result in non-unique identifiers in the system!
◆ store()
Store given stream.
Reimplemented from agx::Angle.
◆ storeLightData()
◆ transform()
Update value given constraint pair.
Reimplemented from agx::Angle.
◆ unreference()
| void agx::Referenced::unreference |
( |
void * |
ptr = nullptr | ) |
const |
|
inherited |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
If the reference count goes to zero, it is assumed that this object is no longer referenced and is automatically deleted.
This method should be used with care, always balanced with the same number of calls to reference.
Referenced by agxData::EntityRef< ContactMaterialPtr >::~EntityRef().
◆ unreference_nodelete()
| void agx::Referenced::unreference_nodelete |
( |
| ) |
const |
|
inherited |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
However, do not delete it, even if ref count goes to 0. Warning, unref_nodelete() should only be called if the user knows exactly who will be responsible for, one should prefer unref() over unref_nodelete() as the later can lead to memory leaks.
◆ ValidateCast()
template<typename T >
| static bool agx::Referenced::ValidateCast |
( |
const Referenced * |
object | ) |
|
|
staticinherited |
◆ m_axis
◆ m_mutex
| Mutex agx::Referenced::m_mutex |
|
mutableprotectedinherited |
◆ m_observers
|
|
mutableprotectedinherited |
◆ m_refCount
|
|
mutableprotectedinherited |
◆ m_type
◆ m_value
The documentation for this class was generated from the following file: