#include <JointTransform.h>
Public Member Functions | |
| JointTransform () | |
| JointTransform (const JointTransform &pat, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
| META_Node (osg, JointTransform) | |
| virtual JointTransform * | asJointTransform () |
| virtual const JointTransform * | asJointTransform () const |
| void | setPosition (const osg::Vec3 &pos) |
| const osg::Vec3 & | getPosition () const |
| void | setRotation (const osg::Quat &quat) |
| const osg::Quat & | getRotation () const |
| void | setRotation (const osg::Vec3 &axis, double angle) |
| void | getRotation (osg::Vec3 &axis, double &angle) |
| void | setCenter (const osg::Vec3 ¢er) |
| const osg::Vec3 & | getCenter () const |
| virtual bool | computeLocalToWorldMatrix (osg::Matrix &matrix, osg::NodeVisitor *nv) const |
| virtual bool | computeWorldToLocalMatrix (osg::Matrix &matrix, osg::NodeVisitor *nv) const |
Protected Member Functions | |
| virtual | ~JointTransform () |
Protected Attributes | |
| osg::Vec3 | _position |
| osg::Quat | _rotation |
| osg::Vec3 | _center |
| JointTransform::JointTransform | ( | ) |
| vhdOSG::JointTransform::JointTransform | ( | const JointTransform & | pat, | |
| const osg::CopyOp & | copyop = osg::CopyOp::SHALLOW_COPY | |||
| ) | [inline] |
| virtual vhdOSG::JointTransform::~JointTransform | ( | ) | [inline, protected, virtual] |
| vhdOSG::JointTransform::META_Node | ( | osg | , | |
| JointTransform | ||||
| ) |
| virtual JointTransform* vhdOSG::JointTransform::asJointTransform | ( | ) | [inline, virtual] |
| virtual const JointTransform* vhdOSG::JointTransform::asJointTransform | ( | ) | const [inline, virtual] |
| void vhdOSG::JointTransform::setPosition | ( | const osg::Vec3 & | pos | ) | [inline] |
Sets the translation part of the transform
| const osg::Vec3& vhdOSG::JointTransform::getPosition | ( | ) | const [inline] |
Gets the translation part of the transform
| void vhdOSG::JointTransform::setRotation | ( | const osg::Quat & | quat | ) | [inline] |
Sets the orientation part of the transform using quaternion
| const osg::Quat& vhdOSG::JointTransform::getRotation | ( | ) | const [inline] |
Gets the orientation part of the transform using quaternion
| void vhdOSG::JointTransform::setRotation | ( | const osg::Vec3 & | axis, | |
| double | angle | |||
| ) | [inline] |
Sets the orientation part of the transform using axis angle (in radians). For convenience, internally converted into quaternion.
| void vhdOSG::JointTransform::getRotation | ( | osg::Vec3 & | axis, | |
| double & | angle | |||
| ) | [inline] |
Gets the orientation part of the transform using axis angle (in radians) For convenience, internally converted from quaternion.
| void vhdOSG::JointTransform::setCenter | ( | const osg::Vec3 & | center | ) | [inline] |
Sets the rotation center offset
| const osg::Vec3& vhdOSG::JointTransform::getCenter | ( | ) | const [inline] |
Gets the rotation center offset
| virtual bool vhdOSG::JointTransform::computeLocalToWorldMatrix | ( | osg::Matrix & | matrix, | |
| osg::NodeVisitor * | nv | |||
| ) | const [virtual] |
| virtual bool vhdOSG::JointTransform::computeWorldToLocalMatrix | ( | osg::Matrix & | matrix, | |
| osg::NodeVisitor * | nv | |||
| ) | const [virtual] |
osg::Vec3 vhdOSG::JointTransform::_position [protected] |
osg::Quat vhdOSG::JointTransform::_rotation [protected] |
osg::Vec3 vhdOSG::JointTransform::_center [protected] |
1.5.1-p1