Inheritance:
Public Methods
-
CameraManipulator()
-
virtual ~CameraManipulator()
-
virtual void setCamera(osg::Camera*)
- attach a camera to the manipulator to be used for specifying view
-
virtual const osg::Camera* getCamera() const
- get the attached a camera
-
virtual void setNode(osg::Node*)
- Attach a node to the manipulator.
-
virtual const osg::Node* getNode() const
- Return node if attached
-
void setHomeToUseNode()
-
void setHome(const osg::Vec3& eye, const osg::Vec3& center, const osg::Vec3& up)
-
virtual void home(const GUIEventAdapter&, GUIActionAdapter&)
- Move the camera to the default position.
-
virtual void init(const GUIEventAdapter&, GUIActionAdapter&)
- Start/restart the manipulator
-
virtual bool handle(const GUIEventAdapter& ea, GUIActionAdapter& us)
- Handle events, return true if handled, false otherwise
Protected Fields
-
osg::ref_ptr<osg::Camera> _camera
-
bool _homeToUseNode
-
osg::Vec3 _eyeHome
-
osg::Vec3 _centerHome
-
osg::Vec3 _upHome
Documentation
CameraManipulator()
virtual ~CameraManipulator()
virtual void setCamera(osg::Camera*)
- attach a camera to the manipulator to be used for specifying view
virtual const osg::Camera* getCamera() const
- get the attached a camera
virtual void setNode(osg::Node*)
- 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.
virtual const osg::Node* getNode() const
- Return node if attached
void setHomeToUseNode()
void setHome(const osg::Vec3& eye, const osg::Vec3& center, const osg::Vec3& up)
virtual void home(const GUIEventAdapter&, GUIActionAdapter&)
- Move the camera to the default position.
May be ignored by manipulators if home functionality is not appropriate.
virtual void init(const GUIEventAdapter&, GUIActionAdapter&)
- Start/restart the manipulator
virtual bool handle(const GUIEventAdapter& ea, GUIActionAdapter& us)
- Handle events, return true if handled, false otherwise
osg::ref_ptr<osg::Camera> _camera
bool _homeToUseNode
osg::Vec3 _eyeHome
osg::Vec3 _centerHome
osg::Vec3 _upHome
- Direct child classes:
- TrackballManipulator
FlightManipulator
DriveManipulator
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.