AGX Dynamics 2.42.1.1
Loading...
Searching...
No Matches
agx::Dot2Data Class Reference

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

#include <ElementaryConstraintData.h>

+ Inheritance diagram for agx::Dot2Data:

Public Member Functions

 Dot2Data ()
 Default constructor used during restore of this object.
 
 Dot2Data (const agx::AttachmentPair *ap, agx::Attachment::Transformed dir, agx::Int body=0)
 Construct given constraint attachment pair and direction to be orthogonal to the separation vector.
 
virtual ~Dot2Data ()
 Destructor.
 
const agx::Vec3getDir () const
 
virtual agx::Int getReferenceBody () 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::ElementaryConstraintData
 ElementaryConstraintData ()
 Used during serialization restore.
 
 ElementaryConstraintData (const agx::AttachmentPair *ap)
 Construct given attachment pair.
 
virtual ~ElementaryConstraintData ()
 Destructor.
 
const agx::AttachmentgetAttachment (agx::UInt index) const
 
const agx::AttachmentPairgetAttachmentPair () const
 
const agx::Vec3getCmToAnchorPosition (agx::UInt index) const
 
const agx::Vec3getSeparation () const
 
const agx::Vec3getWorldToAnchorPosition (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::Int m_body
 
agx::Attachment::Transformed m_dir
 
- Protected Attributes inherited from agx::ElementaryConstraintData
const agx::AttachmentPairm_ap
 

Detailed Description

Data holder class for elementary constraint Dot2.

Definition at line 199 of file ElementaryConstraintData.h.

Constructor & Destructor Documentation

◆ Dot2Data() [1/2]

agx::Dot2Data::Dot2Data ( )

Default constructor used during restore of this object.

◆ Dot2Data() [2/2]

agx::Dot2Data::Dot2Data ( const agx::AttachmentPair ap,
agx::Attachment::Transformed  dir,
agx::Int  body = 0 
)

Construct given constraint attachment pair and direction to be orthogonal to the separation vector.

Parameters
ap- attachment pair
dir- direction reference attachment 1 to be orthogonal to the separation vector
body- the first body of the constraint

◆ ~Dot2Data()

virtual agx::Dot2Data::~Dot2Data ( )
virtual

Destructor.

Member Function Documentation

◆ getDir()

const agx::Vec3 & agx::Dot2Data::getDir ( ) const
inline
Returns
direction reference attachment for "first body" to be orthogonal to the separation vector

Definition at line 230 of file ElementaryConstraintData.h.

◆ getReferenceBody()

virtual agx::Int agx::Dot2Data::getReferenceBody ( ) const
inlinevirtual

Definition at line 225 of file ElementaryConstraintData.h.

◆ restore()

virtual void agx::Dot2Data::restore ( agxStream::InputArchive in)
overridevirtual

Restore data from stream.

Reimplemented from agx::ElementaryConstraintData.

Reimplemented in agx::Dot2SlackData.

◆ store()

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

Store data to stream.

Reimplemented from agx::ElementaryConstraintData.

Reimplemented in agx::Dot2SlackData.

Member Data Documentation

◆ m_body

agx::Int agx::Dot2Data::m_body
protected

Definition at line 244 of file ElementaryConstraintData.h.

◆ m_dir

agx::Attachment::Transformed agx::Dot2Data::m_dir
protected

Definition at line 243 of file ElementaryConstraintData.h.


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