KeySwitchCameraManipulator is a decorator which allows the type of camera manipulator being used to be switched by pressing a key.
Inheritance:
Public Methods
-
void addCameraManipulator(int key, std::string name, CameraManipulator* cm)
- Add a camera manipulator with an associated name, and a key to trigger the switch,
-
void addNumberedCameraManipulator(CameraManipulator* cm)
- Add a camera manipulator with an autogenerated keybinding which is '1' + previous number of camera's registerd
-
virtual void setCamera(osg::Camera* c)
-
virtual const osg::Camera* getCamera() const
-
virtual osg::Camera* getCamera()
-
virtual void setNode(osg::Node* n)
-
virtual const osg::Node* getNode() const
-
virtual osg::Node* getNode()
-
virtual void home(const GUIEventAdapter& ee, GUIActionAdapter& aa)
-
virtual void init(const GUIEventAdapter& ee, GUIActionAdapter& aa)
-
virtual bool handle(const GUIEventAdapter& ea, GUIActionAdapter& us)
Public Methods
-
virtual void accept(GUIEventHandlerVisitor& v)
Protected Fields
-
osg::ref_ptr<osg::Camera> _camera
Public Methods
-
virtual const CompositeGUIEventHandler* getComposite() const
-
virtual 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.
- void addCameraManipulator(int key, std::string name, CameraManipulator* cm)
-
Add a camera manipulator with an associated name, and a key to
trigger the switch,
- void addNumberedCameraManipulator(CameraManipulator* cm)
-
Add a camera manipulator with an autogenerated keybinding which is '1' + previous number of camera's registerd
- virtual void setCamera(osg::Camera* c)
- virtual const osg::Camera* getCamera() const
- virtual osg::Camera* getCamera()
- virtual void setNode(osg::Node* n)
- virtual const osg::Node* getNode() const
- virtual osg::Node* getNode()
- virtual void home(const GUIEventAdapter& ee, GUIActionAdapter& aa)
- virtual void init(const GUIEventAdapter& ee, GUIActionAdapter& aa)
- virtual bool handle(const GUIEventAdapter& ea, GUIActionAdapter& us)
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.