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

FltkOpenGLDisplayDevice Class Reference

OpenGLRenderer subclass, displays to an FLTK window. More...

#include <FltkOpenGLDisplayDevice.h>

Inheritance diagram for FltkOpenGLDisplayDevice:

OpenGLRenderer DisplayDevice List of all members.

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

Detailed Description

OpenGLRenderer subclass, displays to an FLTK window.

Definition at line 33 of file FltkOpenGLDisplayDevice.h.


Constructor & Destructor Documentation

FltkOpenGLDisplayDevice::FltkOpenGLDisplayDevice int   ,
char **   ,
VMDApp  ,
int *    size = NULL,
int *    loc = NULL
 

Definition at line 218 of file FltkOpenGLDisplayDevice.C.

References OpenGLRenderer::aa_on, DisplayDevice::aaAvailable, DisplayDevice::cacheModes, DisplayDevice::cacheNames, OpenGLRenderer::clear, OpenGLRenderer::cueing_on, DisplayDevice::cueingAvailable, OpenGLRenderer::culling_off, DisplayDevice::cullingAvailable, OpenGLRenderer::ext, glCacheNameStr, glRenderNameStr, glStereoNameStr, OpenGLExtensions::hasmultisample, OpenGLExtensions::hasstereo, DisplayDevice::lineStyle, DisplayDevice::lineWidth, DisplayDevice::name, OpenGLRenderer::normal, NULL, OPENGL_CACHE_MODES, OPENGL_RENDER_MODES, OPENGL_STEREO_MODES, DisplayDevice::renderModes, DisplayDevice::renderNames, reshape, DisplayDevice::screenX, DisplayDevice::screenY, OpenGLRenderer::set_line_style, OpenGLRenderer::set_line_width, OpenGLRenderer::set_sphere_mode, OpenGLRenderer::set_sphere_res, OpenGLRenderer::setup_initial_opengl_state, size, DisplayDevice::sphereMode, DisplayDevice::sphereRes, OpenGLExtensions::stereodrawforced, DisplayDevice::stereoModes, DisplayDevice::stereoNames, update, and DisplayDevice::vmdapp.

FltkOpenGLDisplayDevice::~FltkOpenGLDisplayDevice void    [virtual]
 

Definition at line 337 of file FltkOpenGLDisplayDevice.C.

References OpenGLRenderer::free_opengl_ctx.


Member Function Documentation

void FltkOpenGLDisplayDevice::do_reposition_window int    xpos,
int    ypos
[virtual]
 

Reimplemented from DisplayDevice.

Definition at line 609 of file FltkOpenGLDisplayDevice.C.

void FltkOpenGLDisplayDevice::do_resize_window int   ,
int   
[virtual]
 

Do device-specific resizing or positioning of window

Reimplemented from DisplayDevice.

Definition at line 595 of file FltkOpenGLDisplayDevice.C.

int FltkOpenGLDisplayDevice::read_event long &   ,
long &   
[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 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.

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

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.

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

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.

virtual void FltkOpenGLDisplayDevice::rel_screen_pos float &    x,
float &    y
[inline, virtual]
 

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.

void FltkOpenGLDisplayDevice::reshape void    [virtual]
 

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.

void FltkOpenGLDisplayDevice::set_cursor int    [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 418 of file FltkOpenGLDisplayDevice.C.

References n, DisplayDevice::NORMAL_CURSOR, DisplayDevice::PICK_CURSOR, DisplayDevice::SCALE_CURSOR, DisplayDevice::TRANS_CURSOR, and DisplayDevice::WAIT_CURSOR.

int FltkOpenGLDisplayDevice::shift_state void    [virtual]
 

Reimplemented from DisplayDevice.

Definition at line 394 of file FltkOpenGLDisplayDevice.C.

References DisplayDevice::ALT, DisplayDevice::CONTROL, and DisplayDevice::SHIFT.

int FltkOpenGLDisplayDevice::spaceball int *    rx,
int *    ry,
int *    rz,
int *    tx,
int *    ty,
int *    tz,
int *    buttons
[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 409 of file FltkOpenGLDisplayDevice.C.

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

finish up after drawing.

Reimplemented from DisplayDevice.

Definition at line 588 of file FltkOpenGLDisplayDevice.C.

Referenced by FltkOpenGLDisplayDevice.

int FltkOpenGLDisplayDevice::x void    [virtual]
 

Reimplemented from DisplayDevice.

Definition at line 349 of file FltkOpenGLDisplayDevice.C.

References x, and y.

Referenced by readpixels_rgb3u, readpixels_rgba4u, rel_screen_pos, x, and y.

int FltkOpenGLDisplayDevice::y void    [virtual]
 

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.


Member Data Documentation

int FltkOpenGLDisplayDevice::lastbtn
 

Definition at line 52 of file FltkOpenGLDisplayDevice.h.

Referenced by myglwindow::handle, and read_event.

int FltkOpenGLDisplayDevice::lastevent
 

Definition at line 50 of file FltkOpenGLDisplayDevice.h.

Referenced by myglwindow::handle, and read_event.

int FltkOpenGLDisplayDevice::lastkeycode
 

Definition at line 51 of file FltkOpenGLDisplayDevice.h.

Referenced by myglwindow::handle, and read_event.

int FltkOpenGLDisplayDevice::lastzdelta
 

Definition at line 53 of file FltkOpenGLDisplayDevice.h.

Referenced by myglwindow::handle, and read_event.


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