|
AGX Dynamics
2.37.3.2
|
Class to hold data for elementary constraints. More...
#include <ElementaryConstraintData.h>
Inheritance diagram for agx::ElementaryConstraintData:Public Member Functions | |
| ElementaryConstraintData () | |
| Used during serialization restore. More... | |
| ElementaryConstraintData (const agx::AttachmentPair *ap) | |
| Construct given attachment pair. More... | |
| virtual | ~ElementaryConstraintData () |
| Destructor. More... | |
| 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. More... | |
| virtual void | set (const agx::AttachmentPair *ap) |
| Assign new attachment pair. More... | |
| virtual void | store (agxStream::OutputArchive &out) const |
| Store to stream. More... | |
Protected Attributes | |
| const agx::AttachmentPair * | m_ap |
Class to hold data for elementary constraints.
Definition at line 33 of file ElementaryConstraintData.h.
| agx::ElementaryConstraintData::ElementaryConstraintData | ( | ) |
Used during serialization restore.
| agx::ElementaryConstraintData::ElementaryConstraintData | ( | const agx::AttachmentPair * | ap | ) |
Construct given attachment pair.
| ap | - attachment pair |
|
virtual |
Destructor.
|
inline |
| index | - index of the attachment (0 or 1) |
index Definition at line 67 of file ElementaryConstraintData.h.
References agxAssert.
|
inline |
Definition at line 61 of file ElementaryConstraintData.h.
References agxAssert.
|
inline |
Definition at line 77 of file ElementaryConstraintData.h.
References agxAssert, and agx::Attachment::CM_TO_ANCHOR_POS.
|
inline |
Definition at line 72 of file ElementaryConstraintData.h.
References agxAssert, and agx::AttachmentPair::SEPARATION.
|
inline |
Definition at line 82 of file ElementaryConstraintData.h.
References agxAssert, agx::Attachment::ANCHOR_POS, agxStream::in(), and agxStream::out().
|
virtual |
Restore from stream.
Reimplemented in agx::ConeLimitData, agx::TwistData, agx::SwingData, agx::ConstraintAngleBasedData, agx::QuatLockData, agx::Slack3ConstraintData, agx::Dot2SlackData, agx::Dot2Data, agx::Dot1SlackData, and agx::Dot1Data.
|
virtual |
|
virtual |
Store to stream.
Reimplemented in agx::ConeLimitData, agx::TwistData, agx::SwingData, agx::ConstraintAngleBasedData, agx::QuatLockData, agx::Slack3ConstraintData, agx::Dot2SlackData, agx::Dot2Data, agx::Dot1SlackData, and agx::Dot1Data.
|
protected |
Definition at line 95 of file ElementaryConstraintData.h.