OpenSceneGraph/doc/osgUtil/CameraManipulator.html
2001-01-10 16:32:10 +00:00

127 lines
5.6 KiB
HTML

<HTML>
<HEAD>
<TITLE>class OSGUTIL_EXPORT osgUtil::CameraManipulator</TITLE>
<META NAME="GENERATOR" CONTENT="DOC++ 3.4.3">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H2>class OSGUTIL_EXPORT <A HREF="#DOC.DOCU">osgUtil::CameraManipulator</A>: public osg::Referenced</H2>
<HR>
<H2>Inheritance:</H2>
<APPLET CODE="ClassGraph.class" WIDTH=600 HEIGHT=155>
<param name=classes value="Mosg::Referenced,M,CCameraManipulator,MCameraManipulator.html,CTrackballManipulator,MTrackballManipulator.html,CFlightManipulator,MFlightManipulator.html,CDriveManipulator,MDriveManipulator.html">
<param name=before value="M,M,M|_,MR_,Mr_">
<param name=after value="Md_,M,M,M,M">
<param name=indent value="0,1,1,1,1">
<param name=arrowdir value="down">
</APPLET>
<HR>
<DL>
<P><DL>
<DT><H3>Public Methods</H3><DD><DT>
<A HREF="#DOC.2.1.8"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A> <B>CameraManipulator</B>()
<DD><I></I>
<DT>
<A HREF="#DOC.2.1.9"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual <B>~CameraManipulator</B>()
<DD><I></I>
<DT>
<A HREF="#DOC.2.1.1"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual void <B>setCamera</B>(osg::Camera*)
<DD><I>attach a camera to the manipulator to be used for specifying view</I>
<DT>
<A HREF="#DOC.2.1.2"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual osg::Camera* <B>getCamera</B>() const
<DD><I>get the attached a camera</I>
<DT>
<A HREF="#DOC.2.1.3"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual void <B>setNode</B>(osg::Node*)
<DD><I>Attach a node to the manipulator.</I>
<DT>
<A HREF="#DOC.2.1.4"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual osg::Node* <B>getNode</B>() const
<DD><I>Return node if attached</I>
<DT>
<A HREF="#DOC.2.1.5"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual void <B>home</B>(<!1><A HREF="GUIEventAdapter.html">GUIEventAdapter</A>&amp;, <!1><A HREF="GUIActionAdapter.html">GUIActionAdapter</A>&amp;)
<DD><I>Move the camera to the default position.</I>
<DT>
<A HREF="#DOC.2.1.6"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual void <B>init</B>(<!1><A HREF="GUIEventAdapter.html">GUIEventAdapter</A>&amp;, <!1><A HREF="GUIActionAdapter.html">GUIActionAdapter</A>&amp;)
<DD><I>Start/restart the manipulator</I>
<DT>
<A HREF="#DOC.2.1.7"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual bool <B>update</B>(<!1><A HREF="GUIEventAdapter.html">GUIEventAdapter</A>&amp; ea, <!1><A HREF="GUIActionAdapter.html">GUIActionAdapter</A>&amp; us)
<DD><I>Handle events, return true if handled, false otherwise</I>
</DL></P>
<P><DL>
<DT><H3>Protected Fields</H3><DD><DT>
<A HREF="#DOC.2.1.10"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>osg::ref_ptr&lt;osg::Camera&gt; <B>_camera</B>
<DD><I></I>
</DL></P>
</DL>
<A NAME="DOC.DOCU">
<HR>
<H2>Documentation</H2>
<DL>
<A NAME="CameraManipulator">
<A NAME="DOC.2.1.8">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> CameraManipulator()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="~CameraManipulator">
<A NAME="DOC.2.1.9">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual ~CameraManipulator()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="setCamera">
<A NAME="DOC.2.1.1">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void setCamera(osg::Camera*)</B></TT>
<DD>attach a camera to the manipulator to be used for specifying view
<DL><DT><DD></DL><P>
<A NAME="getCamera">
<A NAME="DOC.2.1.2">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual osg::Camera* getCamera() const </B></TT>
<DD>get the attached a camera
<DL><DT><DD></DL><P>
<A NAME="setNode">
<A NAME="DOC.2.1.3">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void setNode(osg::Node*)</B></TT>
<DD>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.
<DL><DT><DD></DL><P>
<A NAME="getNode">
<A NAME="DOC.2.1.4">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual osg::Node* getNode() const </B></TT>
<DD>Return node if attached
<DL><DT><DD></DL><P>
<A NAME="home">
<A NAME="DOC.2.1.5">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void home(<!1><A HREF="GUIEventAdapter.html">GUIEventAdapter</A>&amp;, <!1><A HREF="GUIActionAdapter.html">GUIActionAdapter</A>&amp;)</B></TT>
<DD>Move the camera to the default position.
May be ignored by manipulators if home functionality is not appropriate.
<DL><DT><DD></DL><P>
<A NAME="init">
<A NAME="DOC.2.1.6">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void init(<!1><A HREF="GUIEventAdapter.html">GUIEventAdapter</A>&amp;, <!1><A HREF="GUIActionAdapter.html">GUIActionAdapter</A>&amp;)</B></TT>
<DD>Start/restart the manipulator
<DL><DT><DD></DL><P>
<A NAME="update">
<A NAME="DOC.2.1.7">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual bool update(<!1><A HREF="GUIEventAdapter.html">GUIEventAdapter</A>&amp; ea, <!1><A HREF="GUIActionAdapter.html">GUIActionAdapter</A>&amp; us)</B></TT>
<DD>Handle events, return true if handled, false otherwise
<DL><DT><DD></DL><P>
<A NAME="_camera">
<A NAME="DOC.2.1.10">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::ref_ptr&lt;osg::Camera&gt; _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="FlightManipulator.html">FlightManipulator</A><BR>
<A HREF="DriveManipulator.html">DriveManipulator</A><BR>
</DL>
<DL><DT><DD></DL><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://www.linuxsupportline.com/~doc++">DOC++</A>.
</BODY>