#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 void | do_reposition_window (int xpos, int ypos) |
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_rgb3u (int &x, int &y) |
virtual routine for capturing the screen to a packed RGB array. More... | |
virtual unsigned char * | readpixels_rgba4u (int &x, int &y) |
virtual routine for capturing the screen to a packed RGBA 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 | lastkeycode |
int | lastbtn |
int | lastzdelta |
Definition at line 33 of file FltkOpenGLDisplayDevice.h.
|
|
Definition at line 337 of file FltkOpenGLDisplayDevice.C. References OpenGLRenderer::free_opengl_ctx. |
|
Reimplemented from DisplayDevice. Definition at line 609 of file FltkOpenGLDisplayDevice.C. |
|
Do device-specific resizing or positioning of window Reimplemented from DisplayDevice. Definition at line 595 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 436 of file FltkOpenGLDisplayDevice.C. References lastbtn, lastevent, lastkeycode, lastzdelta, DisplayDevice::WIN_KBD, DisplayDevice::WIN_KBD_DELETE, DisplayDevice::WIN_KBD_DOWN, DisplayDevice::WIN_KBD_END, DisplayDevice::WIN_KBD_ESCAPE, DisplayDevice::WIN_KBD_F1, DisplayDevice::WIN_KBD_HOME, DisplayDevice::WIN_KBD_INSERT, DisplayDevice::WIN_KBD_LEFT, DisplayDevice::WIN_KBD_PAGE_UP, DisplayDevice::WIN_KBD_RIGHT, DisplayDevice::WIN_KBD_UP, 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 548 of file FltkOpenGLDisplayDevice.C. References NULL, x, DisplayDevice::xSize, y, and DisplayDevice::ySize. |
|
virtual routine for capturing the screen to a packed RGBA array.
Reimplemented from DisplayDevice. Definition at line 567 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 93 of file FltkOpenGLDisplayDevice.h. References DisplayDevice::rel_screen_pos, reshape, x, and y. |
|
refresh device after change.
Reimplemented from DisplayDevice. Definition at line 510 of file FltkOpenGLDisplayDevice.C. References OpenGLRenderer::enable_stencil_stereo, DisplayDevice::inStereo, OPENGL_STEREO_ABOVEBELOW, OPENGL_STEREO_SIDE, OPENGL_STEREO_STENCIL_CHECKERBOARD, OPENGL_STEREO_STENCIL_COLUMNS, OPENGL_STEREO_STENCIL_ROWS, 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 418 of file FltkOpenGLDisplayDevice.C. References n, DisplayDevice::NORMAL_CURSOR, DisplayDevice::PICK_CURSOR, DisplayDevice::SCALE_CURSOR, DisplayDevice::TRANS_CURSOR, and DisplayDevice::WAIT_CURSOR. |
|
Reimplemented from DisplayDevice. Definition at line 394 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 409 of file FltkOpenGLDisplayDevice.C. |
|
finish up after drawing.
Reimplemented from DisplayDevice. Definition at line 588 of file FltkOpenGLDisplayDevice.C. Referenced by FltkOpenGLDisplayDevice. |
|
Reimplemented from DisplayDevice. Definition at line 349 of file FltkOpenGLDisplayDevice.C. Referenced by readpixels_rgb3u, readpixels_rgba4u, rel_screen_pos, x, and y. |
|
absolute position of cursor from lower-left corner.
Reimplemented from DisplayDevice. Definition at line 372 of file FltkOpenGLDisplayDevice.C. References DisplayDevice::screenY, x, and y. Referenced by readpixels_rgb3u, readpixels_rgba4u, rel_screen_pos, x, and y. |
|
Definition at line 52 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 51 of file FltkOpenGLDisplayDevice.h. Referenced by myglwindow::handle, and read_event. |
|
Definition at line 53 of file FltkOpenGLDisplayDevice.h. Referenced by myglwindow::handle, and read_event. |