class OSGUTIL_EXPORT osgUtil::CameraManipulator


Inheritance:


Public Methods

[more] CameraManipulator()
[more]virtual ~CameraManipulator()
[more]virtual void setCamera(osg::Camera*)
attach a camera to the manipulator to be used for specifying view
[more]virtual const osg::Camera* getCamera() const
get the attached a camera
[more]virtual void setNode(osg::Node*)
Attach a node to the manipulator.
[more]virtual const osg::Node* getNode() const
Return node if attached
[more]void setHomeToUseNode()
[more]void setHome(const osg::Vec3& eye, const osg::Vec3& center, const osg::Vec3& up)
[more]virtual void home(const GUIEventAdapter&, GUIActionAdapter&)
Move the camera to the default position.
[more]virtual void init(const GUIEventAdapter&, GUIActionAdapter&)
Start/restart the manipulator
[more]virtual bool handle(const GUIEventAdapter& ea, GUIActionAdapter& us)
Handle events, return true if handled, false otherwise

Protected Fields

[more]osg::ref_ptr<osg::Camera> _camera
[more]bool _homeToUseNode
[more]osg::Vec3 _eyeHome
[more]osg::Vec3 _centerHome
[more]osg::Vec3 _upHome


Inherited from GUIEventHandler:


Documentation

o CameraManipulator()

ovirtual ~CameraManipulator()

ovirtual void setCamera(osg::Camera*)
attach a camera to the manipulator to be used for specifying view

ovirtual const osg::Camera* getCamera() const
get the attached a camera

ovirtual 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.

ovirtual const osg::Node* getNode() const
Return node if attached

ovoid setHomeToUseNode()

ovoid setHome(const osg::Vec3& eye, const osg::Vec3& center, const osg::Vec3& up)

ovirtual void home(const GUIEventAdapter&, GUIActionAdapter&)
Move the camera to the default position. May be ignored by manipulators if home functionality is not appropriate.

ovirtual void init(const GUIEventAdapter&, GUIActionAdapter&)
Start/restart the manipulator

ovirtual bool handle(const GUIEventAdapter& ea, GUIActionAdapter& us)
Handle events, return true if handled, false otherwise

oosg::ref_ptr<osg::Camera> _camera

obool _homeToUseNode

oosg::Vec3 _eyeHome

oosg::Vec3 _centerHome

oosg::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++.