|
AGX Dynamics 2.42.3.1
|
Node coordinate frame in another frame. More...
#include <Node.h>
Public Types | |
| enum | Elements { ORG_TRANSLATE , TRANSLATE , REL_BODY_TRANSLATE , ENUM_SIZE } |
Public Member Functions | |
| NodeFrame () | |
| Default constructor. | |
| ~NodeFrame () | |
| Destructor. | |
| agx::Vec3 | calculateCmOffset (const agx::RigidBody *rb) const |
| Manly for writing Jacobian data to the solver. | |
| agx::Vec3 & | getElement (Elements element) |
| Data access. | |
| const agx::Vec3 & | getElement (Elements element) const |
| Data access. | |
| agx::RigidBody * | getRigidBody () const |
| const agx::Vec3 & | getTranslate () const |
| const agx::Vec3 & | getWorldPosition () const |
| void | setRigidBody (agx::RigidBody *body) |
| Set rigid body. | |
| void | setTranslate (agx::Real x, agx::Real y, agx::Real z) |
| Set original translate (world frame if this node frame doesn't have a rigid body). | |
| void | setTranslate (const agx::Vec3 &translate) |
| Set original translate (world frame if this node frame doesn't have a rigid body). | |
| void | transform () |
| Recalculates TRANSLATE and REL_BODY_TRANSLATE. | |
Protected Attributes | |
| agx::Vec3 | m_data [ENUM_SIZE] |
| agx::RigidBodyRef | m_rb |
Node coordinate frame in another frame.
Holds data for original local translate, current world (transformed) translate and relative (transformed) translate.
Definition at line 88 of file agxWire/Node.h.
| Enumerator | |
|---|---|
| ORG_TRANSLATE | Original translate. |
| TRANSLATE | Current transformed translate. |
| REL_BODY_TRANSLATE | Current transformed relative. |
| ENUM_SIZE | |
Definition at line 91 of file agxWire/Node.h.
| agxWire::NodeFrame::NodeFrame | ( | ) |
Default constructor.
| agxWire::NodeFrame::~NodeFrame | ( | ) |
Destructor.
| agx::Vec3 agxWire::NodeFrame::calculateCmOffset | ( | const agx::RigidBody * | rb | ) | const |
Manly for writing Jacobian data to the solver.
Calculates the vector from center of mass of the rigid body (world origin if rigid body is null) to this node.
| rb | - rigid body from which the vector starts, world if null |
Data access.
| element | - index (see Elements) |
Data access.
| element | - index (see Elements) |
| agx::RigidBody * agxWire::NodeFrame::getRigidBody | ( | ) | const |
Definition at line 2061 of file agxWire/Node.h.
| const agx::Vec3 & agxWire::NodeFrame::getTranslate | ( | ) | const |
| const agx::Vec3 & agxWire::NodeFrame::getWorldPosition | ( | ) | const |
Definition at line 2056 of file agxWire/Node.h.
Referenced by agxWire::findPointOnWire().
| void agxWire::NodeFrame::setRigidBody | ( | agx::RigidBody * | body | ) |
Set rigid body.
Set original translate (world frame if this node frame doesn't have a rigid body).
| x | - x position in parent frame (world or body) |
| y | - y position in parent frame (world or body) |
| z | - z position in parent frame (world or body) |
| void agxWire::NodeFrame::setTranslate | ( | const agx::Vec3 & | translate | ) |
Set original translate (world frame if this node frame doesn't have a rigid body).
| translate | - position in parent frame (world or body) |
| void agxWire::NodeFrame::transform | ( | ) |
Recalculates TRANSLATE and REL_BODY_TRANSLATE.
Definition at line 175 of file agxWire/Node.h.
|
protected |
Definition at line 174 of file agxWire/Node.h.