AGX Dynamics 2.42.3.1
Loading...
Searching...
No Matches
agx::QuatLockData Class Reference

Data holder class for elementary constraint QuatLock. More...

#include <ElementaryConstraintData.h>

+ Inheritance diagram for agx::QuatLockData:

Classes

class  QuatTransformer
 The class holding the actual data and that transforms the data. More...
 

Public Types

typedef agx::ref_ptr< QuatTransformer > QuatTransformerRef
 

Public Member Functions

 QuatLockData ()
 Default constructor used during restore of this object.
 
 QuatLockData (const agx::AttachmentPair *ap)
 Construct given attachment pair.
 
virtual ~QuatLockData ()
 Destructor.
 
agx::Quat & operator[] (agx::UInt i)
 
const agx::Quat & operator[] (agx::UInt i) const
 
virtual void restore (agxStream::InputArchive &in) override
 Restore data from stream.
 
void set (const agx::AttachmentPair *ap) override
 Associate attachment pair to this object, for this object to register QuatTransformer as attachment pair custom data.
 
virtual void store (agxStream::OutputArchive &out) const override
 Store data to stream.
 
- Public Member Functions inherited from agx::ElementaryConstraintData
 ElementaryConstraintData ()
 Used during serialization restore.
 
 ElementaryConstraintData (const agx::AttachmentPair *ap)
 Construct given attachment pair.
 
virtual ~ElementaryConstraintData ()
 Destructor.
 
const agx::Attachment * getAttachment (agx::UInt index) const
 
const agx::AttachmentPair * getAttachmentPair () const
 
const agx::Vec3 & getCmToAnchorPosition (agx::UInt index) const
 
const agx::Vec3 & getSeparation () const
 
const agx::Vec3 & getWorldToAnchorPosition (agx::UInt index) const
 
virtual void restore (agxStream::InputArchive &in)
 Restore from stream.
 
virtual void set (const agx::AttachmentPair *ap)
 Assign new attachment pair.
 
virtual void store (agxStream::OutputArchive &out) const
 Store to stream.
 

Protected Attributes

QuatTransformerRef m_qTransformer
 
- Protected Attributes inherited from agx::ElementaryConstraintData
const agx::AttachmentPair * m_ap
 

Detailed Description

Data holder class for elementary constraint QuatLock.

Definition at line 336 of file ElementaryConstraintData.h.

Member Typedef Documentation

◆ QuatTransformerRef

Constructor & Destructor Documentation

◆ QuatLockData() [1/2]

agx::QuatLockData::QuatLockData ( )

Default constructor used during restore of this object.

◆ QuatLockData() [2/2]

agx::QuatLockData::QuatLockData ( const agx::AttachmentPair *  ap)

Construct given attachment pair.

Parameters
ap- constraint attachment pair

◆ ~QuatLockData()

virtual agx::QuatLockData::~QuatLockData ( )
virtual

Destructor.

Member Function Documentation

◆ operator[]() [1/2]

agx::Quat & agx::QuatLockData::operator[] ( agx::UInt  i)
inline
Returns
the quaternion with index i < 3

Definition at line 409 of file ElementaryConstraintData.h.

References agxAssert.

◆ operator[]() [2/2]

const agx::Quat & agx::QuatLockData::operator[] ( agx::UInt  i) const
inline
Returns
the quaternion with index i < 3

Definition at line 404 of file ElementaryConstraintData.h.

References agxAssert.

◆ restore()

virtual void agx::QuatLockData::restore ( agxStream::InputArchive &  in)
overridevirtual

Restore data from stream.

Reimplemented from agx::ElementaryConstraintData.

Reimplemented in agx::TwistData.

◆ set()

void agx::QuatLockData::set ( const agx::AttachmentPair *  ap)
overridevirtual

Associate attachment pair to this object, for this object to register QuatTransformer as attachment pair custom data.

Parameters
ap- the constraint attachment pair

Reimplemented from agx::ElementaryConstraintData.

◆ store()

virtual void agx::QuatLockData::store ( agxStream::OutputArchive &  out) const
overridevirtual

Store data to stream.

Reimplemented from agx::ElementaryConstraintData.

Reimplemented in agx::TwistData.

Member Data Documentation

◆ m_qTransformer

QuatTransformerRef agx::QuatLockData::m_qTransformer
protected

Definition at line 422 of file ElementaryConstraintData.h.


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