#include <CameraManipulator.h>
Public Member Functions | |
CameraManipulator () | |
CameraManipulator (vhdOSGViewerServiceBody *viewerServ) | |
virtual const char * | className () const |
virtual void | setByMatrix (const osg::Matrixd &matrix) |
virtual void | setByInverseMatrix (const osg::Matrixd &matrix) |
virtual osg::Matrixd | getMatrix () const |
virtual osg::Matrixd | getInverseMatrix () const |
virtual void | setNode (osg::Node *) |
virtual const osg::Node * | getNode () const |
virtual osg::Node * | getNode () |
virtual bool | handle (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &us) |
virtual void | getUsage (osg::ApplicationUsage &usage) const |
Protected Member Functions | |
virtual | ~CameraManipulator () |
void | computePosition (const osg::Vec3 &eye, const osg::Vec3 &lv, const osg::Vec3 &up) |
Protected Attributes | |
osg::ref_ptr< osg::Node > | _node |
osg::Vec3 | _eye |
osg::Quat | _rotation |
float | _distance |
osg::Matrixd | _origin |
osg::Matrixd | _mvMat |
Private Attributes | |
vhdOSGViewerServiceBody * | _viewerServ |
CameraManipulator::CameraManipulator | ( | ) |
CameraManipulator::CameraManipulator | ( | vhdOSGViewerServiceBody * | viewerServ | ) |
CameraManipulator::~CameraManipulator | ( | ) | [protected, virtual] |
virtual const char* CameraManipulator::className | ( | ) | const [inline, virtual] |
void CameraManipulator::setByMatrix | ( | const osg::Matrixd & | matrix | ) | [virtual] |
set the position of the matrix manipulator using a 4x4 Matrix.
virtual void CameraManipulator::setByInverseMatrix | ( | const osg::Matrixd & | matrix | ) | [inline, virtual] |
set the position of the matrix manipulator using a 4x4 Matrix.
osg::Matrixd CameraManipulator::getMatrix | ( | ) | const [virtual] |
get the position of the manipulator as 4x4 Matrix.
osg::Matrixd CameraManipulator::getInverseMatrix | ( | ) | const [virtual] |
get the position of the manipulator as a inverse matrix of the manipulator, typically used as a model view matrix.
void CameraManipulator::setNode | ( | osg::Node * | ) | [virtual] |
const osg::Node * CameraManipulator::getNode | ( | ) | const [virtual] |
osg::Node * CameraManipulator::getNode | ( | ) | [virtual] |
virtual bool CameraManipulator::handle | ( | const osgGA::GUIEventAdapter & | ea, | |
osgGA::GUIActionAdapter & | us | |||
) | [virtual] |
void CameraManipulator::getUsage | ( | osg::ApplicationUsage & | usage | ) | const [virtual] |
Get the keyboard and mouse usage of this manipulator.
void CameraManipulator::computePosition | ( | const osg::Vec3 & | eye, | |
const osg::Vec3 & | lv, | |||
const osg::Vec3 & | up | |||
) | [protected] |
osg::ref_ptr<osg::Node> CameraManipulator::_node [protected] |
osg::Vec3 CameraManipulator::_eye [protected] |
osg::Quat CameraManipulator::_rotation [protected] |
float CameraManipulator::_distance [protected] |
osg::Matrixd CameraManipulator::_origin [protected] |
osg::Matrixd CameraManipulator::_mvMat [protected] |