#include <winexam.h>
Inheritance diagram for GlutWindowExaminer:


Public Types | |
| enum | MouseMode |
| Mouse zoom-pan-rotate mode. | |
Public Methods | |
| GlutWindowExaminer (const std::string &title=titleDefault, int width=widthDefault, int height=heightDefault, int x=xDefault, int y=yDefault, unsigned int displayMode=displayModeDefault) | |
| Constructor. | |
| virtual | ~GlutWindowExaminer () |
| Destructor. | |
| void | OnOpen () |
| Handler for window open event(s). | |
| void | OnClose () |
| Handler for window close event(s). | |
| void | OnReshape (int w, int h) |
| Handler for window reshape events. | |
| void | OnKeyboard (unsigned char key, int x, int y) |
| Handler for keyboard events. | |
| void | OnSpecial (int key, int x, int y) |
| Handler for special keyboard events (function keys, etc). | |
| void | OnMenu (int value) |
| Handler for menu events. | |
| void | OnMouse (int button, int state, int x, int y) |
| Handler for mouse button events. | |
| void | OnMotion (int x, int y) |
| Handler for mouse movement events. | |
| void | OnPassiveMotion (int x, int y) |
| Handler for passive mouse motion events (no button pressed). | |
| virtual void | OnOrient (const Matrix &viewing, const Matrix &inverse) |
| Callback handler for changes in viewing direction. | |
| virtual Vector | getReferencePoint (int x, int y, const Vector &pos, const Matrix &modelView, const Matrix &modelViewInverse) const |
| Callback handler for getting a refernce point from mouse x and y. | |
| Vector & | referencePoint () |
| Current reference point. | |
| bool & | mouseZoom () |
| Enable mouse zooming. | |
| bool & | mousePan () |
| Enable mouse panning. | |
| bool & | mouseRotate () |
| Enable mouse rotation. | |
| MouseMode & | mouseMode () |
| Mouse mode. | |
Protected Methods | |
| bool | mousePressed () const |
| Is any mouse button currently pressed? | |
| Vector | xAxisOfRotation () const |
| Calculate x-axis rotation in transformed co-ordinates. | |
| Vector | yAxisOfRotation () const |
| Calculate y-axis rotation in transformed co-ordinates. | |
| Vector | axisOfRotation (const Vector &v) const |
| Calculate rotation axis in transformed co-ordinates. | |
| void | OnPreDisplay () |
| Apply current transformation matrix before doing anything else. | |
| Vector | dragPos (const int x, const int y) const |
| Convert from screen co-ordinates to world co-ordinates. | |
Protected Attributes | |
| Matrix | _viewMatrix |
| Current transformation matrix. | |
| Matrix | _viewMatrixInverse |
| Current transformation matrix inverse. | |
Definition at line 42 of file winexam.h.
|
|
Handler for window open event(s).
Reimplemented from GlutWindow. Definition at line 73 of file winexam.cpp. References _viewMatrix, _viewMatrixInverse, GlutWindow::OnOpen(), and OnOrient(). |
|
|
Handler for window close event(s).
Reimplemented from GlutWindow. Definition at line 79 of file winexam.cpp. References GlutWindow::OnClose(). |
1.2.18