#include <OpenGLDisplayDevice.h>
Inheritance diagram for OpenGLDisplayDevice:
Public Methods | |
OpenGLDisplayDevice () | |
int | init (int argc, char **argv, VMDApp *app, int *size, int *loc=NULL) |
do actual window construction here. Return true if the window was successfully created; false if not. More... | |
virtual | ~OpenGLDisplayDevice (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 | queue_events (void) |
virtual int | read_event (long &, long &) |
virtual int | prepare3D (int do_clear=TRUE) |
ready to draw 3D. More... | |
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 int | drawpixels_rgba4u (unsigned char *rgba, int &x, int &y) |
virtual routine for drawing the screen from a packed RGBA array. More... | |
virtual void | set_window_title (char *) |
Public Attributes | |
glxdata | glxsrv |
Protected Methods | |
Window | open_window (char *, int *, int *, int, char **) |
virtual void | do_resize_window (int, int) |
virtual void | do_reposition_window (int, int) |
Protected Attributes | |
int | have_window |
Definition at line 147 of file OpenGLDisplayDevice.h.
|
|
Definition at line 821 of file OpenGLDisplayDevice.C. References glxdata::cx, glxdata::dpy, OpenGLRenderer::free_opengl_ctx, glxsrv, NULL, glxdata::sball, spaceball_close, glxdata::windowID, glxdata::xinp, and xinput_close. |
|
Reimplemented from DisplayDevice. Definition at line 1097 of file OpenGLDisplayDevice.C. References glxdata::dpy, glxsrv, and glxdata::windowID. |
|
Do device-specific resizing or positioning of window Reimplemented from DisplayDevice. Definition at line 1080 of file OpenGLDisplayDevice.C. References glxdata::dpy, glxsrv, NULL, setfullscreen, and glxdata::windowID. |
|
virtual routine for drawing the screen from a packed RGBA array.
Reimplemented from DisplayDevice. Definition at line 1454 of file OpenGLDisplayDevice.C. References glPopMatrix, and update. |
|
|
|
ready to draw 3D.
Reimplemented from OpenGLRenderer. Definition at line 1071 of file OpenGLDisplayDevice.C. References glxdata::cx, glxdata::dpy, glxsrv, OpenGLRenderer::prepare3D, and glxdata::windowID. |
|
queue the standard events (need only be called once ... but this is not done automatically by the window because it may not be necessary or even wanted) Reimplemented from DisplayDevice. Definition at line 1206 of file OpenGLDisplayDevice.C. References glxdata::dpy, glxsrv, and glxdata::windowID. |
|
|
virtual routine for capturing the screen to a packed RGB array.
Reimplemented from DisplayDevice. Definition at line 1417 of file OpenGLDisplayDevice.C. References NULL, DisplayDevice::xSize, and DisplayDevice::ySize. |
|
virtual routine for capturing the screen to a packed RGBA array.
Reimplemented from DisplayDevice. Definition at line 1435 of file OpenGLDisplayDevice.C. References NULL, DisplayDevice::xSize, and DisplayDevice::ySize. Referenced by update. |
|
refresh device after change.
Reimplemented from DisplayDevice. Definition at line 1362 of file OpenGLDisplayDevice.C. References glxdata::dpy, OpenGLRenderer::enable_stencil_stereo, glxsrv, DisplayDevice::inStereo, OPENGL_STEREO_ABOVEBELOW, OPENGL_STEREO_SIDE, OPENGL_STEREO_STENCIL_CHECKERBOARD, OPENGL_STEREO_STENCIL_COLUMNS, OPENGL_STEREO_STENCIL_ROWS, glxdata::rootWindowID, DisplayDevice::screenY, DisplayDevice::set_screen_pos, glxdata::windowID, DisplayDevice::xOrig, DisplayDevice::xSize, DisplayDevice::yOrig, and DisplayDevice::ySize. Referenced by init, read_event, and vmdWindowProc. |
|
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 1183 of file OpenGLDisplayDevice.C. References glxdata::cursor, glxdata::dpy, glxsrv, n, DisplayDevice::NORMAL_CURSOR, DisplayDevice::PICK_CURSOR, DisplayDevice::SCALE_CURSOR, DisplayDevice::TRANS_CURSOR, DisplayDevice::WAIT_CURSOR, and glxdata::windowID. Referenced by vmdWindowProc. |
|
Reimplemented from OpenGLRenderer. Definition at line 1580 of file OpenGLDisplayDevice.C. References glxdata::dpy, glxsrv, and glxdata::windowID. |
|
Reimplemented from DisplayDevice. Definition at line 1137 of file OpenGLDisplayDevice.C. References DisplayDevice::ALT, DisplayDevice::CONTROL, glxdata::dpy, glxsrv, DisplayDevice::SHIFT, and glxdata::windowID. |
|
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 1162 of file OpenGLDisplayDevice.C. References spaceballevent::buttons, spaceballevent::event, glxsrv, NULL, spaceballevent::rx, spaceballevent::ry, spaceballevent::rz, glxdata::sball, glxdata::sballevent, spaceballevent::tx, spaceballevent::ty, spaceballevent::tz, and glxdata::xinp. |
|
finish up after drawing.
Reimplemented from DisplayDevice. Definition at line 1546 of file OpenGLDisplayDevice.C. References VideoStream::check_event, glxdata::dpy, glxsrv, NULL, readpixels_rgba4u, VideoStream::srv_connected, VMDApp::uivs, VideoStream::video_frame_pending, DisplayDevice::vmdapp, and glxdata::windowID. Referenced by drawpixels_rgba4u, and init. |
|
Reimplemented from DisplayDevice. Definition at line 1108 of file OpenGLDisplayDevice.C. References glxdata::dpy, glxsrv, and glxdata::windowID. |
|
absolute position of cursor from lower-left corner.
Reimplemented from DisplayDevice. Definition at line 1122 of file OpenGLDisplayDevice.C. References glxdata::dpy, glxsrv, DisplayDevice::screenY, and glxdata::windowID. |
|
Definition at line 154 of file OpenGLDisplayDevice.h. Referenced by do_reposition_window, do_resize_window, init, open_window, OpenGLDisplayDevice, prepare3D, queue_events, read_event, reshape, set_cursor, set_window_title, shift_state, spaceball, update, x, y, and ~OpenGLDisplayDevice. |
|
Definition at line 159 of file OpenGLDisplayDevice.h. Referenced by init, open_window, and OpenGLDisplayDevice. |