Pteros  2.0
Molecular modeling library for human beings!
GliderManipulator Class Reference

GliderManipulator is a CameraManipulator which provides Glider simulator-like updating of the camera position & orientation. More...

#include <GliderManipulator.h>

Inherits CameraManipulator.

Public Types

enum  YawControlMode { YAW_AUTOMATICALLY_WHEN_BANKED, NO_AUTOMATIC_YAW }
 

Public Member Functions

virtual const char * className () const
 
virtual void setByMatrix (const osg::Matrixd &matrix)
 set the position of the matrix manipulator using a 4x4 Matrix. More...
 
virtual void setByInverseMatrix (const osg::Matrixd &matrix)
 set the position of the matrix manipulator using a 4x4 Matrix. More...
 
virtual osg::Matrixd getMatrix () const
 get the position of the manipulator as 4x4 Matrix. More...
 
virtual osg::Matrixd getInverseMatrix () const
 get the position of the manipulator as a inverse matrix of the manipulator, typically used as a model view matrix. More...
 
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 void getUsage (osg::ApplicationUsage &usage) const
 Get the keyboard and mouse usage of this manipulator. More...
 
void setYawControlMode (YawControlMode ycm)
 Configure the Yaw control for the Glider model. More...
 

Detailed Description

GliderManipulator is a CameraManipulator which provides Glider simulator-like updating of the camera position & orientation.

By default, the left mouse button accelerates, the right mouse button decelerates, and the middle mouse button (or left and right simultaneously) stops dead.

Member Function Documentation

void GliderManipulator::setByMatrix ( const osg::Matrixd &  matrix)
virtual

set the position of the matrix manipulator using a 4x4 Matrix.

virtual void GliderManipulator::setByInverseMatrix ( const osg::Matrixd &  matrix)
inlinevirtual

set the position of the matrix manipulator using a 4x4 Matrix.

osg::Matrixd GliderManipulator::getMatrix ( ) const
virtual

get the position of the manipulator as 4x4 Matrix.

osg::Matrixd GliderManipulator::getInverseMatrix ( ) const
virtual

get the position of the manipulator as a inverse matrix of the manipulator, typically used as a model view matrix.

void GliderManipulator::getUsage ( osg::ApplicationUsage &  usage) const
virtual

Get the keyboard and mouse usage of this manipulator.

void GliderManipulator::setYawControlMode ( YawControlMode  ycm)
inline

Configure the Yaw control for the Glider model.


The documentation for this class was generated from the following files: