Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

OpenGLPbufferDisplayDevice Class Reference

Subclass of OpenGLRenderer, this object has routines used by all the different display devices that are OpenGL-specific. Will render drawing commands into a single X window. More...

#include <OpenGLPbufferDisplayDevice.h>

Inheritance diagram for OpenGLPbufferDisplayDevice:

OpenGLRenderer DisplayDevice List of all members.

Public Methods

 OpenGLPbufferDisplayDevice ()
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 ~OpenGLPbufferDisplayDevice (void)
virtual int supports_gui ()
 Does this display device support GUI's? The default stub display does not. More...

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 &retdev, long &retval)
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...


Protected Methods

virtual void do_resize_window (int, int)
virtual void do_reposition_window (int, int)

Protected Attributes

int have_window

Detailed Description

Subclass of OpenGLRenderer, this object has routines used by all the different display devices that are OpenGL-specific. Will render drawing commands into a single X window.

Definition at line 86 of file OpenGLPbufferDisplayDevice.h.


Constructor & Destructor Documentation

OpenGLPbufferDisplayDevice::OpenGLPbufferDisplayDevice  
 

Definition at line 515 of file OpenGLPbufferDisplayDevice.C.

References DisplayDevice::cacheModes, DisplayDevice::cacheNames, glCacheNameStr, glRenderNameStr, glStereoNameStr, have_window, NULL, OPENGL_CACHE_MODES, OPENGL_RENDER_MODES, OPENGL_STEREO_MODES, DisplayDevice::renderModes, DisplayDevice::renderNames, DisplayDevice::screenX, DisplayDevice::screenY, DisplayDevice::stereoModes, and DisplayDevice::stereoNames.

OpenGLPbufferDisplayDevice::~OpenGLPbufferDisplayDevice void    [virtual]
 

Definition at line 604 of file OpenGLPbufferDisplayDevice.C.

References OpenGLRenderer::free_opengl_ctx.


Member Function Documentation

virtual void OpenGLPbufferDisplayDevice::do_reposition_window int   ,
int   
[inline, protected, virtual]
 

Reimplemented from DisplayDevice.

Definition at line 112 of file OpenGLPbufferDisplayDevice.h.

void OpenGLPbufferDisplayDevice::do_resize_window int   ,
int   
[protected, virtual]
 

Do device-specific resizing or positioning of window

Reimplemented from DisplayDevice.

Definition at line 994 of file OpenGLPbufferDisplayDevice.C.

References DisplayDevice::_needRedraw, reshape, DisplayDevice::xSize, and DisplayDevice::ySize.

int OpenGLPbufferDisplayDevice::init int    argc,
char **    argv,
VMDApp   app,
int *    size,
int *    loc = NULL
[virtual]
 

do actual window construction here. Return true if the window was successfully created; false if not.

Reimplemented from DisplayDevice.

Definition at line 541 of file OpenGLPbufferDisplayDevice.C.

References OpenGLRenderer::aa_on, DisplayDevice::aaAvailable, OpenGLRenderer::clear, OpenGLRenderer::cueing_on, DisplayDevice::cueingAvailable, OpenGLRenderer::culling_off, DisplayDevice::cullingAvailable, OpenGLRenderer::ext, OpenGLExtensions::hasmultisample, have_window, DisplayDevice::lineStyle, DisplayDevice::lineWidth, DisplayDevice::name, OpenGLRenderer::normal, reshape, OpenGLRenderer::set_line_style, OpenGLRenderer::set_line_width, OpenGLRenderer::set_sphere_mode, OpenGLRenderer::set_sphere_res, size, DisplayDevice::sphereMode, DisplayDevice::sphereRes, update, and DisplayDevice::vmdapp.

virtual void OpenGLPbufferDisplayDevice::queue_events void    [inline, virtual]
 

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 155 of file OpenGLPbufferDisplayDevice.h.

virtual int OpenGLPbufferDisplayDevice::read_event long &    retdev,
long &    retval
[inline, virtual]
 

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 159 of file OpenGLPbufferDisplayDevice.h.

References DisplayDevice::WIN_NOEVENT.

unsigned char * OpenGLPbufferDisplayDevice::readpixels_rgb3u int &    x,
int &    y
[virtual]
 

virtual routine for capturing the screen to a packed RGB array.

Reimplemented from DisplayDevice.

Definition at line 1041 of file OpenGLPbufferDisplayDevice.C.

References NULL, DisplayDevice::xSize, and DisplayDevice::ySize.

unsigned char * OpenGLPbufferDisplayDevice::readpixels_rgba4u int &    x,
int &    y
[virtual]
 

virtual routine for capturing the screen to a packed RGBA array.

Reimplemented from DisplayDevice.

Definition at line 1059 of file OpenGLPbufferDisplayDevice.C.

References NULL, DisplayDevice::xSize, and DisplayDevice::ySize.

Referenced by update.

void OpenGLPbufferDisplayDevice::reshape void    [virtual]
 

refresh device after change.

Reimplemented from DisplayDevice.

Definition at line 1017 of file OpenGLPbufferDisplayDevice.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::set_screen_pos, DisplayDevice::xSize, and DisplayDevice::ySize.

Referenced by do_resize_window, and init.

virtual void OpenGLPbufferDisplayDevice::set_cursor int    [inline, virtual]
 

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 146 of file OpenGLPbufferDisplayDevice.h.

virtual int OpenGLPbufferDisplayDevice::shift_state void    [inline, virtual]
 

Reimplemented from DisplayDevice.

Definition at line 137 of file OpenGLPbufferDisplayDevice.h.

virtual int OpenGLPbufferDisplayDevice::spaceball int *   ,
int *   ,
int *   ,
int *   ,
int *   ,
int *   ,
int *   
[inline, virtual]
 

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 141 of file OpenGLPbufferDisplayDevice.h.

virtual int OpenGLPbufferDisplayDevice::supports_gui   [inline, virtual]
 

Does this display device support GUI's? The default stub display does not.

Reimplemented from OpenGLRenderer.

Definition at line 127 of file OpenGLPbufferDisplayDevice.h.

void OpenGLPbufferDisplayDevice::update int    do_update = TRUE [virtual]
 

finish up after drawing.

Reimplemented from DisplayDevice.

Definition at line 1079 of file OpenGLPbufferDisplayDevice.C.

References VideoStream::check_event, NULL, readpixels_rgba4u, VideoStream::srv_connected, VMDApp::uivs, VideoStream::video_frame_pending, and DisplayDevice::vmdapp.

Referenced by init.

virtual int OpenGLPbufferDisplayDevice::x void    [inline, virtual]
 

Reimplemented from DisplayDevice.

Definition at line 133 of file OpenGLPbufferDisplayDevice.h.

virtual int OpenGLPbufferDisplayDevice::y void    [inline, virtual]
 

absolute position of cursor from lower-left corner.

Reimplemented from DisplayDevice.

Definition at line 134 of file OpenGLPbufferDisplayDevice.h.


Member Data Documentation

int OpenGLPbufferDisplayDevice::have_window [protected]
 

Definition at line 101 of file OpenGLPbufferDisplayDevice.h.

Referenced by init, and OpenGLPbufferDisplayDevice.


The documentation for this class was generated from the following files:
Generated on Sun Dec 8 02:46:24 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002