Public Member Functions | |
LookAtCameraManipulator (Real alpha=90, Real theta=10, Real d=5, Real targetx=0, Real targety=0, Real targetz=0) | |
virtual | ~LookAtCameraManipulator () |
void | setAlpha (Real alpha) |
void | setTheta (Real theta) |
void | setD (Real d) |
Real | getAlpha () const |
Real | getTheta () const |
Real | getD () const |
void | setTarget (Real targetx, Real targety, Real targetz) |
Point3 | getTarget () const |
void | trackingEnable () |
void | trackingDisable () |
bool | trackingEnabled () const |
virtual void | setNode (osg::Node *) |
virtual const osg::Node * | getNode () const |
virtual osg::Node * | getNode () |
virtual void | home (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &us) |
virtual void | init (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &us) |
virtual bool | handle (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &us) |
virtual osg::Matrixd | getMatrix () const |
virtual osg::Matrixd | getInverseMatrix () const |
virtual void | setByMatrix (const osg::Matrixd &matrix) |
virtual void | setByInverseMatrix (const osg::Matrixd &matrix) |
Protected Member Functions | |
osg::Vec3 | calcPos () const |
Protected Attributes | |
osg::Vec3 | target |
bool | tracking |
Real | alpha |
Real | theta |
Real | d |
Real | halpha |
Real | htheta |
Real | hd |
Real | x |
Real | y |
Real | ialpha |
Real | itheta |
Real | id |
osg::Vec3 | itarget |
Definition at line 37 of file LookAtCameraManipulator.
|
|
|
|
|
|
|
Definition at line 46 of file LookAtCameraManipulator. |
|
Definition at line 48 of file LookAtCameraManipulator. |
|
|
|
|
|
Return node if attached. |
|
Return node if attached. |
|
Definition at line 58 of file LookAtCameraManipulator. References base::Point3, and target. |
|
Definition at line 47 of file LookAtCameraManipulator. |
|
handle events, return true if handled, false otherwise. |
|
Move the camera to the default position. May be ignored by manipulators if home functionality is not appropriate. |
|
Start/restart the manipulator. |
|
Definition at line 43 of file LookAtCameraManipulator. |
|
|
|
|
|
Definition at line 45 of file LookAtCameraManipulator. |
|
Attach a node to the manipulator. Automatically detaches previously attached node. setNode(NULL) detaches previously nodes. Is ignored by manipulators which do not require a reference model. |
|
Definition at line 51 of file LookAtCameraManipulator. References target. |
|
Definition at line 44 of file LookAtCameraManipulator. |
|
Definition at line 65 of file LookAtCameraManipulator. References tracking. |
|
Definition at line 64 of file LookAtCameraManipulator. References tracking. |
|
Definition at line 67 of file LookAtCameraManipulator. References tracking. |
|
Definition at line 102 of file LookAtCameraManipulator. |
|
Definition at line 104 of file LookAtCameraManipulator. |
|
Definition at line 106 of file LookAtCameraManipulator. |
|
Definition at line 108 of file LookAtCameraManipulator. |
|
Definition at line 107 of file LookAtCameraManipulator. |
|
Definition at line 112 of file LookAtCameraManipulator. |
|
Definition at line 112 of file LookAtCameraManipulator. |
|
Definition at line 113 of file LookAtCameraManipulator. |
|
Definition at line 112 of file LookAtCameraManipulator. |
|
Definition at line 99 of file LookAtCameraManipulator. Referenced by getTarget(), and setTarget(). |
|
Definition at line 103 of file LookAtCameraManipulator. |
|
Definition at line 100 of file LookAtCameraManipulator. Referenced by trackingDisable(), trackingEnable(), and trackingEnabled(). |
|
Definition at line 111 of file LookAtCameraManipulator. |
|
Definition at line 111 of file LookAtCameraManipulator. |