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

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

#include <ElementaryConstraintData.h>

+ Inheritance diagram for agx::Dot2SlackData:

Public Member Functions

 Dot2SlackData ()
 Default constructor used during restore of this object.
 
 Dot2SlackData (const agx::AttachmentPair *ap, agx::Attachment::Transformed dir)
 Construct given constraint attachment pair and direction to be orthogonal to the separation vector.
 
virtual ~Dot2SlackData ()
 Destructor.
 
agx::Real getSlack () const
 
virtual void restore (agxStream::InputArchive &in) override
 Restore data from stream.
 
void setSlack (agx::Real slack)
 
virtual void store (agxStream::OutputArchive &out) const override
 Store data to stream.
 
- Public Member Functions inherited from agx::Dot2Data
 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::Vec3 & getDir () 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::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::Real m_slack
 
- Protected Attributes inherited from agx::Dot2Data
agx::Int m_body
 
agx::Attachment::Transformed m_dir
 
- Protected Attributes inherited from agx::ElementaryConstraintData
const agx::AttachmentPair * m_ap
 

Detailed Description

Data holder class for elementary constraint Dot2Slack.

Definition at line 252 of file ElementaryConstraintData.h.

Constructor & Destructor Documentation

◆ Dot2SlackData() [1/2]

agx::Dot2SlackData::Dot2SlackData ( )

Default constructor used during restore of this object.

◆ Dot2SlackData() [2/2]

agx::Dot2SlackData::Dot2SlackData ( const agx::AttachmentPair *  ap,
agx::Attachment::Transformed  dir 
)

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

◆ ~Dot2SlackData()

virtual agx::Dot2SlackData::~Dot2SlackData ( )
virtual

Destructor.

Member Function Documentation

◆ getSlack()

agx::Real agx::Dot2SlackData::getSlack ( ) const
inline

Definition at line 284 of file ElementaryConstraintData.h.

◆ restore()

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

Restore data from stream.

Reimplemented from agx::Dot2Data.

◆ setSlack()

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

Definition at line 289 of file ElementaryConstraintData.h.

◆ store()

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

Store data to stream.

Reimplemented from agx::Dot2Data.

Member Data Documentation

◆ m_slack

agx::Real agx::Dot2SlackData::m_slack
protected

Definition at line 295 of file ElementaryConstraintData.h.


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