osgGA::KeyboardManipulator Class Reference

#include <gepetto/viewer/OSGManipulator/keyboard-manipulator.h>

Inheritance diagram for osgGA::KeyboardManipulator:
Collaboration diagram for osgGA::KeyboardManipulator:

Public Member Functions

 KeyboardManipulator (int flags=DEFAULT_SETTINGS)
 
 KeyboardManipulator (const KeyboardManipulator &fpm, const osg::CopyOp &copyOp=osg::CopyOp::SHALLOW_COPY)
 
 KeyboardManipulator (osgViewer::GraphicsWindow *window, int flags=DEFAULT_SETTINGS)
 Constructor with reference to the graphic window, needed for hidding mouse cursor. More...
 
 META_Object (osgGA, KeyboardManipulator)
 

Protected Member Functions

virtual bool handleKeyDown (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &us)
 
virtual bool handleKeyUp (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &us)
 
virtual bool handleFrame (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &us)
 
virtual bool handleMousePush (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &us)
 
virtual bool handleMouseRelease (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &us)
 
virtual bool performMovementLeftMouseButton (const double eventTimeDelta, const double dx, const double dy)
 
virtual void rotateRoll (const double roll)
 
virtual void getUsage (osg::ApplicationUsage &usage) const
 
bool initKeyboard ()
 

Detailed Description

FirstPersonManipulator is base class for camera control based on position and orientation of camera, like walk, drive, and flight manipulators.

Constructor & Destructor Documentation

◆ KeyboardManipulator() [1/3]

osgGA::KeyboardManipulator::KeyboardManipulator ( int  flags = DEFAULT_SETTINGS)

◆ KeyboardManipulator() [2/3]

osgGA::KeyboardManipulator::KeyboardManipulator ( const KeyboardManipulator fpm,
const osg::CopyOp &  copyOp = osg::CopyOp::SHALLOW_COPY 
)

◆ KeyboardManipulator() [3/3]

osgGA::KeyboardManipulator::KeyboardManipulator ( osgViewer::GraphicsWindow *  window,
int  flags = DEFAULT_SETTINGS 
)

Constructor with reference to the graphic window, needed for hidding mouse cursor.

Member Function Documentation

◆ getUsage()

virtual void osgGA::KeyboardManipulator::getUsage ( osg::ApplicationUsage &  usage) const
protectedvirtual

◆ handleFrame()

virtual bool osgGA::KeyboardManipulator::handleFrame ( const osgGA::GUIEventAdapter &  ea,
osgGA::GUIActionAdapter &  us 
)
protectedvirtual

◆ handleKeyDown()

virtual bool osgGA::KeyboardManipulator::handleKeyDown ( const osgGA::GUIEventAdapter &  ea,
osgGA::GUIActionAdapter &  us 
)
protectedvirtual

◆ handleKeyUp()

virtual bool osgGA::KeyboardManipulator::handleKeyUp ( const osgGA::GUIEventAdapter &  ea,
osgGA::GUIActionAdapter &  us 
)
protectedvirtual

◆ handleMousePush()

virtual bool osgGA::KeyboardManipulator::handleMousePush ( const osgGA::GUIEventAdapter &  ea,
osgGA::GUIActionAdapter &  us 
)
protectedvirtual

◆ handleMouseRelease()

virtual bool osgGA::KeyboardManipulator::handleMouseRelease ( const osgGA::GUIEventAdapter &  ea,
osgGA::GUIActionAdapter &  us 
)
protectedvirtual

◆ initKeyboard()

bool osgGA::KeyboardManipulator::initKeyboard ( )
protected

◆ META_Object()

osgGA::KeyboardManipulator::META_Object ( osgGA  ,
KeyboardManipulator   
)

◆ performMovementLeftMouseButton()

virtual bool osgGA::KeyboardManipulator::performMovementLeftMouseButton ( const double  eventTimeDelta,
const double  dx,
const double  dy 
)
protectedvirtual

◆ rotateRoll()

virtual void osgGA::KeyboardManipulator::rotateRoll ( const double  roll)
protectedvirtual

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