197 lines
9.7 KiB
HTML
197 lines
9.7 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE>class OSGGA_EXPORT osgGA::MatrixManipulator</TITLE>
|
|
<META NAME="GENERATOR" CONTENT="DOC++ 3.4.10">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
|
|
<H2>class OSGGA_EXPORT <A HREF="#DOC.DOCU">osgGA::MatrixManipulator</A></H2></H2><HR>
|
|
|
|
<H2>Inheritance:</H2>
|
|
<APPLET CODE="ClassGraph.class" WIDTH=600 HEIGHT=245>
|
|
<param name=classes value="Mosg::Object,M,CGUIEventHandler,MGUIEventHandler.html,CMatrixManipulator,MMatrixManipulator.html,CTrackballManipulator,MTrackballManipulator.html,CKeySwitchMatrixManipulator,MKeySwitchMatrixManipulator.html,CFlightManipulator,MFlightManipulator.html,CDriveManipulator,MDriveManipulator.html,CAnimationPathManipulator,MAnimationPathManipulator.html">
|
|
<param name=before value="M,M,M,M|_,MR_,MR_,MR_,Mr_">
|
|
<param name=after value="Md_SP,Md_,M,M,M,M,M,M">
|
|
<param name=indent value="0,1,2,2,2,2,2,2">
|
|
<param name=arrowdir value="down">
|
|
</APPLET>
|
|
<HR>
|
|
|
|
<DL>
|
|
<P><DL>
|
|
<DT><H3>Public Methods</H3><DD><DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual const char* <B><A HREF="#DOC.2.10.1">className</A></B>() const
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.10.2">setByMatrix</A></B>(const osg::Matrixd& matrix) = 0
|
|
<DD><I>set the position of the matrix manipulator using a 4x4 Matrix</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.10.3">setByInverseMatrix</A></B>(const osg::Matrixd& matrix) = 0
|
|
<DD><I>set the position of the matrix manipulator using a 4x4 Matrix</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual osg::Matrixd <B><A HREF="#DOC.2.10.4">getMatrix</A></B>() const = 0
|
|
<DD><I>get the position of the manipulator as 4x4 Matrix</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual osg::Matrixd <B><A HREF="#DOC.2.10.5">getInverseMatrix</A></B>() const = 0
|
|
<DD><I>get the position of the manipulator as a inverse matrix of the manipulator, typically used as a model view matrix</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual osgUtil::SceneView::FusionDistanceMode <B><A HREF="#DOC.2.10.6">getFusionDistanceMode</A></B>() const
|
|
<DD><I>Get the FusionDistanceMode.</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual float <B><A HREF="#DOC.2.10.7">getFusionDistanceValue</A></B>() const
|
|
<DD><I>Get the FusionDistanceValue.</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.10.8">setNode</A></B>(osg::Node*)
|
|
<DD><I> Attach a node to the manipulator, automatically detaching any previously attached node.</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual const osg::Node* <B><A HREF="#DOC.2.10.9">getNode</A></B>() const
|
|
<DD><I>Return const node if attached</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual osg::Node* <B><A HREF="#DOC.2.10.10">getNode</A></B>()
|
|
<DD><I>Return node if attached</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.10.11">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>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.10.12">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>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual bool <B><A HREF="#DOC.2.10.13">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>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.10.14">accept</A></B>(<!1><A HREF="GUIEventHandlerVisitor.html">GUIEventHandlerVisitor</A>& v)
|
|
<DD><I>Handle visitations </I>
|
|
</DL></P>
|
|
|
|
<P><DL>
|
|
<DT><H3>Protected Methods</H3><DD><DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.10.15">MatrixManipulator</A></B>()
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual <B><A HREF="#DOC.2.10.16">~MatrixManipulator</A></B>()
|
|
</DL></P>
|
|
|
|
</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>META_Object <B>(osgGA, GUIEventHandler) const </B>() const
|
|
<DT>
|
|
<IMG ALT="o" SRC=icon2.gif>virtual <!1><A HREF="CompositeGUIEventHandler.html">CompositeGUIEventHandler</A>* <B>getComposite</B>()
|
|
<DT>
|
|
<IMG ALT="o" SRC=icon2.gif>virtual void <B>getUsage</B>(osg::ApplicationUsage&) const
|
|
</DL></P>
|
|
|
|
</DL>
|
|
|
|
<A NAME="DOC.DOCU"></A>
|
|
<HR>
|
|
<H2>Documentation</H2>
|
|
<BLOCKQUOTE>
|
|
|
|
<P>MatrixManipulator 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>
|
|
<DL>
|
|
|
|
<A NAME="className"></A>
|
|
<A NAME="DOC.2.10.1"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual const char* className() const </B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="setByMatrix"></A>
|
|
<A NAME="DOC.2.10.2"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void setByMatrix(const osg::Matrixd& matrix) = 0</B></TT>
|
|
<DD>set the position of the matrix manipulator using a 4x4 Matrix
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="setByInverseMatrix"></A>
|
|
<A NAME="DOC.2.10.3"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void setByInverseMatrix(const osg::Matrixd& matrix) = 0</B></TT>
|
|
<DD>set the position of the matrix manipulator using a 4x4 Matrix
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getMatrix"></A>
|
|
<A NAME="DOC.2.10.4"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual osg::Matrixd getMatrix() const = 0</B></TT>
|
|
<DD>get the position of the manipulator as 4x4 Matrix
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getInverseMatrix"></A>
|
|
<A NAME="DOC.2.10.5"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual osg::Matrixd getInverseMatrix() const = 0</B></TT>
|
|
<DD>get the position of the manipulator as a inverse matrix of the manipulator, typically used as a model view matrix
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getFusionDistanceMode"></A>
|
|
<A NAME="DOC.2.10.6"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual osgUtil::SceneView::FusionDistanceMode getFusionDistanceMode() const </B></TT>
|
|
<DD>Get the FusionDistanceMode. Used by SceneView for setting up setereo convergence.
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getFusionDistanceValue"></A>
|
|
<A NAME="DOC.2.10.7"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual float getFusionDistanceValue() const </B></TT>
|
|
<DD>Get the FusionDistanceValue. Used by SceneView for setting up setereo convergence.
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="setNode"></A>
|
|
<A NAME="DOC.2.10.8"></A>
|
|
<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 detaching any previously attached node.
|
|
setNode(NULL) detaches previous nodes.
|
|
May be ignored by manipulators which do not require a reference model.
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getNode"></A>
|
|
<A NAME="DOC.2.10.9"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual const osg::Node* getNode() const </B></TT>
|
|
<DD>Return const node if attached
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getNode"></A>
|
|
<A NAME="DOC.2.10.10"></A>
|
|
<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>
|
|
<A NAME="DOC.2.10.11"></A>
|
|
<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>
|
|
<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>
|
|
<A NAME="DOC.2.10.12"></A>
|
|
<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>
|
|
<DD>
|
|
Start/restart the manipulator.
|
|
FIXME: what does this actually mean? Provide examples.
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="handle"></A>
|
|
<A NAME="DOC.2.10.13"></A>
|
|
<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>
|
|
<DD>Handle events, return true if handled, false otherwise.
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="accept"></A>
|
|
<A NAME="DOC.2.10.14"></A>
|
|
<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>
|
|
<A NAME="MatrixManipulator"></A>
|
|
<A NAME="DOC.2.10.15"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> MatrixManipulator()</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="~MatrixManipulator"></A>
|
|
<A NAME="DOC.2.10.16"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual ~MatrixManipulator()</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="KeySwitchMatrixManipulator.html">KeySwitchMatrixManipulator</A><BR>
|
|
<A HREF="FlightManipulator.html">FlightManipulator</A><BR>
|
|
<A HREF="DriveManipulator.html">DriveManipulator</A><BR>
|
|
<A HREF="AnimationPathManipulator.html">AnimationPathManipulator</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>
|