|
AGX Dynamics
2.37.2.0
|
Constraint attachment pair class. More...
#include <Attachment.h>
Classes | |
| class | CustomData |
| Custom data for separation pair. More... | |
Public Types | |
| typedef agx::ref_ptr< CustomData > | CustomDataRef |
| enum | Transformed { SEPARATION, NUM_ELEMENTS } |
| Data access enum. More... | |
Public Member Functions | |
| AttachmentPair () | |
| Default constructor, attachment frame 1 = attachment frame 2 = 0. More... | |
| virtual | ~AttachmentPair () |
| Destructor. More... | |
| void | add (agx::Angle *angle) |
| Add constraint angle. More... | |
| agx::Real | calculateAngularSpeed () const |
| Calculates the rotational/angular speed between the two attachments, about the constraint axis. More... | |
| agx::Real | calculateLinearSpeed () const |
| Calculates the linear speed between the two attachments, along the constraint axis. More... | |
| const agx::Vec3 & | get (agx::AttachmentPair::Transformed entry) const |
| agx::Angle * | getAngle (agx::UInt index) const |
| Access constraint angle given index. More... | |
| const agx::AngleContainer & | getAngles () const |
| agx::Attachment * | getAttachment1 () const |
| agx::Attachment * | getAttachment2 () const |
| agx::AttachmentPair::CustomData * | getCustomData () const |
| agx::Bool | hasAngle (const agx::Angle *angle) const |
| agx::Attachment * | operator[] (agx::UInt i) const |
| virtual agx::Bool | rebind () |
| Rebind given first frame. More... | |
| virtual void | restore (agxStream::InputArchive &in) |
| Restore given stream. More... | |
| virtual void | restoreLightData (agxStream::StorageStream &str) |
| Restore structural independent data from stream. More... | |
| void | set (agx::Attachment *a1, agx::Attachment *a2) |
| Assign constraint attachment frames. More... | |
| void | setCustomData (agx::AttachmentPair::CustomData *customData) |
| Assign custom data to receive transform calls. More... | |
| virtual void | store (agxStream::OutputArchive &out) const |
| Store given stream. More... | |
| virtual void | storeLightData (agxStream::StorageStream &str) const |
| Store structural independent data to stream. More... | |
| virtual void | transform () |
| Transform attachment frames and updates data. More... | |
| agx::Bool | valid () const |
Protected Attributes | |
| AngleContainer | m_angles |
| AttachmentRef | m_attachments [2] |
| CustomDataRef | m_customData |
| agx::Vec3 | m_transformed [NUM_ELEMENTS] |
Constraint attachment pair class.
Data holder for a pair of constraint attachments (i.e., what defines the difference between the frames that is used in constraints).
Definition at line 300 of file Attachment.h.
Definition at line 333 of file Attachment.h.
Data access enum.
| Enumerator | |
|---|---|
| SEPARATION | Separation vector, i.e., the vector from frame 2 to frame 1. |
| NUM_ELEMENTS | Number of data elements. |
Definition at line 306 of file Attachment.h.
| agx::AttachmentPair::AttachmentPair | ( | ) |
Default constructor, attachment frame 1 = attachment frame 2 = 0.
|
virtual |
Destructor.
| void agx::AttachmentPair::add | ( | agx::Angle * | angle | ) |
Add constraint angle.
| angle | - constraint angle to add |
| agx::Real agx::AttachmentPair::calculateAngularSpeed | ( | ) | const |
Calculates the rotational/angular speed between the two attachments, about the constraint axis.
| agx::Real agx::AttachmentPair::calculateLinearSpeed | ( | ) | const |
Calculates the linear speed between the two attachments, along the constraint axis.
| const Vec3 & agx::AttachmentPair::get | ( | agx::AttachmentPair::Transformed | entry | ) | const |
Definition at line 543 of file Attachment.h.
| agx::Angle* agx::AttachmentPair::getAngle | ( | agx::UInt | index | ) | const |
Access constraint angle given index.
| index | - index of angle |
| const agx::AngleContainer& agx::AttachmentPair::getAngles | ( | ) | const |
|
inline |
Definition at line 533 of file Attachment.h.
|
inline |
Definition at line 538 of file Attachment.h.
| agx::AttachmentPair::CustomData* agx::AttachmentPair::getCustomData | ( | ) | const |
| agx::Bool agx::AttachmentPair::hasAngle | ( | const agx::Angle * | angle | ) | const |
| Attachment * agx::AttachmentPair::operator[] | ( | agx::UInt | i | ) | const |
i (0 or 1!) Definition at line 527 of file Attachment.h.
References agxAssert.
|
virtual |
Rebind given first frame.
|
virtual |
Restore given stream.
|
virtual |
Restore structural independent data from stream.
| void agx::AttachmentPair::set | ( | agx::Attachment * | a1, |
| agx::Attachment * | a2 | ||
| ) |
Assign constraint attachment frames.
| a1 | - first attachment frame |
| a2 | - second attachment frame |
| void agx::AttachmentPair::setCustomData | ( | agx::AttachmentPair::CustomData * | customData | ) |
Assign custom data to receive transform calls.
| customData | - user defined custom data |
|
virtual |
Store given stream.
|
virtual |
Store structural independent data to stream.
|
virtual |
Transform attachment frames and updates data.
| agx::Bool agx::AttachmentPair::valid | ( | ) | const |
|
protected |
Definition at line 460 of file Attachment.h.
|
protected |
Definition at line 457 of file Attachment.h.
|
protected |
Definition at line 459 of file Attachment.h.
|
protected |
Definition at line 458 of file Attachment.h.