class OSGGA_EXPORT osgGA::KeySwitchCameraManipulator

KeySwitchCameraManipulator is a decorator which allows the type of camera manipulator being used to be switched by pressing a key.

Inheritance:


Public Methods

[more]virtual const char* className()
[more]void addCameraManipulator(int key, std::string name, CameraManipulator* cm)
Add a camera manipulator with an associated name, and a key to trigger the switch,
[more]void addNumberedCameraManipulator(CameraManipulator* cm)
Add a camera manipulator with an autogenerated keybinding which is '1' + previous number of camera's registerd
[more]unsigned int getNumCameraManipualtors() const
[more]void selectCameraManipulator(unsigned int num)
[more]CameraManipulator* getCurrentCameraManipulator()
[more]const CameraManipulator* getCurrentCameraManipulator() const
[more]CameraManipulator* getCameraManipulator(unsigned int num)
[more]const CameraManipulator* getCameraManipulator(unsigned int num) const
[more]virtual void setCamera(osg::Camera* c)
[more]virtual const osg::Camera* getCamera() const
[more]virtual osg::Camera* getCamera()
[more]virtual void setNode(osg::Node* n)
[more]virtual const osg::Node* getNode() const
[more]virtual osg::Node* getNode()
[more]virtual void home(const GUIEventAdapter& ee, GUIActionAdapter& aa)
[more]virtual void init(const GUIEventAdapter& ee, GUIActionAdapter& aa)
[more]virtual bool handle(const GUIEventAdapter& ea, GUIActionAdapter& us)
[more]virtual void getUsage(osg::ApplicationUsage& usage) const
Get the keyboard and mouse usage of this manipulator


Inherited from CameraManipulator:

Public Methods

ovirtual void accept(GUIEventHandlerVisitor& v)

Protected Fields

oosg::ref_ptr<osg::Camera> _camera


Inherited from GUIEventHandler:

Public Methods

oMETA_Object (osgGA, GUIEventHandler) const () const
ovirtual CompositeGUIEventHandler* getComposite()


Documentation

KeySwitchCameraManipulator is a decorator which allows the type of camera manipulator being used to be switched by pressing a key. E.g. '1' for a TrackballManipultor, '2' for a DriveManipulator, '3' for a FlightManipulator. The manipulators available, and the associated switch keys, can be configured.
ovirtual const char* className()

ovoid addCameraManipulator(int key, std::string name, CameraManipulator* cm)
Add a camera manipulator with an associated name, and a key to trigger the switch,

ovoid addNumberedCameraManipulator(CameraManipulator* cm)
Add a camera manipulator with an autogenerated keybinding which is '1' + previous number of camera's registerd

ounsigned int getNumCameraManipualtors() const

ovoid selectCameraManipulator(unsigned int num)

oCameraManipulator* getCurrentCameraManipulator()

oconst CameraManipulator* getCurrentCameraManipulator() const

oCameraManipulator* getCameraManipulator(unsigned int num)

oconst CameraManipulator* getCameraManipulator(unsigned int num) const

ovirtual void setCamera(osg::Camera* c)

ovirtual const osg::Camera* getCamera() const

ovirtual osg::Camera* getCamera()

ovirtual void setNode(osg::Node* n)

ovirtual const osg::Node* getNode() const

ovirtual osg::Node* getNode()

ovirtual void home(const GUIEventAdapter& ee, GUIActionAdapter& aa)

ovirtual void init(const GUIEventAdapter& ee, GUIActionAdapter& aa)

ovirtual bool handle(const GUIEventAdapter& ea, GUIActionAdapter& us)

ovirtual void getUsage(osg::ApplicationUsage& usage) const
Get the keyboard and mouse usage of this manipulator


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.