AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
agx::Slack3ConstraintData Class Reference

Generic class for holding constraint data including 3 slack parameters. More...

#include <ElementaryConstraintData.h>

+ Inheritance diagram for agx::Slack3ConstraintData:

Public Member Functions

 Slack3ConstraintData ()
 
 Slack3ConstraintData (const agx::AttachmentPair *ap)
 
virtual ~Slack3ConstraintData ()
 
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 getSlack () const
 
const agx::Vec3 & getWorldToAnchorPosition (agx::UInt index) const
 
virtual void restore (agxStream::InputArchive &in) override
 Restore from stream. More...
 
virtual void set (const agx::AttachmentPair *ap)
 Assign new attachment pair. More...
 
void setSlack (agx::Vec3 slack)
 
virtual void store (agxStream::OutputArchive &out) const override
 Store to stream. More...
 

Protected Attributes

const agx::AttachmentPair * m_ap
 
agx::Vec3 m_slack
 

Detailed Description

Generic class for holding constraint data including 3 slack parameters.

Definition at line 304 of file ElementaryConstraintData.h.

Constructor & Destructor Documentation

agx::Slack3ConstraintData::Slack3ConstraintData ( )
agx::Slack3ConstraintData::Slack3ConstraintData ( const agx::AttachmentPair *  ap)
virtual agx::Slack3ConstraintData::~Slack3ConstraintData ( )
virtual

Member Function Documentation

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.

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

Definition at line 61 of file ElementaryConstraintData.h.

References agxAssert.

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.

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.

const agx::Vec3 agx::Slack3ConstraintData::getSlack ( ) const
inline

Definition at line 317 of file ElementaryConstraintData.h.

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, and agx::Attachment::ANCHOR_POS.

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

Restore from stream.

Reimplemented from agx::ElementaryConstraintData.

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

Assign new attachment pair.

Parameters
ap- attachment pair

Reimplemented in agx::QuatLockData.

void agx::Slack3ConstraintData::setSlack ( agx::Vec3  slack)
inline

Definition at line 322 of file ElementaryConstraintData.h.

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

Store to stream.

Reimplemented from agx::ElementaryConstraintData.

Member Data Documentation

const agx::AttachmentPair* agx::ElementaryConstraintData::m_ap
protectedinherited
agx::Vec3 agx::Slack3ConstraintData::m_slack
protected

Definition at line 328 of file ElementaryConstraintData.h.


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