2002-07-17 04:07:32 +08:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
< HTML >
< HEAD >
< TITLE > class OSGGA_EXPORT osgGA::CameraManipulator< / TITLE >
< META NAME = "GENERATOR" CONTENT = "DOC++ 3.4.8" >
< / HEAD >
< BODY BGCOLOR = "#ffffff" >
< H2 > class OSGGA_EXPORT < A HREF = "#DOC.DOCU" > osgGA::CameraManipulator< / A > < / H2 > < / H2 > < HR >
< H2 > Inheritance:< / H2 >
< APPLET CODE = "ClassGraph.class" WIDTH = 600 HEIGHT = 215 >
< param name = classes value = "Mosg::Referenced,M,CGUIEventHandler,MGUIEventHandler.html,CCameraManipulator,MCameraManipulator.html,CTrackballManipulator,MTrackballManipulator.html,CKeySwitchCameraManipulator,MKeySwitchCameraManipulator.html,CFlightManipulator,MFlightManipulator.html,CDriveManipulator,MDriveManipulator.html" >
< param name = before value = "M,M,M,M|_,MR_,MR_,Mr_" >
< param name = after value = "Md_SP,Md_,M,M,M,M,M" >
< param name = indent value = "0,1,2,2,2,2,2" >
< param name = arrowdir value = "down" >
< / APPLET >
< HR >
< DL >
< P > < DL >
< DT > < H3 > Public Methods< / H3 > < DD > < DT >
2002-08-29 22:29:49 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual void < B > < A HREF = "#DOC.2.1.1" > setCamera< / A > < / B > (osg::Camera*)
< DD > < I > Attach a camera to the manipulator to be used for specifying view< / I >
2002-07-17 04:07:32 +08:00
< DT >
2002-08-29 22:29:49 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual const osg::Camera* < B > < A HREF = "#DOC.2.1.2" > getCamera< / A > < / B > () const
< DD > < I > Get the attached camera< / I >
2002-07-17 04:07:32 +08:00
< DT >
2002-08-29 22:29:49 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual osg::Camera* < B > < A HREF = "#DOC.2.1.3" > getCamera< / A > < / B > ()
< DD > < I > Get the attached camera< / I >
2002-07-17 04:07:32 +08:00
< DT >
2002-08-29 22:29:49 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual void < B > < A HREF = "#DOC.2.1.4" > setNode< / A > < / B > (osg::Node*)
< DD > < I > Attach a node to the manipulator, automatically detaching any previously attached node.< / I >
2002-07-17 04:07:32 +08:00
< DT >
2002-08-29 22:29:49 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual const osg::Node* < B > < A HREF = "#DOC.2.1.5" > getNode< / A > < / B > () const
< DD > < I > Return const node if attached< / I >
2002-07-17 04:07:32 +08:00
< DT >
2002-08-29 22:29:49 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual osg::Node* < B > < A HREF = "#DOC.2.1.6" > getNode< / A > < / B > ()
2002-07-17 04:07:32 +08:00
< DD > < I > Return node if attached< / I >
< DT >
2002-08-29 22:29:49 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual void < B > < A HREF = "#DOC.2.1.7" > home< / A > < / B > (const <!1> < A HREF = "GUIEventAdapter.html" > GUIEventAdapter< / A > & , <!1> < A HREF = "GUIActionAdapter.html" > GUIActionAdapter< / A > & )
< DD > < I > Move the camera to the default position.< / I >
2002-07-17 04:07:32 +08:00
< DT >
2002-08-29 22:29:49 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual void < B > < A HREF = "#DOC.2.1.8" > init< / A > < / B > (const <!1> < A HREF = "GUIEventAdapter.html" > GUIEventAdapter< / A > & , <!1> < A HREF = "GUIActionAdapter.html" > GUIActionAdapter< / A > & )
< DD > < I > Start/restart the manipulator.< / I >
2002-07-17 04:07:32 +08:00
< DT >
2002-08-29 22:29:49 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual bool < B > < A HREF = "#DOC.2.1.9" > handle< / A > < / B > (const <!1> < A HREF = "GUIEventAdapter.html" > GUIEventAdapter< / A > & ea, <!1> < A HREF = "GUIActionAdapter.html" > GUIActionAdapter< / A > & us)
< DD > < I > Handle events, return true if handled, false otherwise.< / I >
2002-07-17 04:07:32 +08:00
< DT >
2002-08-29 22:29:49 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual void < B > < A HREF = "#DOC.2.1.10" > accept< / A > < / B > (<!1> < A HREF = "GUIEventHandlerVisitor.html" > GUIEventHandlerVisitor< / A > & v)
2002-07-17 04:07:32 +08:00
< DD > < I > Handle visitations < / I >
< / DL > < / P >
< P > < DL >
< DT > < H3 > Protected Fields< / H3 > < DD > < DT >
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > osg::ref_ptr< osg::Camera> < B > < A HREF = "#DOC.2.1.13" > _camera< / A > < / B >
< / DL > < / P >
2002-08-29 22:29:49 +08:00
< P > < DL >
< DT > < H3 > Protected Methods< / H3 > < DD > < DT >
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > < B > < A HREF = "#DOC.2.1.11" > CameraManipulator< / A > < / B > ()
< DT >
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual < B > < A HREF = "#DOC.2.1.12" > ~CameraManipulator< / A > < / B > ()
< / DL > < / P >
2002-07-17 04:07:32 +08:00
< / DL >
< HR > < H3 > Inherited from < A HREF = "GUIEventHandler.html" > GUIEventHandler< / A > :< / H3 >
< DL >
< P > < DL >
< DT > < H3 > Public Methods< / H3 > < DD > < DT >
< IMG ALT = "o" SRC = icon2.gif > virtual const <!1> < A HREF = "CompositeGUIEventHandler.html" > CompositeGUIEventHandler< / A > * < B > getComposite< / B > () const
< DT >
< IMG ALT = "o" SRC = icon2.gif > virtual <!1> < A HREF = "CompositeGUIEventHandler.html" > CompositeGUIEventHandler< / A > * < B > getComposite< / B > ()
< / DL > < / P >
< / DL >
< A NAME = "DOC.DOCU" > < / A >
< HR >
< H2 > Documentation< / H2 >
2002-08-29 22:29:49 +08:00
< BLOCKQUOTE >
< P > CameraManipulator is an abstract base class defining the interface, and a certain
amount of default functionality, for classes which wish to control OSG cameras
in response to GUI events.
< / BLOCKQUOTE >
2002-07-17 04:07:32 +08:00
< DL >
< A NAME = "setCamera" > < / A >
2002-08-29 22:29:49 +08:00
< A NAME = "DOC.2.1.1" > < / A >
2002-07-17 04:07:32 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual void setCamera(osg::Camera*)< / B > < / TT >
2002-08-29 22:29:49 +08:00
< DD > Attach a camera to the manipulator to be used for specifying view
2002-07-17 04:07:32 +08:00
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getCamera" > < / A >
2002-08-29 22:29:49 +08:00
< A NAME = "DOC.2.1.2" > < / A >
2002-07-17 04:07:32 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual const osg::Camera* getCamera() const < / B > < / TT >
2002-08-29 22:29:49 +08:00
< DD > Get the attached camera
2002-07-17 04:07:32 +08:00
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getCamera" > < / A >
2002-08-29 22:29:49 +08:00
< A NAME = "DOC.2.1.3" > < / A >
2002-07-17 04:07:32 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual osg::Camera* getCamera()< / B > < / TT >
2002-08-29 22:29:49 +08:00
< DD > Get the attached camera
2002-07-17 04:07:32 +08:00
< DL > < DT > < DD > < / DL > < P >
< A NAME = "setNode" > < / A >
2002-08-29 22:29:49 +08:00
< A NAME = "DOC.2.1.4" > < / A >
2002-07-17 04:07:32 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual void setNode(osg::Node*)< / B > < / TT >
2002-08-29 22:29:49 +08:00
< DD >
Attach a node to the manipulator, automatically detaching any previously attached node.
setNode(NULL) detaches previous nodes.
May be ignored by manipulators which do not require a reference model.
2002-07-17 04:07:32 +08:00
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getNode" > < / A >
2002-08-29 22:29:49 +08:00
< A NAME = "DOC.2.1.5" > < / A >
2002-07-17 04:07:32 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual const osg::Node* getNode() const < / B > < / TT >
2002-08-29 22:29:49 +08:00
< DD > Return const node if attached
2002-07-17 04:07:32 +08:00
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getNode" > < / A >
2002-08-29 22:29:49 +08:00
< A NAME = "DOC.2.1.6" > < / A >
2002-07-17 04:07:32 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual osg::Node* getNode()< / B > < / TT >
< DD > Return node if attached
< DL > < DT > < DD > < / DL > < P >
< A NAME = "home" > < / A >
2002-08-29 22:29:49 +08:00
< A NAME = "DOC.2.1.7" > < / A >
2002-07-17 04:07:32 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual void home(const <!1> < A HREF = "GUIEventAdapter.html" > GUIEventAdapter< / A > & , <!1> < A HREF = "GUIActionAdapter.html" > GUIActionAdapter< / A > & )< / B > < / TT >
2002-08-29 22:29:49 +08:00
< DD >
Move the camera to the default position.
2002-07-17 04:07:32 +08:00
May be ignored by manipulators if home functionality is not appropriate.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "init" > < / A >
2002-08-29 22:29:49 +08:00
< A NAME = "DOC.2.1.8" > < / A >
2002-07-17 04:07:32 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual void init(const <!1> < A HREF = "GUIEventAdapter.html" > GUIEventAdapter< / A > & , <!1> < A HREF = "GUIActionAdapter.html" > GUIActionAdapter< / A > & )< / B > < / TT >
2002-08-29 22:29:49 +08:00
< DD >
Start/restart the manipulator.
FIXME: what does this actually mean? Provide examples.
2002-07-17 04:07:32 +08:00
< DL > < DT > < DD > < / DL > < P >
< A NAME = "handle" > < / A >
2002-08-29 22:29:49 +08:00
< A NAME = "DOC.2.1.9" > < / A >
2002-07-17 04:07:32 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual bool handle(const <!1> < A HREF = "GUIEventAdapter.html" > GUIEventAdapter< / A > & ea, <!1> < A HREF = "GUIActionAdapter.html" > GUIActionAdapter< / A > & us)< / B > < / TT >
2002-08-29 22:29:49 +08:00
< DD > Handle events, return true if handled, false otherwise.
2002-07-17 04:07:32 +08:00
< DL > < DT > < DD > < / DL > < P >
< A NAME = "accept" > < / A >
2002-08-29 22:29:49 +08:00
< A NAME = "DOC.2.1.10" > < / A >
2002-07-17 04:07:32 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual void accept(<!1> < A HREF = "GUIEventHandlerVisitor.html" > GUIEventHandlerVisitor< / A > & v)< / B > < / TT >
< DD > Handle visitations
< DL > < DT > < DD > < / DL > < P >
2002-08-29 22:29:49 +08:00
< A NAME = "CameraManipulator" > < / A >
< A NAME = "DOC.2.1.11" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > CameraManipulator()< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "~CameraManipulator" > < / A >
< A NAME = "DOC.2.1.12" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual ~CameraManipulator()< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
2002-07-17 04:07:32 +08:00
< A NAME = "_camera" > < / A >
< A NAME = "DOC.2.1.13" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > osg::ref_ptr< osg::Camera> _camera< / B > < / TT >
< DL > < DT > < DD > < / DL > < P > < / DL >
< HR >
< DL > < DT > < B > Direct child classes:
< / B > < DD > < A HREF = "TrackballManipulator.html" > TrackballManipulator< / A > < BR >
< A HREF = "KeySwitchCameraManipulator.html" > KeySwitchCameraManipulator< / A > < BR >
< A HREF = "FlightManipulator.html" > FlightManipulator< / A > < BR >
< A HREF = "DriveManipulator.html" > DriveManipulator< / A > < BR >
< / DL >
< DL > < DT > < DD > < / DL > < P > < P > < I > < A HREF = "index.html" > Alphabetic index< / A > < / I > < I > < A HREF = "HIER.html" > HTML hierarchy of classes< / A > or < A HREF = "HIERjava.html" > Java< / A > < / I > < / P > < HR >
< BR >
This page was generated with the help of < A HREF = "http://docpp.sourceforge.net" > DOC++< / A > .
< / BODY >
< / HTML >