|
AGX Dynamics 2.42.3.1
|
Basic data holder class for cone limit constraint data. More...
#include <ElementaryConstraintData.h>
Inheritance diagram for agx::ConeLimitData:Public Member Functions | |
| ConeLimitData () | |
| Default constructor used during restore of this object. | |
| ConeLimitData (const agx::AttachmentPair *ap, agx::ConeLimitAngle *angle) | |
| Construct given constraint attachment pair and the input angle for the elementary constraint to work on. | |
| virtual | ~ConeLimitData () |
| Destructor. | |
| Vec2 | getConeLimitValue () const |
| Get the limit angles of the cone limit. | |
| virtual void | restore (agxStream::InputArchive &in) override |
| Restore data from stream. | |
| void | setConeLimitValue (Vec2 limit) |
| Set the limit angles of the cone limit. | |
| virtual void | store (agxStream::OutputArchive &out) const override |
| Store data to stream. | |
Public Member Functions inherited from agx::ConstraintAngleBasedData | |
| ConstraintAngleBasedData () | |
| Default constructor used during restore of this object. | |
| ConstraintAngleBasedData (const agx::AttachmentPair *ap, agx::Angle *angle) | |
| Construct given constraint attachment pair and the input angle for the elementary constraint to work on. | |
| virtual | ~ConstraintAngleBasedData () |
| Destructor. | |
| const agx::Angle * | getAngle () const |
| const agx::Vec3 & | getDir1 () const |
| const agx::Vec3 & | getDir2 () 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 Types | |
| typedef agx::ref_ptr< agx::ConeLimitAngle > | ConeLimitAngleRef |
Additional Inherited Members | |
Protected Attributes inherited from agx::ConstraintAngleBasedData | |
| AngleRef | m_angle |
Protected Attributes inherited from agx::ElementaryConstraintData | |
| const agx::AttachmentPair * | m_ap |
Basic data holder class for cone limit constraint data.
Definition at line 647 of file ElementaryConstraintData.h.
|
protected |
Definition at line 691 of file ElementaryConstraintData.h.
| agx::ConeLimitData::ConeLimitData | ( | ) |
Default constructor used during restore of this object.
| agx::ConeLimitData::ConeLimitData | ( | const agx::AttachmentPair * | ap, |
| agx::ConeLimitAngle * | angle | ||
| ) |
Construct given constraint attachment pair and the input angle for the elementary constraint to work on.
| ap | - constraint attachment pair |
| angle | - input angle |
|
virtual |
Destructor.
| Vec2 agx::ConeLimitData::getConeLimitValue | ( | ) | const |
Get the limit angles of the cone limit.
|
overridevirtual |
Restore data from stream.
Reimplemented from agx::ConstraintAngleBasedData.
| void agx::ConeLimitData::setConeLimitValue | ( | Vec2 | limit | ) |
Set the limit angles of the cone limit.
| limit | - Vec2 containing the two limit angles, in radians |
|
overridevirtual |
Store data to stream.
Reimplemented from agx::ConstraintAngleBasedData.