#include <SIM_Position.h>

Public Member Functions | |
| void | getTransform (UT_DMatrix4 &xform) const |
| void | getInverseTransform (UT_DMatrix4 &xform) const |
| void | getOrientation (UT_Quaternion &q) const |
| void | getPosition (UT_Vector3 &t) const |
| void | getPivot (UT_Vector3 &p) const |
| UT_Vector3 | selfToWorld (const UT_Vector3 &p) const |
| UT_Vector3 | worldToSelf (const UT_Vector3 &p) const |
Protected Member Functions | |
| SIM_Position (const SIM_DataFactory *factory) | |
| virtual | ~SIM_Position () |
| virtual void | getTransformSubclass (UT_DMatrix4 &xform) const |
| This implementation returns the identity matrix. | |
| virtual void | getInverseTransformSubclass (UT_DMatrix4 &xform) const |
| This implementation calls getTransform and inverts it. | |
| virtual void | getOrientationSubclass (UT_Quaternion &q) const |
| This implementation calls getTransform and extracts the rotations. | |
| virtual void | getPositionSubclass (UT_Vector3 &t) const |
| This implementation calls getTransform and extracts the translates. | |
| virtual void | getPivotSubclass (UT_Vector3 &p) const |
| This implementation returns (0, 0, 0) as the pivot. | |
| virtual UT_Vector3 | selfToWorldSubclass (const UT_Vector3 &p) const |
| This implementation calls getTransform and does the multiply. | |
| virtual UT_Vector3 | worldToSelfSubclass (const UT_Vector3 &p) const |
| This implementation calls getInverseTransform and does the multiply. | |
Definition at line 28 of file SIM_Position.h.
| SIM_Position::SIM_Position | ( | const SIM_DataFactory * | factory | ) | [explicit, protected] |
| virtual SIM_Position::~SIM_Position | ( | ) | [protected, virtual] |
| void SIM_Position::getInverseTransform | ( | UT_DMatrix4 & | xform | ) | const |
Gets the inverse transform matrix from our position and rotation. This function just calls getInverseTransformSubclass().
| virtual void SIM_Position::getInverseTransformSubclass | ( | UT_DMatrix4 & | xform | ) | const [protected, virtual] |
| void SIM_Position::getOrientation | ( | UT_Quaternion & | q | ) | const |
Gets a matrix representing the rotation component of the position. This function just calls getRotationMatrixSubclass().
| virtual void SIM_Position::getOrientationSubclass | ( | UT_Quaternion & | q | ) | const [protected, virtual] |
This implementation calls getTransform and extracts the rotations.
Reimplemented in SIM_PositionSimple.
| void SIM_Position::getPivot | ( | UT_Vector3 & | p | ) | const |
Gets a vector representing the pivot component of the position. This function just calls getPivotSubclass().
| virtual void SIM_Position::getPivotSubclass | ( | UT_Vector3 & | p | ) | const [protected, virtual] |
| void SIM_Position::getPosition | ( | UT_Vector3 & | t | ) | const |
Gets a vector representing the translation component of the position. This function just calls getPositionSubclass().
| virtual void SIM_Position::getPositionSubclass | ( | UT_Vector3 & | t | ) | const [protected, virtual] |
This implementation calls getTransform and extracts the translates.
Reimplemented in SIM_PositionSimple.
| void SIM_Position::getTransform | ( | UT_DMatrix4 & | xform | ) | const |
Gets a transform matrix from our position and rotation data. This function just calls getTransformSubclass().
| virtual void SIM_Position::getTransformSubclass | ( | UT_DMatrix4 & | xform | ) | const [protected, virtual] |
This implementation returns the identity matrix.
Reimplemented in SIM_PositionComposite, and SIM_PositionSimple.
| UT_Vector3 SIM_Position::selfToWorld | ( | const UT_Vector3 & | p | ) | const |
Transforms a point into worldspace from object space. This function just calls selfToWorldSubclass().
| virtual UT_Vector3 SIM_Position::selfToWorldSubclass | ( | const UT_Vector3 & | p | ) | const [protected, virtual] |
| UT_Vector3 SIM_Position::worldToSelf | ( | const UT_Vector3 & | p | ) | const |
Transforms a point into object space from world space. This function just calls worldToSelfSubclass().
| virtual UT_Vector3 SIM_Position::worldToSelfSubclass | ( | const UT_Vector3 & | p | ) | const [protected, virtual] |
This implementation calls getInverseTransform and does the multiply.
Reimplemented in SIM_PositionSimple.
1.5.9