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

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

#include <ElementaryConstraintData.h>

+ Inheritance diagram for agx::TwistData:

Public Member Functions

 TwistData ()
 Default constructor used during restore of this object.
 
 TwistData (const agx::AttachmentPair *ap, agx::Attachment::Transformed dir1, agx::Attachment::Transformed dir2)
 Construct given attachment pair.
 
virtual ~TwistData ()
 Destructor.
 
const agx::Vec3 & getDir1 () const
 
const agx::Vec3 & getDir2 () const
 
virtual void restore (agxStream::InputArchive &in) override
 Restore data from stream.
 
virtual void store (agxStream::OutputArchive &out) const override
 Store data to stream.
 
- Public Member Functions inherited from agx::QuatLockData
 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

agx::Attachment::Transformed m_dir1
 
agx::Attachment::Transformed m_dir2
 
- Protected Attributes inherited from agx::QuatLockData
QuatTransformerRef m_qTransformer
 
- Protected Attributes inherited from agx::ElementaryConstraintData
const agx::AttachmentPair * m_ap
 

Additional Inherited Members

- Public Types inherited from agx::QuatLockData
typedef agx::ref_ptr< QuatTransformer > QuatTransformerRef
 

Detailed Description

Data holder class for elementary constraint Twist.

Definition at line 591 of file ElementaryConstraintData.h.

Constructor & Destructor Documentation

◆ TwistData() [1/2]

agx::TwistData::TwistData ( )

Default constructor used during restore of this object.

◆ TwistData() [2/2]

agx::TwistData::TwistData ( const agx::AttachmentPair *  ap,
agx::Attachment::Transformed  dir1,
agx::Attachment::Transformed  dir2 
)

Construct given attachment pair.

Parameters
ap- constraint attachment pair

◆ ~TwistData()

virtual agx::TwistData::~TwistData ( )
virtual

Destructor.

Member Function Documentation

◆ getDir1()

const agx::Vec3 & agx::TwistData::getDir1 ( ) const
inline
Returns
direction reference attachment 1

Definition at line 624 of file ElementaryConstraintData.h.

◆ getDir2()

const agx::Vec3 & agx::TwistData::getDir2 ( ) const
inline
Returns
direction reference attachment 2

Definition at line 632 of file ElementaryConstraintData.h.

◆ restore()

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

Restore data from stream.

Reimplemented from agx::QuatLockData.

◆ store()

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

Store data to stream.

Reimplemented from agx::QuatLockData.

Member Data Documentation

◆ m_dir1

agx::Attachment::Transformed agx::TwistData::m_dir1
protected

Definition at line 638 of file ElementaryConstraintData.h.

◆ m_dir2

agx::Attachment::Transformed agx::TwistData::m_dir2
protected

Definition at line 639 of file ElementaryConstraintData.h.


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