AGX Dynamics 2.42.3.1
Loading...
Searching...
No Matches
agxCable::SegmentAttachment Class Referenceabstract

#include <Attachment.h>

+ Inheritance diagram for agxCable::SegmentAttachment:

Public Types

enum  InitializationMode { USE_RELATIVE_TRANSFORM , ROTATE_TO_NODE_DIRECTION }
 Each SegmentAttachment implementation controls the initialization mode. More...
 

Public Member Functions

agx::Constraint * getConstraint () const
 
agx::Frame * getFrame () const
 
const agx::Name & getName () const
 
agx::RigidBody * getRigidBody () const
 
agx::AffineMatrix4x4 getWorldMatrix () const
 
void setName (const agx::Name &name)
 
- 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

template<typename T >
static agxCable::SegmentAttachmentRef createFromBody (const agx::AffineMatrix4x4 &bodyTransform, agx::RigidBody *body)
 
template<typename T >
static agxCable::SegmentAttachmentRef createFromBody (const agx::Vec3 &bodyPoint, agx::RigidBody *body)
 
template<typename T >
static agxCable::SegmentAttachmentRef createFromWorld (const agx::AffineMatrix4x4 &worldTransform, agx::RigidBody *body)
 
template<typename T >
static agxCable::SegmentAttachmentRef createFromWorld (const agx::Vec3 &worldPoint, agx::RigidBody *body)
 
- 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.
 

Protected Member Functions

 SegmentAttachment (agx::RigidBody *body, agx::Frame *rbSegmentAttachmentFrame, agxCable::SegmentAttachment::InitializationMode initMode)
 
 SegmentAttachment (const agx::Name &name, agx::RigidBody *body, agx::Frame *bodyAttachmentFrame, agx::Constraint *constraint, InitializationMode initMode)
 
virtual ~SegmentAttachment ()
 
virtual agx::ConstraintRef createConstraint (agx::RigidBodyRef body1, agx::FrameRef frame1, agx::RigidBodyRef body2, agx::FrameRef frame2) const =0
 
- 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

agx::RigidBodyRef m_body
 
agx::FrameRef m_bodyAttachmentFrame
 
agx::ConstraintRef m_constraint
 
InitializationMode m_initMode
 
agx::Name m_name
 
- Protected Attributes inherited from agx::Referenced
Mutex m_mutex
 
ObserverContainer m_observers
 
AtomicValue m_refCount
 

Additional Inherited Members

- 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.
 

Detailed Description

Definition at line 49 of file agxCable/Attachment.h.

Member Enumeration Documentation

◆ InitializationMode

Each SegmentAttachment implementation controls the initialization mode.

Enumerator
USE_RELATIVE_TRANSFORM 
ROTATE_TO_NODE_DIRECTION 

Definition at line 55 of file agxCable/Attachment.h.

Constructor & Destructor Documentation

◆ SegmentAttachment() [1/2]

agxCable::SegmentAttachment::SegmentAttachment ( agx::RigidBody *  body,
agx::Frame *  rbSegmentAttachmentFrame,
agxCable::SegmentAttachment::InitializationMode  initMode 
)
protected

◆ SegmentAttachment() [2/2]

agxCable::SegmentAttachment::SegmentAttachment ( const agx::Name &  name,
agx::RigidBody *  body,
agx::Frame *  bodyAttachmentFrame,
agx::Constraint *  constraint,
InitializationMode  initMode 
)
protected

◆ ~SegmentAttachment()

virtual agxCable::SegmentAttachment::~SegmentAttachment ( )
protectedvirtual

Member Function Documentation

◆ createConstraint()

virtual agx::ConstraintRef agxCable::SegmentAttachment::createConstraint ( agx::RigidBodyRef  body1,
agx::FrameRef  frame1,
agx::RigidBodyRef  body2,
agx::FrameRef  frame2 
) const
protectedpure virtual

◆ createFromBody() [1/2]

template<typename T >
agxCable::SegmentAttachmentRef agxCable::SegmentAttachment::createFromBody ( const agx::AffineMatrix4x4 &  bodyTransform,
agx::RigidBody *  body 
)
static

Definition at line 259 of file agxCable/Attachment.h.

◆ createFromBody() [2/2]

template<typename T >
agxCable::SegmentAttachmentRef agxCable::SegmentAttachment::createFromBody ( const agx::Vec3 &  bodyPoint,
agx::RigidBody *  body 
)
static

Definition at line 239 of file agxCable/Attachment.h.

◆ createFromWorld() [1/2]

template<typename T >
agxCable::SegmentAttachmentRef agxCable::SegmentAttachment::createFromWorld ( const agx::AffineMatrix4x4 &  worldTransform,
agx::RigidBody *  body 
)
static

◆ createFromWorld() [2/2]

template<typename T >
agxCable::SegmentAttachmentRef agxCable::SegmentAttachment::createFromWorld ( const agx::Vec3 &  worldPoint,
agx::RigidBody *  body 
)
static

Definition at line 229 of file agxCable/Attachment.h.

◆ getConstraint()

agx::Constraint * agxCable::SegmentAttachment::getConstraint ( ) const

◆ getFrame()

agx::Frame * agxCable::SegmentAttachment::getFrame ( ) const

◆ getName()

const agx::Name & agxCable::SegmentAttachment::getName ( ) const

◆ getRigidBody()

agx::RigidBody * agxCable::SegmentAttachment::getRigidBody ( ) const

◆ getWorldMatrix()

agx::AffineMatrix4x4 agxCable::SegmentAttachment::getWorldMatrix ( ) const

◆ setName()

void agxCable::SegmentAttachment::setName ( const agx::Name &  name)

Member Data Documentation

◆ m_body

agx::RigidBodyRef agxCable::SegmentAttachment::m_body
protected

Definition at line 112 of file agxCable/Attachment.h.

◆ m_bodyAttachmentFrame

agx::FrameRef agxCable::SegmentAttachment::m_bodyAttachmentFrame
protected

Definition at line 113 of file agxCable/Attachment.h.

◆ m_constraint

agx::ConstraintRef agxCable::SegmentAttachment::m_constraint
protected

Definition at line 114 of file agxCable/Attachment.h.

◆ m_initMode

InitializationMode agxCable::SegmentAttachment::m_initMode
protected

Definition at line 115 of file agxCable/Attachment.h.

◆ m_name

agx::Name agxCable::SegmentAttachment::m_name
protected

Definition at line 111 of file agxCable/Attachment.h.


The documentation for this class was generated from the following file: