#include <FltkOpenGLDisplayDevice.h>
Inheritance diagram for FltkOpenGLDisplayDevice:

Public Methods | |
| FltkOpenGLDisplayDevice (int, char **, VMDApp *, int *size=NULL, int *loc=NULL) | |
| virtual | ~FltkOpenGLDisplayDevice (void) |
| virtual int | x (void) |
| virtual int | y (void) |
| absolute position of cursor from lower-left corner. More... | |
| virtual int | shift_state (void) |
| virtual int | spaceball (int *, int *, int *, int *, int *, int *, int *) |
| return the shift state (ORed enums). More... | |
| virtual void | set_cursor (int) |
| virtual void | do_resize_window (int, int) |
| virtual int | read_event (long &, long &) |
| virtual void | update (int do_update=TRUE) |
| finish up after drawing. More... | |
| virtual void | reshape (void) |
| refresh device after change. More... | |
| virtual unsigned char * | readpixels (int &x, int &y) |
| virtual routine for capturing the screen to a packed RGB array. More... | |
| virtual void | rel_screen_pos (float &x, float &y) |
| convert 2D absolute screen coords into relative coords, 0 ... 1. More... | |
Public Attributes | |
| int | lastevent |
| int | lastbtn |
| int | lastzdelta |
Definition at line 33 of file FltkOpenGLDisplayDevice.h.
|
||||||||||||||||||||||||
|
|
Definition at line 297 of file FltkOpenGLDisplayDevice.C. References OpenGLRenderer::free_opengl_ctx. |
|
||||||||||||
|
Do device-specific resizing or positioning of window Reimplemented from DisplayDevice. Definition at line 480 of file FltkOpenGLDisplayDevice.C. |
|
||||||||||||
|
read the next event ... returns an event type (one of the above ones), and a value. Returns success, and sets arguments. NOTE: THIS SHOULD NOT BLOCK ... IT SHOUULD RETURN FALSE IF NO EVENT TO READ. Reimplemented from DisplayDevice. Definition at line 376 of file FltkOpenGLDisplayDevice.C. References lastbtn, lastevent, lastzdelta, DisplayDevice::WIN_KEYBD, DisplayDevice::WIN_LEFT, DisplayDevice::WIN_MIDDLE, DisplayDevice::WIN_RIGHT, DisplayDevice::WIN_WHEELDOWN, and DisplayDevice::WIN_WHEELUP. |
|
||||||||||||
|
virtual routine for capturing the screen to a packed RGB array.
Reimplemented from DisplayDevice. Definition at line 452 of file FltkOpenGLDisplayDevice.C. References NULL, x, DisplayDevice::xSize, y, and DisplayDevice::ySize. |
|
||||||||||||
|
convert 2D absolute screen coords into relative coords, 0 ... 1.
Reimplemented from DisplayDevice. Definition at line 87 of file FltkOpenGLDisplayDevice.h. References DisplayDevice::rel_screen_pos, reshape, x, and y. |
|
|
refresh device after change.
Reimplemented from DisplayDevice. Definition at line 424 of file FltkOpenGLDisplayDevice.C. References OpenGLRenderer::enable_stencil_stereo, OPENGL_STEREO_ABOVEBELOW, OPENGL_STEREO_CROSSED, OPENGL_STEREO_SIDE, OPENGL_STEREO_STENCIL, DisplayDevice::screenY, DisplayDevice::set_screen_pos, DisplayDevice::xOrig, DisplayDevice::xSize, DisplayDevice::yOrig, and DisplayDevice::ySize. Referenced by myglwindow::draw, FltkOpenGLDisplayDevice, and rel_screen_pos. |
|
|
set the Nth cursor shape as the current one. If no arg given, the default shape (n=0) is used. Reimplemented from DisplayDevice. Definition at line 358 of file FltkOpenGLDisplayDevice.C. References DisplayDevice::NORMAL_CURSOR, DisplayDevice::PICK_CURSOR, DisplayDevice::SCALE_CURSOR, DisplayDevice::TRANS_CURSOR, and DisplayDevice::WAIT_CURSOR. |
|
|
Reimplemented from DisplayDevice. Definition at line 334 of file FltkOpenGLDisplayDevice.C. References DisplayDevice::ALT, DisplayDevice::CONTROL, and DisplayDevice::SHIFT. |
|
||||||||||||||||||||||||||||||||
|
return the shift state (ORed enums). get the current state of the Spaceball if one is available returns rx ry rz, tx ty tz, buttons Reimplemented from DisplayDevice. Definition at line 349 of file FltkOpenGLDisplayDevice.C. |
|
|
finish up after drawing.
Reimplemented from DisplayDevice. Definition at line 473 of file FltkOpenGLDisplayDevice.C. Referenced by FltkOpenGLDisplayDevice. |
|
|
Reimplemented from DisplayDevice. Definition at line 309 of file FltkOpenGLDisplayDevice.C. Referenced by readpixels, rel_screen_pos, x, and y. |
|
|
absolute position of cursor from lower-left corner.
Reimplemented from DisplayDevice. Definition at line 322 of file FltkOpenGLDisplayDevice.C. References DisplayDevice::screenY, x, and y. Referenced by readpixels, rel_screen_pos, x, and y. |
|
|
Definition at line 51 of file FltkOpenGLDisplayDevice.h. Referenced by myglwindow::handle, and read_event. |
|
|
Definition at line 50 of file FltkOpenGLDisplayDevice.h. Referenced by myglwindow::handle, and read_event. |
|
|
Definition at line 52 of file FltkOpenGLDisplayDevice.h. Referenced by myglwindow::handle, and read_event. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002