218 lines
12 KiB
HTML
218 lines
12 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE>class OSGGA_EXPORT osgGA::KeySwitchMatrixManipulator</TITLE>
|
|
<META NAME="GENERATOR" CONTENT="DOC++ 3.4.10">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
|
|
<H2>class OSGGA_EXPORT <A HREF="#DOC.DOCU">osgGA::KeySwitchMatrixManipulator</A></H2></H2><BLOCKQUOTE> KeySwitchMatrixManipulator is a decorator which allows the type of camera manipulator being used to be switched by pressing a key.</BLOCKQUOTE>
|
|
<HR>
|
|
|
|
<H2>Inheritance:</H2>
|
|
<APPLET CODE="ClassGraph.class" WIDTH=600 HEIGHT=125>
|
|
<param name=classes value="Mosg::Object,M,CGUIEventHandler,MGUIEventHandler.html,CMatrixManipulator,MMatrixManipulator.html,CKeySwitchMatrixManipulator,MKeySwitchMatrixManipulator.html">
|
|
<param name=before value="M,M,M,M">
|
|
<param name=after value="Md_SPSP,Md_SP,Md_,M">
|
|
<param name=indent value="0,1,2,3">
|
|
<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.9.1">className</A></B>()
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.9.2">addMatrixManipulator</A></B>(int key, std::string name, <!1><A HREF="MatrixManipulator.html">MatrixManipulator</A>* cm)
|
|
<DD><I> Add a camera manipulator with an associated name, and a key to trigger the switch,</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.9.3">addNumberedMatrixManipulator</A></B>(<!1><A HREF="MatrixManipulator.html">MatrixManipulator</A>* cm)
|
|
<DD><I> Add a camera manipulator with an autogenerated keybinding which is '1' + previous number of camera's registerd</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>unsigned int <B><A HREF="#DOC.2.9.4">getNumMatrixManipulators</A></B>() const
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.9.5">selectMatrixManipulator</A></B>(unsigned int num)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="MatrixManipulator.html">MatrixManipulator</A>* <B><A HREF="#DOC.2.9.6">getCurrentMatrixManipulator</A></B>()
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const <!1><A HREF="MatrixManipulator.html">MatrixManipulator</A>* <B><A HREF="#DOC.2.9.7">getCurrentMatrixManipulator</A></B>() const
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="MatrixManipulator.html">MatrixManipulator</A>* <B><A HREF="#DOC.2.9.8">getMatrixManipulator</A></B>(unsigned int num)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const <!1><A HREF="MatrixManipulator.html">MatrixManipulator</A>* <B><A HREF="#DOC.2.9.9">getMatrixManipulator</A></B>(unsigned int num) const
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.9.10">setByMatrix</A></B>(const osg::Matrixd& matrix)
|
|
<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.9.11">setByInverseMatrix</A></B>(const osg::Matrixd& matrix)
|
|
<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.9.12">getMatrix</A></B>() const
|
|
<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.9.13">getInverseMatrix</A></B>() const
|
|
<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.9.14">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.9.15">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.9.16">setNode</A></B>(osg::Node* n)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual const osg::Node* <B><A HREF="#DOC.2.9.17">getNode</A></B>() const
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual osg::Node* <B><A HREF="#DOC.2.9.18">getNode</A></B>()
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.9.19">home</A></B>(const <!1><A HREF="GUIEventAdapter.html">GUIEventAdapter</A>& ee, <!1><A HREF="GUIActionAdapter.html">GUIActionAdapter</A>& aa)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.9.20">init</A></B>(const <!1><A HREF="GUIEventAdapter.html">GUIEventAdapter</A>& ee, <!1><A HREF="GUIActionAdapter.html">GUIActionAdapter</A>& aa)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual bool <B><A HREF="#DOC.2.9.21">handle</A></B>(const <!1><A HREF="GUIEventAdapter.html">GUIEventAdapter</A>& ea, <!1><A HREF="GUIActionAdapter.html">GUIActionAdapter</A>& us)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.9.22">getUsage</A></B>(osg::ApplicationUsage& usage) const
|
|
<DD><I>Get the keyboard and mouse usage of this manipulator</I>
|
|
</DL></P>
|
|
|
|
</DL>
|
|
<HR><H3>Inherited from <A HREF="MatrixManipulator.html">MatrixManipulator</A>:</H3>
|
|
<DL>
|
|
<P><DL>
|
|
<DT><H3>Public Methods</H3><DD><DT>
|
|
<IMG ALT="o" SRC=icon2.gif>virtual void <B>accept</B>(<!1><A HREF="GUIEventHandlerVisitor.html">GUIEventHandlerVisitor</A>& v)
|
|
</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>()
|
|
</DL></P>
|
|
|
|
</DL>
|
|
|
|
<A NAME="DOC.DOCU"></A>
|
|
<HR>
|
|
<H2>Documentation</H2>
|
|
<BLOCKQUOTE>
|
|
KeySwitchMatrixManipulator is a decorator which allows the type of camera manipulator
|
|
being used to be switched by pressing a key. E.g. '1' for a TrackballManipultor,
|
|
'2' for a DriveManipulator, '3' for a FlightManipulator. The manipulators available,
|
|
and the associated switch keys, can be configured.</BLOCKQUOTE>
|
|
<DL>
|
|
|
|
<A NAME="className"></A>
|
|
<A NAME="DOC.2.9.1"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual const char* className()</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="addMatrixManipulator"></A>
|
|
<A NAME="DOC.2.9.2"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void addMatrixManipulator(int key, std::string name, <!1><A HREF="MatrixManipulator.html">MatrixManipulator</A>* cm)</B></TT>
|
|
<DD>
|
|
Add a camera manipulator with an associated name, and a key to
|
|
trigger the switch,
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="addNumberedMatrixManipulator"></A>
|
|
<A NAME="DOC.2.9.3"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void addNumberedMatrixManipulator(<!1><A HREF="MatrixManipulator.html">MatrixManipulator</A>* cm)</B></TT>
|
|
<DD>
|
|
Add a camera manipulator with an autogenerated keybinding which is '1' + previous number of camera's registerd
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getNumMatrixManipulators"></A>
|
|
<A NAME="DOC.2.9.4"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>unsigned int getNumMatrixManipulators() const </B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="selectMatrixManipulator"></A>
|
|
<A NAME="DOC.2.9.5"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void selectMatrixManipulator(unsigned int num)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getCurrentMatrixManipulator"></A>
|
|
<A NAME="DOC.2.9.6"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="MatrixManipulator.html">MatrixManipulator</A>* getCurrentMatrixManipulator()</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getCurrentMatrixManipulator"></A>
|
|
<A NAME="DOC.2.9.7"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const <!1><A HREF="MatrixManipulator.html">MatrixManipulator</A>* getCurrentMatrixManipulator() const </B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getMatrixManipulator"></A>
|
|
<A NAME="DOC.2.9.8"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="MatrixManipulator.html">MatrixManipulator</A>* getMatrixManipulator(unsigned int num)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getMatrixManipulator"></A>
|
|
<A NAME="DOC.2.9.9"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const <!1><A HREF="MatrixManipulator.html">MatrixManipulator</A>* getMatrixManipulator(unsigned int num) const </B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="setByMatrix"></A>
|
|
<A NAME="DOC.2.9.10"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void setByMatrix(const osg::Matrixd& matrix)</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.9.11"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void setByInverseMatrix(const osg::Matrixd& matrix)</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.9.12"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual osg::Matrixd getMatrix() const </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.9.13"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual osg::Matrixd getInverseMatrix() const </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.9.14"></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.9.15"></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.9.16"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void setNode(osg::Node* n)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getNode"></A>
|
|
<A NAME="DOC.2.9.17"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual const osg::Node* getNode() const </B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getNode"></A>
|
|
<A NAME="DOC.2.9.18"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual osg::Node* getNode()</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="home"></A>
|
|
<A NAME="DOC.2.9.19"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void home(const <!1><A HREF="GUIEventAdapter.html">GUIEventAdapter</A>& ee, <!1><A HREF="GUIActionAdapter.html">GUIActionAdapter</A>& aa)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="init"></A>
|
|
<A NAME="DOC.2.9.20"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void init(const <!1><A HREF="GUIEventAdapter.html">GUIEventAdapter</A>& ee, <!1><A HREF="GUIActionAdapter.html">GUIActionAdapter</A>& aa)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="handle"></A>
|
|
<A NAME="DOC.2.9.21"></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>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getUsage"></A>
|
|
<A NAME="DOC.2.9.22"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void getUsage(osg::ApplicationUsage& usage) const </B></TT>
|
|
<DD>Get the keyboard and mouse usage of this manipulator
|
|
<DL><DT><DD></DL><P></DL>
|
|
|
|
<HR><DL><DT><B>This class has no child classes.</B></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>
|