Files
OpenSceneGraph/doc/osgGLUT/GLUTEventAdapter.html
2001-01-10 16:32:10 +00:00

343 lines
13 KiB
HTML

<HTML>
<HEAD>
<TITLE>class OSGGLUT_EXPORT osgGLUT::GLUTEventAdapter</TITLE>
<META NAME="GENERATOR" CONTENT="DOC++ 3.4.3">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H2>class OSGGLUT_EXPORT <A HREF="#DOC.DOCU">osgGLUT::GLUTEventAdapter</A>: public osgUtil::GUIEventAdapter</H2>
<BLOCKQUOTE>Class for adapting GLUT events so that they can be used as input to osgUtil::CameraManipulators</BLOCKQUOTE>
<HR>
<H2>Inheritance:</H2>
<APPLET CODE="ClassGraph.class" WIDTH=600 HEIGHT=65>
<param name=classes value="MosgUtil::GUIEventAdapter,M,CGLUTEventAdapter,MGLUTEventAdapter.html">
<param name=before value="M,M">
<param name=after value="Md_,M">
<param name=indent value="0,1">
<param name=arrowdir value="down">
</APPLET>
<HR>
<DL>
<P><DL>
<DT><H3>Public Methods</H3><DD><DT>
<A HREF="#DOC.5.1.20"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A> <B>GLUTEventAdapter</B>()
<DD><I></I>
<DT>
<A HREF="#DOC.5.1.21"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual <B>~GLUTEventAdapter</B>()
<DD><I></I>
<DT>
<A HREF="#DOC.5.1.1"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual EventType <B>getEventType</B>() const
<DD><I>Get the EventType of the GUI event</I>
<DT>
<A HREF="#DOC.5.1.2"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual int <B>getKey</B>() const
<DD><I>key pressed, return -1 if inapropriate for this event.</I>
<DT>
<A HREF="#DOC.5.1.3"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual int <B>getButton</B>() const
<DD><I>button pressed/released, return -1 if inappropriate for this event</I>
<DT>
<A HREF="#DOC.5.1.4"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual int <B>getXmin</B>() const
<DD><I>window minimum x.</I>
<DT>
<A HREF="#DOC.5.1.5"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual int <B>getXmax</B>() const
<DD><I>window maximum x.</I>
<DT>
<A HREF="#DOC.5.1.6"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual int <B>getYmin</B>() const
<DD><I>window minimum y.</I>
<DT>
<A HREF="#DOC.5.1.7"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual int <B>getYmax</B>() const
<DD><I>window maximum y.</I>
<DT>
<A HREF="#DOC.5.1.8"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual int <B>getX</B>() const
<DD><I>current mouse x position</I>
<DT>
<A HREF="#DOC.5.1.9"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual int <B>getY</B>() const
<DD><I>current mouse y position</I>
<DT>
<A HREF="#DOC.5.1.10"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual unsigned int <B>getButtonMask</B>() const
<DD><I>current mouse button state </I>
<DT>
<A HREF="#DOC.5.1.11"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual float <B>time</B>() const
<DD><I>time in seconds of event.</I>
<DT>
<A HREF="#DOC.5.1.12"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>static void <B>setWindowSize</B>(int Xmin, int Ymin, int Xmax, int Ymax)
<DD><I>static method for setting window dimensions</I>
<DT>
<A HREF="#DOC.5.1.13"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>static void <B>setButtonMask</B>(unsigned int buttonMask)
<DD><I>static method for setting button state</I>
<DT>
<A HREF="#DOC.5.1.14"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>void <B>adaptResize</B>(float t, int Xmin, int Ymin, int Xmax, int Ymax)
<DD><I>method for adapting resize events.</I>
<DT>
<A HREF="#DOC.5.1.15"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>void <B>adaptMouseMotion</B>(float t, int x, int y)
<DD><I>method for adapting mouse motion events whilst mouse buttons are pressed</I>
<DT>
<A HREF="#DOC.5.1.16"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>void <B>adaptMousePassiveMotion</B>(float t, int x, int y)
<DD><I>method for adapting mouse motion events whilst no mouse button are pressed</I>
<DT>
<A HREF="#DOC.5.1.17"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>void <B>adaptMouse</B>(float t, int button, int state, int x, int y)
<DD><I>method for adapting mouse button pressed/released events</I>
<DT>
<A HREF="#DOC.5.1.18"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>void <B>adaptKeyboard</B>(float t, unsigned char key, int x, int y )
<DD><I>method for adapting keyboard events</I>
<DT>
<A HREF="#DOC.5.1.19"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>void <B>adaptFrame</B>(float t)
<DD><I>method for adapting frame events, ie.</I>
<DT>
<A HREF="#DOC.5.1.22"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>void <B>copyStaticVariables</B>()
<DD><I></I>
</DL></P>
<P><DL>
<DT><H3>Protected Fields</H3><DD><DT>
<A HREF="#DOC.5.1.23"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>EventType <B>_eventType</B>
<DD><I></I>
<DT>
<A HREF="#DOC.5.1.24"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>int <B>_key</B>
<DD><I></I>
<DT>
<A HREF="#DOC.5.1.25"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>int <B>_button</B>
<DD><I></I>
<DT>
<A HREF="#DOC.5.1.26"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>int <B>_Xmin</B>
<DD><I></I>
<DT>
<A HREF="#DOC.5.1.27"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>int <B>_Xmax</B>
<DD><I></I>
<DT>
<A HREF="#DOC.5.1.28"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>int <B>_Ymin</B>
<DD><I></I>
<DT>
<A HREF="#DOC.5.1.29"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>int <B>_Ymax</B>
<DD><I></I>
<DT>
<A HREF="#DOC.5.1.30"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>int <B>_mx</B>
<DD><I></I>
<DT>
<A HREF="#DOC.5.1.31"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>int <B>_my</B>
<DD><I></I>
<DT>
<A HREF="#DOC.5.1.32"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>unsigned int <B>_buttonMask</B>
<DD><I></I>
<DT>
<A HREF="#DOC.5.1.33"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>float <B>_time</B>
<DD><I></I>
<DT>
<A HREF="#DOC.5.1.34"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>static unsigned int <B>_s_accumulatedButtonMask</B>
<DD><I></I>
<DT>
<A HREF="#DOC.5.1.35"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>static int <B>_s_Xmin</B>
<DD><I></I>
<DT>
<A HREF="#DOC.5.1.36"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>static int <B>_s_Xmax</B>
<DD><I></I>
<DT>
<A HREF="#DOC.5.1.37"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>static int <B>_s_Ymin</B>
<DD><I></I>
<DT>
<A HREF="#DOC.5.1.38"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>static int <B>_s_Ymax</B>
<DD><I></I>
<DT>
<A HREF="#DOC.5.1.39"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>static int <B>_s_mx</B>
<DD><I></I>
<DT>
<A HREF="#DOC.5.1.40"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>static int <B>_s_my</B>
<DD><I></I>
</DL></P>
</DL>
<A NAME="DOC.DOCU">
<HR>
<H2>Documentation</H2>
<BLOCKQUOTE>Class for adapting GLUT events so that they can be used as input to osgUtil::CameraManipulators</BLOCKQUOTE>
<DL>
<A NAME="GLUTEventAdapter">
<A NAME="DOC.5.1.20">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> GLUTEventAdapter()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="~GLUTEventAdapter">
<A NAME="DOC.5.1.21">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual ~GLUTEventAdapter()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getEventType">
<A NAME="DOC.5.1.1">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual EventType getEventType() const </B></TT>
<DD>Get the EventType of the GUI event
<DL><DT><DD></DL><P>
<A NAME="getKey">
<A NAME="DOC.5.1.2">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual int getKey() const </B></TT>
<DD>key pressed, return -1 if inapropriate for this event.
<DL><DT><DD></DL><P>
<A NAME="getButton">
<A NAME="DOC.5.1.3">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual int getButton() const </B></TT>
<DD>button pressed/released, return -1 if inappropriate for this event
<DL><DT><DD></DL><P>
<A NAME="getXmin">
<A NAME="DOC.5.1.4">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual int getXmin() const </B></TT>
<DD>window minimum x.
<DL><DT><DD></DL><P>
<A NAME="getXmax">
<A NAME="DOC.5.1.5">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual int getXmax() const </B></TT>
<DD>window maximum x.
<DL><DT><DD></DL><P>
<A NAME="getYmin">
<A NAME="DOC.5.1.6">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual int getYmin() const </B></TT>
<DD>window minimum y.
<DL><DT><DD></DL><P>
<A NAME="getYmax">
<A NAME="DOC.5.1.7">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual int getYmax() const </B></TT>
<DD>window maximum y.
<DL><DT><DD></DL><P>
<A NAME="getX">
<A NAME="DOC.5.1.8">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual int getX() const </B></TT>
<DD>current mouse x position
<DL><DT><DD></DL><P>
<A NAME="getY">
<A NAME="DOC.5.1.9">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual int getY() const </B></TT>
<DD>current mouse y position
<DL><DT><DD></DL><P>
<A NAME="getButtonMask">
<A NAME="DOC.5.1.10">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual unsigned int getButtonMask() const </B></TT>
<DD>current mouse button state
<DL><DT><DD></DL><P>
<A NAME="time">
<A NAME="DOC.5.1.11">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual float time() const </B></TT>
<DD>time in seconds of event.
<DL><DT><DD></DL><P>
<A NAME="setWindowSize">
<A NAME="DOC.5.1.12">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>static void setWindowSize(int Xmin, int Ymin, int Xmax, int Ymax)</B></TT>
<DD>static method for setting window dimensions
<DL><DT><DD></DL><P>
<A NAME="setButtonMask">
<A NAME="DOC.5.1.13">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>static void setButtonMask(unsigned int buttonMask)</B></TT>
<DD>static method for setting button state
<DL><DT><DD></DL><P>
<A NAME="adaptResize">
<A NAME="DOC.5.1.14">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void adaptResize(float t, int Xmin, int Ymin, int Xmax, int Ymax)</B></TT>
<DD>method for adapting resize events.
<DL><DT><DD></DL><P>
<A NAME="adaptMouseMotion">
<A NAME="DOC.5.1.15">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void adaptMouseMotion(float t, int x, int y)</B></TT>
<DD>method for adapting mouse motion events whilst mouse buttons are pressed
<DL><DT><DD></DL><P>
<A NAME="adaptMousePassiveMotion">
<A NAME="DOC.5.1.16">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void adaptMousePassiveMotion(float t, int x, int y)</B></TT>
<DD>method for adapting mouse motion events whilst no mouse button are pressed
<DL><DT><DD></DL><P>
<A NAME="adaptMouse">
<A NAME="DOC.5.1.17">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void adaptMouse(float t, int button, int state, int x, int y)</B></TT>
<DD>method for adapting mouse button pressed/released events
<DL><DT><DD></DL><P>
<A NAME="adaptKeyboard">
<A NAME="DOC.5.1.18">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void adaptKeyboard(float t, unsigned char key, int x, int y )</B></TT>
<DD>method for adapting keyboard events
<DL><DT><DD></DL><P>
<A NAME="adaptFrame">
<A NAME="DOC.5.1.19">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void adaptFrame(float t)</B></TT>
<DD>method for adapting frame events, ie. iddle/display callback.
<DL><DT><DD></DL><P>
<A NAME="copyStaticVariables">
<A NAME="DOC.5.1.22">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void copyStaticVariables()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_eventType">
<A NAME="DOC.5.1.23">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>EventType _eventType</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_key">
<A NAME="DOC.5.1.24">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int _key</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_button">
<A NAME="DOC.5.1.25">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int _button</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_Xmin">
<A NAME="DOC.5.1.26">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int _Xmin</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_Xmax">
<A NAME="DOC.5.1.27">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int _Xmax</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_Ymin">
<A NAME="DOC.5.1.28">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int _Ymin</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_Ymax">
<A NAME="DOC.5.1.29">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int _Ymax</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_mx">
<A NAME="DOC.5.1.30">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int _mx</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_my">
<A NAME="DOC.5.1.31">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int _my</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_buttonMask">
<A NAME="DOC.5.1.32">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>unsigned int _buttonMask</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_time">
<A NAME="DOC.5.1.33">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>float _time</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_s_accumulatedButtonMask">
<A NAME="DOC.5.1.34">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>static unsigned int _s_accumulatedButtonMask</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_s_Xmin">
<A NAME="DOC.5.1.35">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>static int _s_Xmin</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_s_Xmax">
<A NAME="DOC.5.1.36">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>static int _s_Xmax</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_s_Ymin">
<A NAME="DOC.5.1.37">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>static int _s_Ymin</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_s_Ymax">
<A NAME="DOC.5.1.38">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>static int _s_Ymax</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_s_mx">
<A NAME="DOC.5.1.39">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>static int _s_mx</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_s_my">
<A NAME="DOC.5.1.40">
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>static int _s_my</B></TT>
<DL><DT><DD></DL><P></DL>
<HR><DL><DT><B>This class has no child classes.</B></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>