#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 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... | |
Public Attributes | |
| VMDApp * | vmdapp |
| 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 140 of file OpenGLDisplayDevice.h.
|
|
|
Definition at line 740 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 957 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 954 of file OpenGLDisplayDevice.C. References glxdata::dpy, glxsrv, and glxdata::windowID. |
|
||||||||||||||||||||||||
|
do actual window construction here. Return true if the window was successfully created; false if not.
Reimplemented from DisplayDevice. Definition at line 698 of file OpenGLDisplayDevice.C. References OpenGLRenderer::aa_on, DisplayDevice::aaAvailable, OpenGLRenderer::clear, OpenGLRenderer::cueing_off, DisplayDevice::cueingAvailable, DisplayDevice::cullingAvailable, DisplayDevice::cullingEnabled, OpenGLRenderer::ext, glxsrv, OpenGLExtensions::hasmultisample, have_window, DisplayDevice::lineStyle, DisplayDevice::lineWidth, DisplayDevice::name, OpenGLRenderer::normal, open_window, reshape, OpenGLRenderer::set_line_style, OpenGLRenderer::set_line_width, OpenGLRenderer::set_sphere_mode, OpenGLRenderer::set_sphere_res, DisplayDevice::sphereMode, DisplayDevice::sphereRes, update, vmdapp, 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 1066 of file OpenGLDisplayDevice.C. References glxdata::dpy, glxsrv, and glxdata::windowID. |
|
||||||||||||
|
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 1077 of file OpenGLDisplayDevice.C. References DisplayDevice::_needRedraw, glxdata::dpy, glxsrv, glxdata::havefocus, NULL, reshape, glxdata::sball, glxdata::sballevent, spaceball_clear_event, spaceball_decode_event, DisplayDevice::WIN_KEYBD, DisplayDevice::WIN_LEFT, DisplayDevice::WIN_MIDDLE, DisplayDevice::WIN_NOEVENT, DisplayDevice::WIN_RIGHT, DisplayDevice::WIN_WHEELDOWN, DisplayDevice::WIN_WHEELUP, glxdata::xinp, and xinput_decode_event. |
|
||||||||||||
|
virtual routine for capturing the screen to a packed RGB array.
Reimplemented from DisplayDevice. Definition at line 1243 of file OpenGLDisplayDevice.C. References glxdata::dpy, OpenGLRenderer::ext, glxsrv, OpenGLExtensions::hasglreadvideopixelssun, NULL, glxdata::windowID, DisplayDevice::xSize, and DisplayDevice::ySize. |
|
|
refresh device after change.
Reimplemented from DisplayDevice. Definition at line 1193 of file OpenGLDisplayDevice.C. References glxdata::dpy, OpenGLRenderer::enable_stencil_stereo, glxsrv, OPENGL_STEREO_ABOVEBELOW, OPENGL_STEREO_CROSSED, OPENGL_STEREO_SIDE, OPENGL_STEREO_STENCIL, 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 1043 of file OpenGLDisplayDevice.C. References glxdata::cursor, glxdata::dpy, glxsrv, DisplayDevice::NORMAL_CURSOR, DisplayDevice::PICK_CURSOR, DisplayDevice::SCALE_CURSOR, DisplayDevice::TRANS_CURSOR, DisplayDevice::WAIT_CURSOR, and glxdata::windowID. Referenced by vmdWindowProc. |
|
|
Reimplemented from DisplayDevice. Definition at line 997 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 1022 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 1309 of file OpenGLDisplayDevice.C. References glxdata::dpy, glxsrv, and glxdata::windowID. Referenced by init. |
|
|
Reimplemented from DisplayDevice. Definition at line 968 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 982 of file OpenGLDisplayDevice.C. References glxdata::dpy, glxsrv, DisplayDevice::screenY, and glxdata::windowID. |
|
|
Definition at line 150 of file OpenGLDisplayDevice.h. Referenced by do_reposition_window, do_resize_window, init, open_window, OpenGLDisplayDevice, queue_events, read_event, readpixels, reshape, set_cursor, shift_state, spaceball, update, x, y, and ~OpenGLDisplayDevice. |
|
|
Definition at line 156 of file OpenGLDisplayDevice.h. Referenced by init, open_window, and OpenGLDisplayDevice. |
|
|
Definition at line 142 of file OpenGLDisplayDevice.h. Referenced by init, OpenGLDisplayDevice, and vmdWindowProc. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002