AGXDynamics  2.31.1.0
agx::Dot1SlackData Class Reference

Extended Dot1Data with additional slack parameter. More...

#include <ElementaryConstraintData.h>

+ Inheritance diagram for agx::Dot1SlackData:

Public Member Functions

 Dot1SlackData ()
 Default constructor. More...
 
 Dot1SlackData (const agx::AttachmentPair *ap, agx::Attachment::Transformed dir1, agx::Attachment::Transformed dir2)
 
virtual ~Dot1SlackData ()
 
const agx::Attachment * getAttachment (agx::UInt index) const
 
const agx::AttachmentPair * getAttachmentPair () const
 
const agx::Vec3 & getCmToAnchorPosition (agx::UInt index) const
 
const agx::Vec3 & getDir1 () const
 
const agx::Vec3 & getDir2 () const
 
const agx::Vec3 & getSeparation () const
 
agx::Real getSlack () const
 
const agx::Vec3 & getWorldToAnchorPosition (agx::UInt index) const
 
virtual void restore (agxStream::InputArchive &in) override
 Restore data from stream. More...
 
virtual void set (const agx::AttachmentPair *ap)
 Assign new attachment pair. More...
 
void setSlack (agx::Real slack)
 Set amount of slack in constraint. More...
 
virtual void store (agxStream::OutputArchive &out) const override
 Store data to stream. More...
 

Protected Attributes

const agx::AttachmentPair * m_ap
 
agx::Attachment::Transformed m_dir1
 
agx::Attachment::Transformed m_dir2
 
agx::Real m_slack
 

Detailed Description

Extended Dot1Data with additional slack parameter.

Definition at line 151 of file ElementaryConstraintData.h.

Constructor & Destructor Documentation

◆ Dot1SlackData() [1/2]

agx::Dot1SlackData::Dot1SlackData ( )

Default constructor.

◆ Dot1SlackData() [2/2]

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

◆ ~Dot1SlackData()

virtual agx::Dot1SlackData::~Dot1SlackData ( )
virtual

Member Function Documentation

◆ getAttachment()

const agx::Attachment* agx::ElementaryConstraintData::getAttachment ( agx::UInt  index) const
inlineinherited
Parameters
index- index of the attachment (0 or 1)
Returns
the constraint attachment for attachment with index index

Definition at line 67 of file ElementaryConstraintData.h.

References agxAssert.

◆ getAttachmentPair()

const agx::AttachmentPair* agx::ElementaryConstraintData::getAttachmentPair ( ) const
inlineinherited
Returns
the attachment pair

Definition at line 61 of file ElementaryConstraintData.h.

References agxAssert.

◆ getCmToAnchorPosition()

const agx::Vec3& agx::ElementaryConstraintData::getCmToAnchorPosition ( agx::UInt  index) const
inlineinherited
Returns
the vector going from center of mass to the constraint anchor point given index (0 or 1)

Definition at line 77 of file ElementaryConstraintData.h.

References agxAssert, and agx::Attachment::CM_TO_ANCHOR_POS.

◆ getDir1()

const agx::Vec3& agx::Dot1Data::getDir1 ( ) const
inlineinherited
Returns
direction reference attachment 1

Definition at line 125 of file ElementaryConstraintData.h.

◆ getDir2()

const agx::Vec3& agx::Dot1Data::getDir2 ( ) const
inlineinherited
Returns
direction reference attachment 2

Definition at line 130 of file ElementaryConstraintData.h.

References agxStream::in(), and agxStream::out().

◆ getSeparation()

const agx::Vec3& agx::ElementaryConstraintData::getSeparation ( ) const
inlineinherited
Returns
the separation vector between the two attachments (att1->pos - att2->pos)

Definition at line 72 of file ElementaryConstraintData.h.

References agxAssert, and agx::AttachmentPair::SEPARATION.

◆ getSlack()

agx::Real agx::Dot1SlackData::getSlack ( ) const
inline
Returns
Get amount of slack in constraint

Definition at line 176 of file ElementaryConstraintData.h.

References agxStream::in(), and agxStream::out().

◆ getWorldToAnchorPosition()

const agx::Vec3& agx::ElementaryConstraintData::getWorldToAnchorPosition ( agx::UInt  index) const
inlineinherited
Returns
the constraint anchor point in world coordinates given index (0 or 1)

Definition at line 82 of file ElementaryConstraintData.h.

References agxAssert, agx::Attachment::ANCHOR_POS, agxStream::in(), and agxStream::out().

◆ restore()

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

Restore data from stream.

Reimplemented from agx::Dot1Data.

◆ set()

virtual void agx::ElementaryConstraintData::set ( const agx::AttachmentPair *  ap)
virtualinherited

Assign new attachment pair.

Parameters
ap- attachment pair

Reimplemented in agx::QuatLockData.

◆ setSlack()

void agx::Dot1SlackData::setSlack ( agx::Real  slack)
inline

Set amount of slack in constraint.

Definition at line 168 of file ElementaryConstraintData.h.

◆ store()

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

Store data to stream.

Reimplemented from agx::Dot1Data.

Member Data Documentation

◆ m_ap

const agx::AttachmentPair* agx::ElementaryConstraintData::m_ap
protectedinherited

Definition at line 95 of file ElementaryConstraintData.h.

◆ m_dir1

agx::Attachment::Transformed agx::Dot1Data::m_dir1
protectedinherited

Definition at line 143 of file ElementaryConstraintData.h.

◆ m_dir2

agx::Attachment::Transformed agx::Dot1Data::m_dir2
protectedinherited

Definition at line 144 of file ElementaryConstraintData.h.

◆ m_slack

agx::Real agx::Dot1SlackData::m_slack
protected

Definition at line 193 of file ElementaryConstraintData.h.


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