V-ARTContributions
|
Keyboard handler. More...
#include <viewerglutogl.h>
Public Member Functions | |
virtual | ~KbHandler () |
virtual void | HandleKey (unsigned char key) |
Called when a key is pressed. More... | |
virtual void | OnKeyDown (int key) |
Called when a key is pressed. More... | |
virtual void | HandleSpecialKey (int key) |
Called when a special key is pressed. More... | |
virtual void | OnKeyUp (int key) |
Called when a key is released. More... | |
Protected Attributes | |
ViewerGlutOGL * | viewerPtr |
Points to the viewer on which the handler was attached. More... | |
Friends | |
class | ViewerGlutOGL |
Keyboard handler.
Definition at line 48 of file viewerglutogl.h.
|
inlinevirtual |
Definition at line 52 of file viewerglutogl.h.
|
inlinevirtual |
Called when a key is pressed.
Definition at line 56 of file viewerglutogl.h.
|
inlinevirtual |
Called when a special key is pressed.
Definition at line 67 of file viewerglutogl.h.
|
virtual |
Called when a key is pressed.
Implement this method on your keyboard handler. It will be called when a key is pressed. Includes what GLUT calls "special keys". If you keep a key pressed, several such events (key down) will be dispached, because GLUT handles it as many key ups and downs.
Definition at line 22 of file viewerglutogl.cpp.
|
inlinevirtual |
Called when a key is released.
This method may be implemented on your keyboard handler. It will be called when a key is released. Includes what GLUT calls "special keys". If you keep a key pressed, several such events (key down) will be dispached, because GLUT handles it as many key ups and downs.
Definition at line 75 of file viewerglutogl.h.
|
friend |
Definition at line 50 of file viewerglutogl.h.
|
protected |
Points to the viewer on which the handler was attached.
Definition at line 78 of file viewerglutogl.h.
Referenced by VART::ViewerGlutOGL::SetKbHandler().