#include <FixedManipulator.h>
Public Member Functions | |
| FixedManipulator () | |
| FixedManipulator (const osg::Vec3 &EyePos, const osg::Vec3 &Dir, const osg::Vec3 &Up) | |
| FixedManipulator (const osg::Matrix &matrix) | |
| void | setByFrame (const osg::Vec3 &EyePos, const osg::Vec3 &Dir, const osg::Vec3 &Up) |
| Vectors Dir & Up do not need to be normalized. | |
| virtual void | setByMatrix (const osg::Matrix &matrix) |
| virtual void | setByInverseMatrix (const osg::Matrix &matrix) |
| virtual osg::Matrix | getMatrix () const |
| virtual osg::Matrix | getInverseMatrix () const |
Protected Member Functions | |
| void | switchLeftRightFrame () |
| Going from right to left-handed, or conversely (Invert Y and Z). | |
Protected Attributes | |
| osg::Vec3 | EyePos |
| osg::Vec3 | Dir |
| osg::Vec3 | Up |
| Defines a frame and a reference point (The last vector, named 'Right', is = Up^Dir). | |
Can be used as a base class for other manipulators using the "EyePos, Dir, Up" frame. Dev Note : Internally, the FixedManipulator uses a left-hand coordinate system ; use SwitchLeftRightFrame() to switch internal vectors when needed.
Definition at line 39 of file FixedManipulator.h.
| FixedManipulator::FixedManipulator | ( | ) | [inline] |
| FixedManipulator::FixedManipulator | ( | const osg::Vec3 & | EyePos, | |
| const osg::Vec3 & | Dir, | |||
| const osg::Vec3 & | Up | |||
| ) | [inline] |
| FixedManipulator::FixedManipulator | ( | const osg::Matrix & | matrix | ) | [inline] |
| virtual osg::Matrix FixedManipulator::getInverseMatrix | ( | ) | const [inline, virtual] |
Definition at line 81 of file FixedManipulator.h.
References Dir, EyePos, and Up.
Referenced by getMatrix().
| virtual osg::Matrix FixedManipulator::getMatrix | ( | ) | const [inline, virtual] |
| void FixedManipulator::setByFrame | ( | const osg::Vec3 & | EyePos, | |
| const osg::Vec3 & | Dir, | |||
| const osg::Vec3 & | Up | |||
| ) | [inline] |
Vectors Dir & Up do not need to be normalized.
Definition at line 54 of file FixedManipulator.h.
References switchLeftRightFrame().
Referenced by FixedManipulator().
| virtual void FixedManipulator::setByInverseMatrix | ( | const osg::Matrix & | matrix | ) | [inline, virtual] |
| virtual void FixedManipulator::setByMatrix | ( | const osg::Matrix & | matrix | ) | [inline, virtual] |
Definition at line 64 of file FixedManipulator.h.
References Dir, EyePos, switchLeftRightFrame(), and Up.
Referenced by FixedManipulator(), and setByInverseMatrix().
| void FixedManipulator::switchLeftRightFrame | ( | ) | [inline, protected] |
Going from right to left-handed, or conversely (Invert Y and Z).
Definition at line 103 of file FixedManipulator.h.
References Dir, EyePos, and Up.
Referenced by setByFrame(), and setByMatrix().
osg::Vec3 FixedManipulator::Dir [protected] |
Definition at line 100 of file FixedManipulator.h.
Referenced by FixedManipulator(), getInverseMatrix(), setByMatrix(), and switchLeftRightFrame().
osg::Vec3 FixedManipulator::EyePos [protected] |
Definition at line 100 of file FixedManipulator.h.
Referenced by FixedManipulator(), getInverseMatrix(), setByMatrix(), and switchLeftRightFrame().
osg::Vec3 FixedManipulator::Up [protected] |
Defines a frame and a reference point (The last vector, named 'Right', is = Up^Dir).
Definition at line 100 of file FixedManipulator.h.
Referenced by FixedManipulator(), getInverseMatrix(), setByMatrix(), and switchLeftRightFrame().
1.5.9