Node attachment using lock joint, i.e., the node cannot move relative to this attachment.
More...
#include <Deformable1DAttachment.h>
Node attachment using lock joint, i.e., the node cannot move relative to this attachment.
Definition at line 252 of file Deformable1DAttachment.h.
Each attachment implementation controls the initialization mode.
| Enumerator |
|---|
| USE_RELATIVE_TRANSFORM |
|
| ROTATE_TO_NODE_DIRECTION |
|
Definition at line 42 of file Deformable1DAttachment.h.
Construct given rigid body and relative (to rigid body) position.
The direction of the Deformable1D will be used.
- Parameters
-
| rb | - rigid body |
| relPosition | - position in rigid body frame |
Construct given rigid body and relative (to rigid body) transform.
The relative transform defines the lock joint.
- Parameters
-
| rb | - rigid body |
| relTransform | - transform in rigid body frame |
| agxModel::RigidNodeAttachment::RigidNodeAttachment |
( |
| ) |
|
|
protected |
Default constructor for serialization.
| virtual agxModel::RigidNodeAttachment::~RigidNodeAttachment |
( |
| ) |
|
|
protectedvirtual |
Reference counted object, protected destructor.
| void agx::Referenced::allocateObserverVector |
( |
| ) |
const |
|
protectedinherited |
template<typename T >
| T* agx::Referenced::as |
( |
| ) |
|
|
inherited |
template<typename T >
| const T* agx::Referenced::as |
( |
| ) |
const |
|
inherited |
template<typename T >
| T* agx::Referenced::asSafe |
( |
| ) |
|
|
inherited |
template<typename T >
| const T* agx::Referenced::asSafe |
( |
| ) |
const |
|
inherited |
|
|
inlineoverrideprotectedvirtualinherited |
Creates an node attachment given a point in rb local frame.
The attachment frame will coincide at the given local point.
- Parameters
-
| bodyPoint | - constraint center point given in the local body frame |
| rb | - rigid body attached to |
- Returns
- the attachment of type T
Definition at line 362 of file Deformable1DAttachment.h.
Creates an node attachment given a transform in rb local frame.
The attachment frame will coincide at the given local transform.
- Parameters
-
| bodyTransform | - constraint transform given in the local body frame |
| rb | - rigid body attached to |
- Returns
- the attachment of type T
Definition at line 374 of file Deformable1DAttachment.h.
| void agx::Referenced::deleteUsingDeleteHandler |
( |
| ) |
const |
|
protectedinherited |
| void agxStream::Serializable::generateUuid |
( |
| ) |
|
|
protectedinherited |
| const char* agxModel::RigidNodeAttachment::getClassName |
( |
| ) |
const |
|
inlineoverridevirtual |
- Returns
- the constraint of this attachment
| static const char* agxModel::RigidNodeAttachment::getConstructClassId |
( |
| ) |
|
|
inlinestatic |
| bool agxStream::Serializable::getEnableSerialization |
( |
| ) |
const |
|
inherited |
- Returns
- true if serialization is enabled for this object
Definition at line 273 of file Serializable.h.
| bool agxStream::Serializable::getEnableUuidGeneration |
( |
| ) |
|
|
inherited |
- Returns
- true if Uuid:s should be generated for each new Serializable object
| agx::Frame* agxModel::NodeAttachment::getFrame |
( |
| ) |
const |
|
inherited |
| 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.
| const agx::String& agxModel::NodeAttachment::getName |
( |
| ) |
const |
|
inherited |
- Returns
- name of this attachment
| int agx::Referenced::getReferenceCount |
( |
| ) |
const |
|
inherited |
- Returns
- the number pointers currently referencing this object.
| agxStream::StorageAgent* agxModel::RigidNodeAttachment::getStorageAgent |
( |
| ) |
const |
|
inlineoverridevirtual |
| agx::Uuid agxStream::Serializable::getUuid |
( |
| ) |
const |
|
inherited |
- Returns
- world transform of this attachment
template<typename T >
| bool agx::Referenced::is |
( |
| ) |
const |
|
inherited |
| 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.
| 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.
Referenced by agxData::Val< UInt >::Val().
Restore structural independent data from stream.
Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
| 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.
| 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.
| void agxStream::Serializable::setFinished |
( |
| ) |
|
|
inherited |
Tells this class that it is restored correctly and should not be deleted during destruction of an Archive.
Name this attachment, e.g., to find this attachment using agxModel::Node::getAttachment( const agx::String& name ).
- Parameters
-
| name | - name of this attachment |
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 structural independent data to stream.
| 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.
| 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.
template<typename T >
| static bool agx::Referenced::ValidateCast |
( |
const Referenced * |
object | ) |
|
|
staticinherited |
| Mutex agx::Referenced::m_mutex |
|
mutableprotectedinherited |
|
|
mutableprotectedinherited |
| AtomicValue agx::Referenced::m_refCount |
|
mutableprotectedinherited |
The documentation for this class was generated from the following file: