#include <DisplayDevice.h>
Inheritance diagram for DisplayDevice:
Public Types | |
enum | DisplayEye { NOSTEREO, LEFTEYE, RIGHTEYE } |
enum for left or right eye. More... | |
enum | Buttons { B_LEFT, B_MIDDLE, B_RIGHT, B2_LEFT, B2_MIDDLE, B2_RIGHT, B_F1, B_F2, B_F3, B_F4, B_F5, B_F6, B_F7, B_F8, B_F9, B_F10, B_F11, B_F12, B_ESC, TOTAL_BUTTONS } |
enum for the mouse buttons, function keys, and special meta keys. More... | |
enum | EventCodes { WIN_REDRAW, WIN_LEFT, WIN_MIDDLE, WIN_RIGHT, WIN_WHEELUP, WIN_WHEELDOWN, WIN_MOUSEX, WIN_MOUSEY, WIN_KBD, WIN_KBD_ESCAPE, WIN_KBD_UP, WIN_KBD_DOWN, WIN_KBD_LEFT, WIN_KBD_RIGHT, WIN_KBD_PAGE_UP, WIN_KBD_PAGE_DOWN, WIN_KBD_HOME, WIN_KBD_END, WIN_KBD_INSERT, WIN_KBD_DELETE, WIN_KBD_F1, WIN_KBD_F2, WIN_KBD_F3, WIN_KBD_F4, WIN_KBD_F5, WIN_KBD_F6, WIN_KBD_F7, WIN_KBD_F8, WIN_KBD_F9, WIN_KBD_F10, WIN_KBD_F11, WIN_KBD_F12, WIN_NOEVENT } |
enum for window events. More... | |
enum | CursorCodes { NORMAL_CURSOR, TRANS_CURSOR, SCALE_CURSOR, PICK_CURSOR, WAIT_CURSOR } |
enum for cursor types. More... | |
enum | Projection { PERSPECTIVE, ORTHOGRAPHIC, NUM_PROJECTIONS } |
enum for the possible projection modes. More... | |
enum | { SHIFT = 1, CONTROL = 2, ALT = 4, AUX = 8 } |
absolute position of cursor from lower-left corner Mouse and keyboard shift state, joystick/sball aux key/button state. More... | |
Public Methods | |
int | needRedraw (void) const |
display state has changed, requiring a redraw. More... | |
virtual int | get_num_processes () |
return the number of display processes. More... | |
virtual int | is_renderer_process () |
Projection | projection () const |
virtual int | do_define_light (int, float *, float *) |
virtual routines to deal with light sources, return success/failure. More... | |
virtual int | do_activate_light (int, int) |
void | use_colors (const float *c) |
Use this for colors. More... | |
DisplayDevice (const char *) | |
virtual | ~DisplayDevice (void) |
DisplayDevice & | operator= (DisplayDevice &) |
copies over all relevant properties from one DisplayDevice to another. More... | |
virtual int | init (int argc, char **argv, VMDApp *app, int *size, int *loc) |
do actual window construction here. Return true if the window was successfully created; false if not. More... | |
virtual int | supports_gui () |
Does this display device support GUI's? The default stub display does not. More... | |
virtual void | queue_events (void) |
virtual int | read_event (long &, long &) |
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) |
float | distance_to_screen (void) |
return/set the distance from the origin to the screen. More... | |
void | distance_to_screen (float zd) |
float | screen_height (void) |
return the height of the screen. More... | |
void | screen_height (float vs) |
void | set_screen_pos (float vsize, float zdist, float asp) |
a) specify aspect ratio. More... | |
void | set_screen_pos (float vs, float zd) |
b) have device provide aspect ratio. More... | |
void | set_screen_pos (float asp) |
c) just specify aspect ratio. More... | |
void | set_screen_pos (void) |
d) do not specify anything. More... | |
void | resize_window (int w, int h) |
Resize the window. More... | |
void | reposition_window (int xpos, int ypos) |
Reposition the window. More... | |
virtual void | set_stereo_mode (int=0) |
change to a different stereo mode (0 means 'off'). More... | |
int | stereo_mode (void) |
current stereo mode ... 0 means non-stereo, others device-specific. More... | |
void | set_stereo_swap (int onoff) |
swap left/right eyes when rendering in stereo (0 means not swapped). More... | |
int | stereo_swap (void) |
current stereo swap mode ... 0 means not swapped. More... | |
virtual int | forced_stereo_draws (void) |
whether we must force mono draws in stereo or not. More... | |
int | num_stereo_modes (void) |
number of different stereo modes supported ... 0 means no stereo. More... | |
const char * | stereo_name (int n) |
return stereo name string, if possible. More... | |
virtual void | set_cache_mode (int=0) |
change to a different caching mode (0 means 'off'). More... | |
int | cache_mode (void) |
return current caching mode. More... | |
int | num_cache_modes (void) |
number of different caching modes supported ... 0 means 'off'. More... | |
const char * | cache_name (int n) |
return caching name string, if possible. More... | |
virtual void | set_render_mode (int=0) |
change to a different rendering mode (0 means 'normal'). More... | |
int | render_mode (void) |
return current rendering mode. More... | |
int | num_render_modes (void) |
number of different rendering modes supported ... 0 means 'normal'. More... | |
const char * | render_name (int n) |
return rendering name string, if possible. More... | |
int | set_eye_defaults (void) |
set default eye position, orientation information. More... | |
int | set_eye_pos (float *pos) |
set eye position. More... | |
int | get_eye_pos (float *pos) |
get eye position. More... | |
int | set_eye_dir (float *dir) |
set eye direction. More... | |
int | get_eye_dir (float *dir) |
get eye direction. More... | |
int | set_eye_up (float *updir) |
set the eye up direction. More... | |
int | get_eye_up (float *updir) |
query the eye up direction. More... | |
float | eye_dist (void) const |
return focal length. More... | |
int | set_eye_dist (float flen) |
change focal length; this means adjusting eyeDir and updating eyeDist accordingly (eyeDist is just norm(eyeDir)). More... | |
float | eyesep (void) const |
return eye separation. More... | |
float | set_eyesep (float newsep) |
set eye separation. More... | |
void | right_eye_dir (float &x, float &y, float &z) const |
find the direction to the right eye position. More... | |
int | num_projections () const |
get/change the viewing matrix. More... | |
const char * | projection_name (int i) const |
const char * | get_projection () const |
int | set_projection (const char *proj) |
virtual void | abs_screen_loc_3D (float *, float *) |
return normalized absolut 3D screen coordinates, given 3D world coordinates. (i.e the second parameter will return a 3D coordinate, with a normalized z). More... | |
virtual void | abs_screen_loc_2D (float *, float *) |
return absolute 2D screen coordinates, given 2D world coordinates. More... | |
virtual void | rel_screen_pos (float &x, float &y) |
convert 2D absolute screen coords into relative coords, 0 ... 1. More... | |
void | abs_screen_pos (float &x, float &y) |
convert 2D relative screen coords into absolute coords. More... | |
virtual void | find_3D_from_2D (const float *, const float *, float *) |
virtual void | loadmatrix (const Matrix4 &) |
replace transformation matrix. More... | |
virtual void | multmatrix (const Matrix4 &) |
multiply transformation matrix. More... | |
void | set_background_mode (int newmode) |
set display background type. More... | |
int | background_mode (void) |
return active background mode. More... | |
virtual void | set_background (const float *) |
set main background color. More... | |
virtual void | set_backgradient (const float *, const float *) |
set gradient colors. More... | |
virtual int | prepare3D (int=TRUE) |
ready to draw 3D. More... | |
virtual int | prepareOpaque (void) |
draw opaque objects. More... | |
virtual int | prepareTrans (void) |
draw transparent objects. More... | |
virtual void | clear (void) |
erase the device. More... | |
virtual void | left (void) |
ready to draw left eye. More... | |
virtual void | right (void) |
ready to draw right eye. More... | |
virtual void | normal (void) |
ready to draw non-stereo. More... | |
virtual void | update (int=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 | render (const VMDDisplayList *) |
process list of draw commands. More... | |
virtual void | render_done () |
virtual int | pick (int, const float *, const VMDDisplayList *, float &, int *, float window_size) |
float | aspect (void) |
routines to deal with the clipping planes and eye position. More... | |
float | near_clip (void) const |
routines to deal with the clipping planes and eye position. More... | |
float | far_clip (void) const |
routines to deal with the clipping planes and eye position. More... | |
float | clip_width (void) const |
routines to deal with the clipping planes and eye position. More... | |
float | addto_near_clip (float ac) |
routines to deal with the clipping planes and eye position. More... | |
float | addto_far_clip (float ac) |
routines to deal with the clipping planes and eye position. More... | |
float | set_near_clip (float nc) |
routines to deal with the clipping planes and eye position. More... | |
float | set_far_clip (float fc) |
routines to deal with the clipping planes and eye position. More... | |
virtual void | cueing_on (void) |
routines to deal with depth cueing / fog. More... | |
virtual void | cueing_off (void) |
routines to deal with depth cueing / fog. More... | |
int | cueing_available (void) |
routines to deal with depth cueing / fog. More... | |
int | cueing_enabled (void) |
routines to deal with depth cueing / fog. More... | |
const char * | get_cue_mode () const |
routines to deal with depth cueing / fog. More... | |
int | num_cue_modes () const |
routines to deal with depth cueing / fog. More... | |
const char * | cue_mode_name (int i) const |
routines to deal with depth cueing / fog. More... | |
int | set_cue_mode (const char *mode) |
routines to deal with depth cueing / fog. More... | |
float | get_cue_start () const |
routines to deal with depth cueing / fog. More... | |
float | set_cue_start (float s) |
routines to deal with depth cueing / fog. More... | |
float | get_cue_end () const |
routines to deal with depth cueing / fog. More... | |
float | set_cue_end (float e) |
routines to deal with depth cueing / fog. More... | |
float | get_cue_density () const |
routines to deal with depth cueing / fog. More... | |
int | set_cue_density (float d) |
routines to deal with depth cueing / fog. More... | |
virtual void | aa_on (void) |
function for antialiasing control. More... | |
virtual void | aa_off (void) |
function for antialiasing control. More... | |
int | aa_available (void) |
function for antialiasing control. More... | |
int | aa_enabled (void) |
function for antialiasing control. More... | |
virtual void | culling_on (void) |
virtual function for controlling backface culling. More... | |
virtual void | culling_off (void) |
virtual function for controlling backface culling. More... | |
int | culling_available (void) |
virtual function for controlling backface culling. More... | |
int | culling_enabled (void) |
virtual function for controlling backface culling. More... | |
int | set_shadow_mode (int onoff) |
routines for controlling shadow rendering. More... | |
int | shadows_enabled (void) |
routines for controlling shadow rendering. More... | |
int | set_ao_mode (int onoff) |
routines for controlling ambient occlusion rendering. More... | |
int | ao_enabled (void) |
routines for controlling ambient occlusion rendering. More... | |
float | get_ao_ambient () const |
routines for controlling ambient occlusion rendering. More... | |
int | set_ao_ambient (float a) |
routines for controlling ambient occlusion rendering. More... | |
float | get_ao_direct () const |
routines for controlling ambient occlusion rendering. More... | |
int | set_ao_direct (float d) |
routines for controlling ambient occlusion rendering. More... | |
int | set_dof_mode (int onoff) |
routines for controlling depth of field rendering. More... | |
int | dof_enabled (void) |
routines for controlling depth of field rendering. More... | |
float | get_dof_fnumber () const |
routines for controlling depth of field rendering. More... | |
int | set_dof_fnumber (float f) |
routines for controlling depth of field rendering. More... | |
float | get_dof_focal_dist () const |
routines for controlling depth of field rendering. More... | |
int | set_dof_focal_dist (float d) |
routines for controlling depth of field rendering. More... | |
Public Attributes | |
VMDApp * | vmdapp |
VMDApp object ptr, for drag-and-drop handlers, and to allow subclasses to access to GPU management APIs, e.g. to force-free large memory buffers in GPU global memory prior to launching GPU ray tracing, etc. More... | |
char * | name |
name of this display device. More... | |
int | _needRedraw |
XXX public so FltkOpenGLDisplayDevice can access it. More... | |
int | num_display_processes |
number of CAVE/FreeVR display processes. More... | |
int | renderer_process |
true of we're a rendering process. More... | |
long | xOrig |
position and size of device, in 'pixels'. More... | |
long | yOrig |
position and size of device, in 'pixels'. More... | |
long | xSize |
position and size of device, in 'pixels'. More... | |
long | ySize |
position and size of device, in 'pixels'. More... | |
Protected Types | |
enum | CueMode { CUE_LINEAR, CUE_EXP, CUE_EXP2, NUM_CUE_MODES } |
Depth cueing mode enumerations. More... | |
enum | ShadowMode { SHADOWS_OFF, SHADOWS_ON } |
Shadow rendering mode enumerations. More... | |
Protected Methods | |
virtual void | do_use_colors () |
void | calc_frustum (void) |
void | calc_eyedir (void) |
virtual void | do_resize_window (int w, int h) |
virtual void | do_reposition_window (int xpos, int ypos) |
void | find_pbc_images (const VMDDisplayList *, ResizeArray< Matrix4 > &) |
Find transformations corresponding to the periodic boundary conditions specified in the given display list. Append these transformations to the given array. More... | |
void | find_pbc_cells (const VMDDisplayList *, ResizeArray< int > &) |
Find the periodic cells that are turned on by the display list. Return in the ResizeArray with 3 values per cell, in the form na nb nc, where nx is the number of times to apply transform x to get to the cell. More... | |
void | find_instance_images (const VMDDisplayList *, ResizeArray< Matrix4 > &) |
Find transformations corresponding to the list of active molecule instances specified in the given display list. Append these transformations to the given array. More... | |
Protected Attributes | |
int | my_depth_sort |
depth-sorting flag for tranparent objects? default is FALSE. More... | |
const float * | colorData |
cached pointer to color data; must be in shared memory for Cave-like. More... | |
CueMode | cueMode |
fog/cueing mode. More... | |
float | cueStart |
float | cueEnd |
fog start/end, used for linear fog/cueing. More... | |
float | cueDensity |
fog density, used for exp/exp2 fog/cueing. More... | |
float | aoAmbient |
AO ambient lighting factor. More... | |
float | aoDirect |
AO direct lighting rescaling factor. More... | |
float | dofFNumber |
DoF aperture. More... | |
float | dofFocalDist |
DoF focal plane distance. More... | |
Stack< Matrix4 > | transMat |
current transformation matrix for the display (NOT the projection matrix). More... | |
int | backgroundmode |
0=normal, 1=gradient. More... | |
float | eyePos [3] |
current location of the viewer's eye. More... | |
DisplayEye | whichEye |
the eye we are currently drawing to. More... | |
float | nearClip |
float | farClip |
dist from eye to near and far clip plane. More... | |
float | vSize |
vertical size of 'screen'. More... | |
float | zDist |
distance to 'screen' relative to origin. More... | |
float | Aspect |
current window/image aspect ratio This is the width of the generated image (in pixels) divided by its height. NOT the aspect ratio of the pixels on the target display device. More... | |
int | inStereo |
current stereo mode (0 = non-stereo). More... | |
int | stereoSwap |
whether left/right eyes are swapped. More... | |
int | stereoModes |
total number of stereo modes (inc mono). More... | |
const char ** | stereoNames |
pointer to stereo mode names. More... | |
int | cacheMode |
current caching mode. More... | |
int | cacheModes |
total number of caching modes. More... | |
const char ** | cacheNames |
pointer to rendering mode names. More... | |
int | renderMode |
current rendering mode. More... | |
int | renderModes |
total number of rendering modes. More... | |
const char ** | renderNames |
pointer to rendering mode names. More... | |
float | eyeSep |
distance between eyes for stereo display. More... | |
float | eyeDist |
distance from eye to focal point. More... | |
float | eyeDir [3] |
direction viewer is looking. More... | |
float | upDir [3] |
direction which is 'up'. More... | |
float | eyeSepDir [3] |
vector from eye position to right eye magnitude is 1/2 eyeSep. More... | |
int | mouseX |
Mouse X position. More... | |
int | mouseY |
mouse Y position. More... | |
int | screenX |
total size of the screen, in pixels ... MUST BE SET BY DERIVED CLASS. More... | |
int | screenY |
total size of the screen, in pixels ... MUST BE SET BY DERIVED CLASS. More... | |
int | aaAvailable |
Capability and state flags for antialiasing, depth cueing, backface culling, shadows, ambient occlusion, and depth of field. More... | |
int | cueingAvailable |
Capability and state flags for antialiasing, depth cueing, backface culling, shadows, ambient occlusion, and depth of field. More... | |
int | cullingAvailable |
Capability and state flags for antialiasing, depth cueing, backface culling, shadows, ambient occlusion, and depth of field. More... | |
int | aaEnabled |
Capability and state flags for antialiasing, depth cueing, backface culling, shadows, ambient occlusion, and depth of field. More... | |
int | cueingEnabled |
Capability and state flags for antialiasing, depth cueing, backface culling, shadows, ambient occlusion, and depth of field. More... | |
int | cullingEnabled |
Capability and state flags for antialiasing, depth cueing, backface culling, shadows, ambient occlusion, and depth of field. More... | |
int | aoEnabled |
Capability and state flags for antialiasing, depth cueing, backface culling, shadows, ambient occlusion, and depth of field. More... | |
int | shadowEnabled |
Capability and state flags for antialiasing, depth cueing, backface culling, shadows, ambient occlusion, and depth of field. More... | |
int | dofEnabled |
Capability and state flags for antialiasing, depth cueing, backface culling, shadows, ambient occlusion, and depth of field. More... | |
int | aaPrevious |
Capability and state flags for antialiasing, depth cueing, backface culling, shadows, ambient occlusion, and depth of field. More... | |
int | lineStyle |
drawing characteristics ... line style, sphere resolution, etc. More... | |
int | lineWidth |
drawing characteristics ... line style, sphere resolution, etc. More... | |
int | sphereRes |
drawing characteristics ... line style, sphere resolution, etc. More... | |
int | sphereMode |
drawing characteristics ... line style, sphere resolution, etc. More... | |
int | cylinderRes |
drawing characteristics ... line style, sphere resolution, etc. More... | |
float | cpUp |
distances to near frustum base, which defines the view volume. More... | |
float | cpDown |
distances to near frustum base, which defines the view volume. More... | |
float | cpLeft |
distances to near frustum base, which defines the view volume. More... | |
float | cpRight |
distances to near frustum base, which defines the view volume. More... |
Definition at line 35 of file DisplayDevice.h.
|
absolute position of cursor from lower-left corner Mouse and keyboard shift state, joystick/sball aux key/button state.
Definition at line 296 of file DisplayDevice.h. |
|
enum for the mouse buttons, function keys, and special meta keys.
Definition at line 49 of file DisplayDevice.h. |
|
Depth cueing mode enumerations.
Definition at line 108 of file DisplayDevice.h. |
|
enum for cursor types.
Definition at line 75 of file DisplayDevice.h. |
|
enum for left or right eye.
Definition at line 46 of file DisplayDevice.h. Referenced by OpenGLRenderer::left, and OpenGLRenderer::right. |
|
enum for window events.
Definition at line 55 of file DisplayDevice.h. Referenced by Win32Joystick::check_event, VideoStream::check_event, Spaceball::check_event, Mobile::check_event, and UserKeyEvent::UserKeyEvent. |
|
enum for the possible projection modes.
Definition at line 126 of file DisplayDevice.h. Referenced by projection. |
|
Shadow rendering mode enumerations.
Definition at line 114 of file DisplayDevice.h. |
|
Definition at line 48 of file DisplayDevice.C. References _needRedraw, aaAvailable, aaEnabled, aaPrevious, aoAmbient, aoDirect, aoEnabled, backgroundmode, cacheMode, cacheModes, cacheNames, cacheNameStr, calc_eyedir, CUE_EXP2, cueDensity, cueEnd, cueingAvailable, cueingEnabled, cueMode, cueStart, cullingEnabled, cylinderRes, dofEnabled, dofFNumber, dofFocalDist, eyeDist, eyePos, eyeSep, farClip, inStereo, lineStyle, lineWidth, mouseX, mouseY, name, nearClip, NULL, num_display_processes, PERSPECTIVE, Stack< Matrix4 >::push, renderer_process, renderMode, renderModes, renderNames, renderNameStr, screenX, screenY, set_eye_dir, set_screen_pos, shadowEnabled, sphereMode, sphereRes, stereoModes, stereoNames, stereoNameStr, stereoSwap, stringdup, transMat, upDir, vec_scale, vmdapp, xOrig, xSize, yOrig, and ySize. |
|
Definition at line 136 of file DisplayDevice.C. References name, and set_stereo_mode. |
|
function for antialiasing control.
Definition at line 424 of file DisplayDevice.h. References aaAvailable. Referenced by VMDApp::display_set_aa, and MainFltkMenu::MainFltkMenu. |
|
function for antialiasing control.
Definition at line 425 of file DisplayDevice.h. References aaEnabled. Referenced by py_get, and text_cmd_display. |
|
function for antialiasing control.
Reimplemented in OpenGLRenderer. Definition at line 304 of file DisplayDevice.C. Referenced by VMDApp::display_set_aa. |
|
function for antialiasing control.
Reimplemented in OpenGLRenderer. Definition at line 303 of file DisplayDevice.C. Referenced by VMDApp::display_set_aa. |
|
return absolute 2D screen coordinates, given 2D world coordinates.
Reimplemented in OpenGLRenderer. Definition at line 315 of file DisplayDevice.C. |
|
return normalized absolut 3D screen coordinates, given 3D world coordinates. (i.e the second parameter will return a 3D coordinate, with a normalized z).
Reimplemented in OpenGLRenderer. Definition at line 309 of file DisplayDevice.C. Referenced by pick. |
|
convert 2D relative screen coords into absolute coords.
Definition at line 758 of file DisplayDevice.h. References x, xOrig, xSize, y, yOrig, and ySize. Referenced by pick. |
|
routines to deal with the clipping planes and eye position.
Definition at line 330 of file DisplayDevice.h. References farClip, and set_far_clip. Referenced by VMDApp::display_set_farclip. |
|
routines to deal with the clipping planes and eye position.
Definition at line 329 of file DisplayDevice.h. References nearClip, and set_near_clip. Referenced by VMDApp::display_set_nearclip. |
|
routines for controlling ambient occlusion rendering.
Definition at line 462 of file DisplayDevice.h. References aoEnabled. Referenced by OpenGLDisplayDevice::init, OpenGLRenderer::prepare3D, py_get, text_cmd_display, TachyonDisplayDevice::write_header, OSPRayDisplayDevice::write_header, OSPRay2DisplayDevice::write_header, OptiXDisplayDevice::write_header, LibTachyonDisplayDevice::write_header, and ANARIDisplayDevice::write_header. |
|
routines to deal with the clipping planes and eye position.
Definition at line 325 of file DisplayDevice.h. References Aspect. Referenced by FPS::prepare, Axes::prepare, FileRenderer::set_aspectratio, and set_screen_pos. |
|
return active background mode.
Definition at line 780 of file DisplayDevice.h. References backgroundmode. |
|
return current caching mode.
Definition at line 607 of file DisplayDevice.h. References cacheMode. Referenced by text_cmd_display. |
|
return caching name string, if possible.
Definition at line 613 of file DisplayDevice.h. References cacheModes, cacheNames, and n. Referenced by VMDApp::display_set_cachemode, MainFltkMenu::MainFltkMenu, and text_cmd_display. |
|
calculate eyeSepDir, based on up vector and look vector eyeSepDir = 1/2 * eyeSep * (lookdir x updir) / mag(lookdir x updir) Definition at line 190 of file DisplayDevice.C. References eyeDir, eyeSep, eyeSepDir, and upDir. Referenced by DisplayDevice, set_eye_dist, set_eye_up, and set_eyesep. |
|
calculate the position of the near frustum plane, based on curr values of Aspect, vSize, zDist, nearClip and eyePosition Definition at line 160 of file DisplayDevice.C. References Aspect, cpDown, cpLeft, cpRight, cpUp, eyePos, nearClip, vSize, and zDist. Referenced by distance_to_screen, screen_height, set_near_clip, and set_screen_pos. |
|
erase the device.
Reimplemented in OpenGLRenderer. Definition at line 366 of file DisplayDevice.C. |
|
routines to deal with the clipping planes and eye position.
Definition at line 328 of file DisplayDevice.h. |
|
routines to deal with depth cueing / fog.
Definition at line 375 of file DisplayDevice.h. References NULL, and NUM_CUE_MODES. |
|
routines to deal with depth cueing / fog.
Definition at line 370 of file DisplayDevice.h. References cueingAvailable. Referenced by VMDApp::display_set_depthcue, and MainFltkMenu::MainFltkMenu. |
|
routines to deal with depth cueing / fog.
Definition at line 371 of file DisplayDevice.h. References cueingEnabled. Referenced by py_get, and text_cmd_display. |
|
routines to deal with depth cueing / fog.
Reimplemented in OpenGLRenderer. Definition at line 363 of file DisplayDevice.h. References _needRedraw, cueingAvailable, and cueingEnabled. Referenced by VMDApp::display_set_depthcue. |
|
routines to deal with depth cueing / fog.
Reimplemented in OpenGLRenderer. Definition at line 355 of file DisplayDevice.h. References _needRedraw, cueingAvailable, and cueingEnabled. Referenced by VMDApp::display_set_depthcue. |
|
virtual function for controlling backface culling.
Definition at line 433 of file DisplayDevice.h. References cullingAvailable. Referenced by VMDApp::display_set_culling, and MainFltkMenu::MainFltkMenu. |
|
virtual function for controlling backface culling.
Definition at line 434 of file DisplayDevice.h. References cullingEnabled. Referenced by py_get, and text_cmd_display. |
|
virtual function for controlling backface culling.
Reimplemented in OpenGLRenderer. Definition at line 306 of file DisplayDevice.C. Referenced by VMDApp::display_set_culling. |
|
virtual function for controlling backface culling.
Reimplemented in OpenGLRenderer. Definition at line 305 of file DisplayDevice.C. Referenced by VMDApp::display_set_culling. |
|
Definition at line 514 of file DisplayDevice.h. References _needRedraw, calc_frustum, and zDist. |
|
return/set the distance from the origin to the screen.
Definition at line 513 of file DisplayDevice.h. References zDist. Referenced by VMDApp::display_get_screen_distance, VMDApp::display_set_screen_distance, py_get, and text_cmd_display. |
|
Reimplemented in FileRenderer. Definition at line 196 of file DisplayDevice.h. Referenced by Scene::draw. |
|
virtual routines to deal with light sources, return success/failure.
Reimplemented in FileRenderer. Definition at line 195 of file DisplayDevice.h. Referenced by Scene::draw. |
|
Reimplemented in FltkOpenGLDisplayDevice. Definition at line 228 of file DisplayDevice.h. Referenced by reposition_window. |
|
Do device-specific resizing or positioning of window Reimplemented in FltkOpenGLDisplayDevice. Definition at line 264 of file DisplayDevice.C. References set_screen_pos, xSize, and ySize. Referenced by resize_window. |
|
Reimplemented in FileRenderer. Definition at line 105 of file DisplayDevice.h. Referenced by use_colors. |
|
routines for controlling depth of field rendering.
Definition at line 490 of file DisplayDevice.h. References dofEnabled. Referenced by OpenGLDisplayDevice::init, OpenGLRenderer::prepare3D, py_get, text_cmd_display, POV3DisplayDevice::write_header, OSPRayDisplayDevice::write_header, OSPRay2DisplayDevice::write_header, OptiXDisplayDevice::write_header, LibTachyonDisplayDevice::write_header, and ANARIDisplayDevice::write_header. |
|
virtual routine for drawing the screen from a packed RGBA array.
Reimplemented in OpenGLDisplayDevice. Definition at line 805 of file DisplayDevice.h. Referenced by VideoStream::check_event. |
|
return focal length.
Definition at line 689 of file DisplayDevice.h. References eyeDist. Referenced by py_get, and text_cmd_display. |
|
return eye separation.
Definition at line 704 of file DisplayDevice.h. References eyeSep. Referenced by py_get, text_cmd_display, and RayShadeDisplayDevice::write_header. |
|
routines to deal with the clipping planes and eye position.
Definition at line 327 of file DisplayDevice.h. References farClip. Referenced by py_get, py_set, and text_cmd_display. |
|
Reimplemented in OpenGLRenderer. Definition at line 766 of file DisplayDevice.h. Referenced by PickModeForce::get_force, Stage::pick_move, and Axes::pick_move. |
|
Find transformations corresponding to the list of active molecule instances specified in the given display list. Append these transformations to the given array.
Definition at line 444 of file DisplayDevice.C. References ResizeArray::append, INSTANCE_NONE, INSTANCE_NOSELF, VMDDisplayList::instances, VMDDisplayList::instanceset, ResizeArray::num, and ResizeArray< Matrix4 >::num. Referenced by pick, PSDisplayDevice::render, and FileRenderer::render. |
|
Find the periodic cells that are turned on by the display list. Return in the ResizeArray with 3 values per cell, in the form na nb nc, where nx is the number of times to apply transform x to get to the cell.
Definition at line 417 of file DisplayDevice.C. References ResizeArray::append3, VMDDisplayList::npbc, VMDDisplayList::pbc, PBC_NONE, PBC_NOSELF, PBC_OPX, PBC_OPY, PBC_OPZ, PBC_X, PBC_Y, and PBC_Z. Referenced by find_pbc_images, and pick. |
|
Find transformations corresponding to the periodic boundary conditions specified in the given display list. Append these transformations to the given array.
Definition at line 394 of file DisplayDevice.C. References ResizeArray::append, find_pbc_cells, mat, Matrix4::multmatrix, ResizeArray::num, VMDDisplayList::pbc, PBC_NONE, VMDDisplayList::transX, VMDDisplayList::transXinv, VMDDisplayList::transY, VMDDisplayList::transYinv, VMDDisplayList::transZ, and VMDDisplayList::transZinv. Referenced by pick, PSDisplayDevice::render, and FileRenderer::render. |
|
whether we must force mono draws in stereo or not.
Reimplemented in OpenGLRenderer. Definition at line 586 of file DisplayDevice.h. Referenced by Scene::draw. |
|
routines for controlling ambient occlusion rendering.
Definition at line 464 of file DisplayDevice.h. References aoAmbient. Referenced by OpenGLDisplayDevice::init, OpenGLRenderer::prepare3D, py_get, text_cmd_display, TachyonDisplayDevice::write_header, OSPRayDisplayDevice::write_header, OSPRay2DisplayDevice::write_header, OptiXDisplayDevice::write_header, LibTachyonDisplayDevice::write_header, and ANARIDisplayDevice::write_header. |
|
routines for controlling ambient occlusion rendering.
Definition at line 471 of file DisplayDevice.h. References aoDirect. Referenced by OpenGLDisplayDevice::init, OpenGLRenderer::prepare3D, py_get, text_cmd_display, TachyonDisplayDevice::write_header, OSPRayDisplayDevice::write_header, OSPRay2DisplayDevice::write_header, OptiXDisplayDevice::write_header, LibTachyonDisplayDevice::write_header, and ANARIDisplayDevice::write_header. |
|
routines to deal with depth cueing / fog.
Definition at line 410 of file DisplayDevice.h. References cueDensity. Referenced by OpenGLDisplayDevice::init, OpenGLRenderer::prepare3D, text_cmd_display, POV3DisplayDevice::write_header, OSPRayDisplayDevice::write_header, OSPRay2DisplayDevice::write_header, OptiXDisplayDevice::write_header, and ANARIDisplayDevice::write_header. |
|
routines to deal with depth cueing / fog.
Definition at line 400 of file DisplayDevice.h. References cueEnd. Referenced by OpenGLDisplayDevice::init, OpenGLRenderer::prepare3D, text_cmd_display, OSPRayDisplayDevice::write_header, OSPRay2DisplayDevice::write_header, OptiXDisplayDevice::write_header, and ANARIDisplayDevice::write_header. |
|
routines to deal with depth cueing / fog.
Definition at line 373 of file DisplayDevice.h. References cueMode. Referenced by text_cmd_display. |
|
routines to deal with depth cueing / fog.
Definition at line 390 of file DisplayDevice.h. References cueStart. Referenced by OpenGLDisplayDevice::init, OpenGLRenderer::prepare3D, text_cmd_display, OSPRayDisplayDevice::write_header, OSPRay2DisplayDevice::write_header, OptiXDisplayDevice::write_header, and ANARIDisplayDevice::write_header. |
|
routines for controlling depth of field rendering.
Definition at line 492 of file DisplayDevice.h. References dofFNumber. Referenced by OpenGLDisplayDevice::init, OpenGLRenderer::prepare3D, py_get, text_cmd_display, POV3DisplayDevice::write_header, OSPRayDisplayDevice::write_header, OSPRay2DisplayDevice::write_header, OptiXDisplayDevice::write_header, LibTachyonDisplayDevice::write_header, and ANARIDisplayDevice::write_header. |
|
routines for controlling depth of field rendering.
Definition at line 499 of file DisplayDevice.h. References dofFocalDist. Referenced by OpenGLDisplayDevice::init, OpenGLRenderer::prepare3D, py_get, text_cmd_display, POV3DisplayDevice::write_header, OSPRayDisplayDevice::write_header, OSPRay2DisplayDevice::write_header, OptiXDisplayDevice::write_header, LibTachyonDisplayDevice::write_header, and ANARIDisplayDevice::write_header. |
|
get eye direction.
Definition at line 666 of file DisplayDevice.h. References eyeDir, and vec_copy. Referenced by text_cmd_display. |
|
get eye position.
Definition at line 651 of file DisplayDevice.h. References eyePos, and vec_copy. Referenced by text_cmd_display. |
|
query the eye up direction.
Definition at line 682 of file DisplayDevice.h. References upDir, and vec_copy. Referenced by text_cmd_display. |
|
return the number of display processes.
Definition at line 86 of file DisplayDevice.h. References num_display_processes. Referenced by VMDApp::VMDinit. |
|
Definition at line 727 of file DisplayDevice.h. Referenced by py_get, and text_cmd_display. |
|
do actual window construction here. Return true if the window was successfully created; false if not.
Reimplemented in OpenGLDisplayDevice. Definition at line 257 of file DisplayDevice.h. References NULL, resize_window, and size. Referenced by VMDApp::VMDinit. |
|
Definition at line 87 of file DisplayDevice.h. References renderer_process. Referenced by Scene::draw, FreeVRScene::draw, and CaveScene::draw. |
|
ready to draw left eye.
Reimplemented in OpenGLRenderer. Definition at line 367 of file DisplayDevice.C. References LEFTEYE, and whichEye. Referenced by Scene::draw, PickList::pick_check, PickList::pick_end, PickList::pick_move, PickList::pick_start, and OpenGLRenderer::set_persp. |
|
replace transformation matrix.
Reimplemented in OpenGLRenderer. Definition at line 352 of file DisplayDevice.C. References Stack< Matrix4 >::top, and transMat. |
|
multiply transformation matrix.
Reimplemented in FileRenderer. Definition at line 357 of file DisplayDevice.C. References Stack< Matrix4 >::top, and transMat. |
|
routines to deal with the clipping planes and eye position.
Definition at line 326 of file DisplayDevice.h. References nearClip. Referenced by py_get, py_set, and text_cmd_display. |
|
display state has changed, requiring a redraw.
Definition at line 79 of file DisplayDevice.h. References _needRedraw. Referenced by VMDApp::VMDupdate. |
|
ready to draw non-stereo.
Reimplemented in CaveDisplayDevice. Definition at line 373 of file DisplayDevice.C. References NOSTEREO, and whichEye. Referenced by Scene::draw, and OpenGLRenderer::set_persp. |
|
number of different caching modes supported ... 0 means 'off'.
Definition at line 610 of file DisplayDevice.h. References cacheModes. Referenced by VMDApp::display_set_cachemode, MainFltkMenu::MainFltkMenu, and text_cmd_display. |
|
routines to deal with depth cueing / fog.
Definition at line 374 of file DisplayDevice.h. References NUM_CUE_MODES. |
|
get/change the viewing matrix.
Definition at line 722 of file DisplayDevice.h. References NUM_PROJECTIONS. Referenced by text_cmd_display. |
|
number of different rendering modes supported ... 0 means 'normal'.
Definition at line 628 of file DisplayDevice.h. References renderModes. Referenced by VMDApp::display_set_rendermode, MainFltkMenu::MainFltkMenu, and text_cmd_display. |
|
number of different stereo modes supported ... 0 means no stereo.
Definition at line 589 of file DisplayDevice.h. References stereoModes. Referenced by VMDApp::display_set_stereo, MainFltkMenu::MainFltkMenu, py_stereomodes, and text_cmd_display. |
|
copies over all relevant properties from one DisplayDevice to another.
Definition at line 211 of file DisplayDevice.C. References aoAmbient, aoDirect, aoEnabled, Aspect, backgroundmode, Stack< Matrix4 >::clear, cpDown, cpLeft, cpRight, cpUp, cueDensity, cueEnd, cueingEnabled, cueMode, cueStart, dofEnabled, dofFNumber, dofFocalDist, eyeDir, eyeDist, eyePos, eyeSep, eyeSepDir, farClip, inStereo, lineStyle, lineWidth, my_projection, nearClip, Stack< Matrix4 >::push, shadowEnabled, transMat, upDir, vSize, whichEye, xOrig, xSize, yOrig, ySize, and zDist. |
|
|
ready to draw 3D.
Reimplemented in FileRenderer. Definition at line 365 of file DisplayDevice.C. Referenced by VideoStream::check_event, and Scene::draw. |
|
draw opaque objects.
Reimplemented in OpenGLRenderer. Definition at line 789 of file DisplayDevice.h. Referenced by Scene::draw. |
|
draw transparent objects.
Reimplemented in OpenGLRenderer. Definition at line 790 of file DisplayDevice.h. Referenced by Scene::draw. |
|
|
Definition at line 723 of file DisplayDevice.h. References NULL, and NUM_PROJECTIONS. Referenced by text_cmd_display. |
|
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 in OpenGLDisplayDevice. Definition at line 277 of file DisplayDevice.C. Referenced by Mouse::Mouse, and VMDApp::VMDinit. |
|
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 in FltkOpenGLDisplayDevice. Definition at line 281 of file DisplayDevice.C. Referenced by Mouse::check_event. |
|
virtual routine for capturing the screen to a packed RGB array.
Reimplemented in FltkOpenGLDisplayDevice. Definition at line 380 of file DisplayDevice.C. Referenced by SnapshotDisplayDevice::close_file, and text_cmd_tkrender. |
|
virtual routine for capturing the screen to a packed RGBA array.
Reimplemented in FltkOpenGLDisplayDevice. Definition at line 387 of file DisplayDevice.C. Referenced by VideoStream::check_event, and VMDApp::VMDupdate. |
|
convert 2D absolute screen coords into relative coords, 0 ... 1.
Reimplemented in FltkOpenGLDisplayDevice. Definition at line 752 of file DisplayDevice.h. References x, xOrig, xSize, y, yOrig, and ySize. Referenced by FltkOpenGLDisplayDevice::rel_screen_pos. |
|
process list of draw commands.
Reimplemented in CaveDisplayDevice. Definition at line 809 of file DisplayDevice.h. References _needRedraw. Referenced by Displayable::draw. |
|
Reimplemented in OpenGLRenderer. Definition at line 811 of file DisplayDevice.h. Referenced by Scene::draw, and Scene::filedraw. |
|
return current rendering mode.
Definition at line 625 of file DisplayDevice.h. References renderMode. Referenced by text_cmd_display. |
|
return rendering name string, if possible.
Definition at line 631 of file DisplayDevice.h. References n, renderModes, and renderNames. Referenced by VMDApp::display_set_rendermode, MainFltkMenu::MainFltkMenu, and text_cmd_display. |
|
Reposition the window.
Definition at line 552 of file DisplayDevice.h. References do_reposition_window, and screenY. Referenced by VMDApp::display_set_position. |
|
refresh device after change.
Reimplemented in FltkOpenGLDisplayDevice. Definition at line 377 of file DisplayDevice.C. Referenced by OpenGLRenderer::set_render_mode, and OpenGLRenderer::set_stereo_mode. |
|
Resize the window.
Definition at line 546 of file DisplayDevice.h. References do_resize_window. Referenced by VideoStream::check_event, VMDApp::display_set_size, init, and VideoStream::VideoStream. |
|
ready to draw right eye.
Reimplemented in OpenGLRenderer. Definition at line 370 of file DisplayDevice.C. References RIGHTEYE, and whichEye. Referenced by Scene::draw, and OpenGLRenderer::set_persp. |
|
find the direction to the right eye position.
Definition at line 717 of file DisplayDevice.h. |
|
Definition at line 522 of file DisplayDevice.h. References _needRedraw, calc_frustum, and vSize. |
|
return the height of the screen.
Definition at line 521 of file DisplayDevice.h. References vSize. Referenced by VMDApp::display_get_screen_height, VMDApp::display_set_screen_height, py_get, and text_cmd_display. |
|
routines for controlling ambient occlusion rendering.
Definition at line 465 of file DisplayDevice.h. References _needRedraw, and aoAmbient. Referenced by VMDApp::display_set_ao_ambient. |
|
routines for controlling ambient occlusion rendering.
Definition at line 472 of file DisplayDevice.h. References _needRedraw, and aoDirect. Referenced by VMDApp::display_set_ao_direct. |
|
routines for controlling ambient occlusion rendering.
Definition at line 454 of file DisplayDevice.h. References _needRedraw, and aoEnabled. Referenced by VMDApp::display_set_ao. |
|
set gradient colors.
Reimplemented in FileRenderer. Definition at line 782 of file DisplayDevice.h. Referenced by Scene::draw. |
|
set main background color.
Reimplemented in FileRenderer. Definition at line 781 of file DisplayDevice.h. Referenced by Scene::draw. |
|
set display background type.
Definition at line 779 of file DisplayDevice.h. References backgroundmode. Referenced by Scene::draw. |
|
change to a different caching mode (0 means 'off').
Reimplemented in OpenGLRenderer. Definition at line 332 of file DisplayDevice.C. References cacheMode. Referenced by VMDApp::display_set_cachemode. |
|
routines to deal with depth cueing / fog.
Definition at line 411 of file DisplayDevice.h. References _needRedraw, and cueDensity. Referenced by VMDApp::depthcue_set_density. |
|
routines to deal with depth cueing / fog.
Definition at line 401 of file DisplayDevice.h. References _needRedraw, cueEnd, and cueStart. Referenced by VMDApp::depthcue_set_end. |
|
routines to deal with depth cueing / fog.
Definition at line 379 of file DisplayDevice.h. References _needRedraw, cueMode, NUM_CUE_MODES, and strupcmp. Referenced by VMDApp::depthcue_set_mode. |
|
routines to deal with depth cueing / fog.
Definition at line 391 of file DisplayDevice.h. References _needRedraw, and cueStart. Referenced by VMDApp::depthcue_set_start. |
|
set the Nth cursor shape as the current one. If no arg given, the default shape (n=0) is used. Reimplemented in FltkOpenGLDisplayDevice. Definition at line 300 of file DisplayDevice.C. Referenced by Mouse::Mouse, and Mouse::move_mode. |
|
routines for controlling depth of field rendering.
Definition at line 493 of file DisplayDevice.h. References _needRedraw, and dofFNumber. Referenced by VMDApp::display_set_dof_fnumber. |
|
routines for controlling depth of field rendering.
Definition at line 500 of file DisplayDevice.h. References _needRedraw, and dofFocalDist. Referenced by VMDApp::display_set_dof_focal_dist. |
|
routines for controlling depth of field rendering.
Definition at line 482 of file DisplayDevice.h. References _needRedraw, and dofEnabled. Referenced by VMDApp::display_set_dof. |
|
set default eye position, orientation information.
Definition at line 141 of file DisplayDevice.C. References eyePos, set_eye_dir, set_eye_pos, set_eye_up, and vec_scale. |
|
set eye direction.
Definition at line 658 of file DisplayDevice.h. References _needRedraw, eyeDir, and vec_copy. Referenced by DisplayDevice, set_eye_defaults, and text_cmd_display. |
|
change focal length; this means adjusting eyeDir and updating eyeDist accordingly (eyeDist is just norm(eyeDir)).
Definition at line 693 of file DisplayDevice.h. References _needRedraw, calc_eyedir, eyeDir, and eyeDist. Referenced by VMDApp::display_set_focallen. |
|
set eye position.
Definition at line 643 of file DisplayDevice.h. References _needRedraw, eyePos, and vec_copy. Referenced by set_eye_defaults, and text_cmd_display. |
|
set the eye up direction.
Definition at line 673 of file DisplayDevice.h. References _needRedraw, calc_eyedir, upDir, and vec_copy. Referenced by set_eye_defaults, and text_cmd_display. |
|
set eye separation.
Definition at line 707 of file DisplayDevice.h. References _needRedraw, calc_eyedir, and eyeSep. Referenced by VMDApp::display_set_eyesep. |
|
routines to deal with the clipping planes and eye position.
Definition at line 341 of file DisplayDevice.h. References _needRedraw, farClip, and nearClip. Referenced by addto_far_clip, and VMDApp::display_set_farclip. |
|
routines to deal with the clipping planes and eye position.
Definition at line 331 of file DisplayDevice.h. References _needRedraw, calc_frustum, and nearClip. Referenced by addto_near_clip, and VMDApp::display_set_nearclip. |
|
Definition at line 728 of file DisplayDevice.h. References _needRedraw, NUM_PROJECTIONS, and strupcmp. Referenced by VMDApp::display_set_projection. |
|
change to a different rendering mode (0 means 'normal').
Reimplemented in OpenGLRenderer. Definition at line 342 of file DisplayDevice.C. References renderMode. Referenced by VMDApp::display_set_rendermode. |
|
d) do not specify anything.
Definition at line 543 of file DisplayDevice.h. Referenced by DisplayDevice, do_resize_window, OpenGLPbufferDisplayDevice::reshape, OpenGLDisplayDevice::reshape, FltkOpenGLDisplayDevice::reshape, and set_screen_pos. |
|
c) just specify aspect ratio.
Definition at line 540 of file DisplayDevice.h. References set_screen_pos, vSize, and zDist. |
|
b) have device provide aspect ratio.
Definition at line 537 of file DisplayDevice.h. References aspect, and set_screen_pos. |
|
a) specify aspect ratio.
Definition at line 531 of file DisplayDevice.h. References Aspect, calc_frustum, vSize, and zDist. |
|
routines for controlling shadow rendering.
Definition at line 440 of file DisplayDevice.h. References _needRedraw, and shadowEnabled. Referenced by VMDApp::display_set_shadows. |
|
change to a different stereo mode (0 means 'off').
Reimplemented in CaveDisplayDevice. Definition at line 322 of file DisplayDevice.C. References inStereo. Referenced by VMDApp::display_set_stereo, and ~DisplayDevice. |
|
swap left/right eyes when rendering in stereo (0 means not swapped).
Definition at line 577 of file DisplayDevice.h. References _needRedraw, and stereoSwap. Referenced by VMDApp::display_set_stereo_swap. |
|
routines for controlling shadow rendering.
Definition at line 448 of file DisplayDevice.h. References shadowEnabled. Referenced by OpenGLDisplayDevice::init, OpenGLRenderer::prepare3D, py_get, text_cmd_display, POV3DisplayDevice::trimesh_c4n3v3, POV3DisplayDevice::trimesh_c4u_n3b_v3f, POV3DisplayDevice::tristrip, TachyonDisplayDevice::write_header, POV3DisplayDevice::write_header, OSPRayDisplayDevice::write_header, OSPRay2DisplayDevice::write_header, OptiXDisplayDevice::write_header, LibTachyonDisplayDevice::write_header, and ANARIDisplayDevice::write_header. |
|
Reimplemented in FltkOpenGLDisplayDevice. Definition at line 294 of file DisplayDevice.C. Referenced by PickModeMolLabel::pick_graphics, PickModeMove::pick_molecule_move, PickModeUser::pick_molecule_start, PickModeMolLabel::pick_molecule_start, and PickModeAddBond::pick_molecule_start. |
|
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 in FltkOpenGLDisplayDevice. Definition at line 309 of file DisplayDevice.h. Referenced by Spaceball::check_event. |
|
current stereo mode ... 0 means non-stereo, others device-specific.
Definition at line 574 of file DisplayDevice.h. References inStereo. Referenced by Scene::draw, py_get, text_cmd_display, and RayShadeDisplayDevice::write_header. |
|
return stereo name string, if possible.
Definition at line 592 of file DisplayDevice.h. References n, stereoModes, and stereoNames. Referenced by VMDApp::display_set_stereo, MainFltkMenu::MainFltkMenu, py_get, py_stereomodes, and text_cmd_display. |
|
current stereo swap mode ... 0 means not swapped.
Definition at line 583 of file DisplayDevice.h. References stereoSwap. Referenced by text_cmd_display. |
|
Does this display device support GUI's? The default stub display does not.
Reimplemented in OpenGLPbufferDisplayDevice. Definition at line 269 of file DisplayDevice.h. Referenced by VMDApp::activate_menus, VMDApp::display_titlescreen, VMDApp::VMDinit, VMDApp::VMDupdate, OptiXDisplayDevice::write_trailer, and VMDApp::~VMDApp. |
|
finish up after drawing.
Reimplemented in CaveDisplayDevice. Definition at line 376 of file DisplayDevice.C. Referenced by Scene::draw, PickList::pick_check, PickList::pick_end, PickList::pick_move, PickList::pick_start, FileRenderList::render, OpenGLRenderer::set_render_mode, OpenGLRenderer::set_stereo_mode, and text_cmd_tkrender. |
|
Use this for colors.
Definition at line 203 of file DisplayDevice.h. References colorData, and do_use_colors. Referenced by Scene::draw, and Scene::filedraw. |
|
|
absolute position of cursor from lower-left corner.
Reimplemented in FltkOpenGLDisplayDevice. Definition at line 291 of file DisplayDevice.C. References mouseY. Referenced by abs_screen_pos, OpenGLRenderer::build3Dmipmaps, TachyonDisplayDevice::define_volume_texture, drawpixels_rgba4u, readpixels_rgb3u, readpixels_rgba4u, rel_screen_pos, Mouse::reset, right_eye_dir, OpenGLRenderer::setup_initial_opengl_state, X3DOMDisplayDevice::text, X3DDisplayDevice::text, Vrml2DisplayDevice::text, TachyonDisplayDevice::text, RenderManDisplayDevice::text, R3dDisplayDevice::text, POV3DisplayDevice::text, OSPRayDisplayDevice::text, OSPRay2DisplayDevice::text, OptiXDisplayDevice::text, LibTachyonDisplayDevice::text, GelatoDisplayDevice::text, and FileRenderer::text. |
|
|
Capability and state flags for antialiasing, depth cueing, backface culling, shadows, ambient occlusion, and depth of field.
Definition at line 93 of file DisplayDevice.h. Referenced by aa_available, OpenGLRenderer::aa_off, OpenGLRenderer::aa_on, DisplayDevice, FltkOpenGLDisplayDevice::FltkOpenGLDisplayDevice, FreeVRDisplayDevice::FreeVRDisplayDevice, OpenGLPbufferDisplayDevice::init, and OpenGLDisplayDevice::init. |
|
Capability and state flags for antialiasing, depth cueing, backface culling, shadows, ambient occlusion, and depth of field.
Definition at line 94 of file DisplayDevice.h. Referenced by aa_enabled, OpenGLRenderer::aa_off, OpenGLRenderer::aa_on, DisplayDevice, and OpenGLRenderer::enable_stencil_stereo. |
|
Capability and state flags for antialiasing, depth cueing, backface culling, shadows, ambient occlusion, and depth of field.
Definition at line 96 of file DisplayDevice.h. Referenced by DisplayDevice, and OpenGLRenderer::enable_stencil_stereo. |
|
AO ambient lighting factor.
Definition at line 117 of file DisplayDevice.h. Referenced by DisplayDevice, get_ao_ambient, operator=, and set_ao_ambient. |
|
AO direct lighting rescaling factor.
Definition at line 118 of file DisplayDevice.h. Referenced by DisplayDevice, get_ao_direct, operator=, and set_ao_direct. |
|
Capability and state flags for antialiasing, depth cueing, backface culling, shadows, ambient occlusion, and depth of field.
Definition at line 95 of file DisplayDevice.h. Referenced by ao_enabled, DisplayDevice, operator=, and set_ao_mode. |
|
current window/image aspect ratio This is the width of the generated image (in pixels) divided by its height. NOT the aspect ratio of the pixels on the target display device.
Definition at line 157 of file DisplayDevice.h. Referenced by aspect, calc_frustum, operator=, PSDisplayDevice::render_done, OpenGLRenderer::set_persp, set_screen_pos, X3DDisplayDevice::write_header, RenderManDisplayDevice::write_header, R3dDisplayDevice::write_header, POV3DisplayDevice::write_header, LibGelatoDisplayDevice::write_header, and GelatoDisplayDevice::write_header. |
|
0=normal, 1=gradient.
Definition at line 137 of file DisplayDevice.h. Referenced by background_mode, DisplayDevice, OpenGLRenderer::draw_background_gradient, operator=, OpenGLRenderer::prepare3D, set_background_mode, X3DDisplayDevice::write_header, Vrml2DisplayDevice::write_header, and POV3DisplayDevice::write_header. |
|
current caching mode.
Definition at line 176 of file DisplayDevice.h. Referenced by cache_mode, DisplayDevice, OpenGLRenderer::set_cache_mode, and set_cache_mode. |
|
total number of caching modes.
Definition at line 177 of file DisplayDevice.h. Referenced by cache_name, DisplayDevice, FltkOpenGLDisplayDevice::FltkOpenGLDisplayDevice, num_cache_modes, OpenGLDisplayDevice::OpenGLDisplayDevice, and OpenGLPbufferDisplayDevice::OpenGLPbufferDisplayDevice. |
|
pointer to rendering mode names.
Definition at line 178 of file DisplayDevice.h. Referenced by cache_name, DisplayDevice, FltkOpenGLDisplayDevice::FltkOpenGLDisplayDevice, OpenGLDisplayDevice::OpenGLDisplayDevice, and OpenGLPbufferDisplayDevice::OpenGLPbufferDisplayDevice. |
|
cached pointer to color data; must be in shared memory for Cave-like.
Definition at line 104 of file DisplayDevice.h. Referenced by FileRenderer::do_use_colors, OpenGLRenderer::render, and use_colors. |
|
distances to near frustum base, which defines the view volume.
Definition at line 165 of file DisplayDevice.h. Referenced by calc_frustum, operator=, and OpenGLRenderer::set_persp. |
|
distances to near frustum base, which defines the view volume.
Definition at line 165 of file DisplayDevice.h. Referenced by calc_frustum, operator=, and OpenGLRenderer::set_persp. |
|
distances to near frustum base, which defines the view volume.
Definition at line 165 of file DisplayDevice.h. Referenced by calc_frustum, operator=, and OpenGLRenderer::set_persp. |
|
distances to near frustum base, which defines the view volume.
Definition at line 165 of file DisplayDevice.h. Referenced by calc_frustum, operator=, and OpenGLRenderer::set_persp. |
|
fog density, used for exp/exp2 fog/cueing.
Definition at line 111 of file DisplayDevice.h. Referenced by DisplayDevice, get_cue_density, operator=, and set_cue_density. |
|
fog start/end, used for linear fog/cueing.
Definition at line 110 of file DisplayDevice.h. Referenced by DisplayDevice, get_cue_end, operator=, and set_cue_end. |
|
Capability and state flags for antialiasing, depth cueing, backface culling, shadows, ambient occlusion, and depth of field.
Definition at line 93 of file DisplayDevice.h. Referenced by cueing_available, OpenGLRenderer::cueing_off, cueing_off, OpenGLRenderer::cueing_on, cueing_on, DisplayDevice, FltkOpenGLDisplayDevice::FltkOpenGLDisplayDevice, FreeVRDisplayDevice::FreeVRDisplayDevice, OpenGLPbufferDisplayDevice::init, and OpenGLDisplayDevice::init. |
|
Capability and state flags for antialiasing, depth cueing, backface culling, shadows, ambient occlusion, and depth of field.
Definition at line 94 of file DisplayDevice.h. Referenced by cueing_enabled, OpenGLRenderer::cueing_off, cueing_off, OpenGLRenderer::cueing_on, cueing_on, DisplayDevice, operator=, and POV3DisplayDevice::write_header. |
|
fog/cueing mode.
Definition at line 109 of file DisplayDevice.h. Referenced by DisplayDevice, get_cue_mode, operator=, and set_cue_mode. |
|
Definition at line 110 of file DisplayDevice.h. Referenced by DisplayDevice, get_cue_start, operator=, set_cue_end, and set_cue_start. |
|
Capability and state flags for antialiasing, depth cueing, backface culling, shadows, ambient occlusion, and depth of field.
Definition at line 93 of file DisplayDevice.h. Referenced by culling_available, OpenGLRenderer::culling_off, OpenGLRenderer::culling_on, FltkOpenGLDisplayDevice::FltkOpenGLDisplayDevice, FreeVRDisplayDevice::FreeVRDisplayDevice, OpenGLPbufferDisplayDevice::init, and OpenGLDisplayDevice::init. |
|
Capability and state flags for antialiasing, depth cueing, backface culling, shadows, ambient occlusion, and depth of field.
Definition at line 94 of file DisplayDevice.h. Referenced by culling_enabled, OpenGLRenderer::culling_off, OpenGLRenderer::culling_on, and DisplayDevice. |
|
drawing characteristics ... line style, sphere resolution, etc.
Definition at line 143 of file DisplayDevice.h. Referenced by DisplayDevice. |
|
Capability and state flags for antialiasing, depth cueing, backface culling, shadows, ambient occlusion, and depth of field.
Definition at line 95 of file DisplayDevice.h. Referenced by DisplayDevice, dof_enabled, operator=, and set_dof_mode. |
|
DoF aperture.
Definition at line 121 of file DisplayDevice.h. Referenced by DisplayDevice, get_dof_fnumber, operator=, and set_dof_fnumber. |
|
DoF focal plane distance.
Definition at line 122 of file DisplayDevice.h. Referenced by DisplayDevice, get_dof_focal_dist, operator=, and set_dof_focal_dist. |
|
direction viewer is looking.
Definition at line 188 of file DisplayDevice.h. Referenced by calc_eyedir, get_eye_dir, operator=, FileRenderer::prepare3D, set_eye_dir, set_eye_dist, OpenGLRenderer::set_persp, OpenGLRenderer::update_shader_uniforms, RayShadeDisplayDevice::write_header, and POV3DisplayDevice::write_header. |
|
distance from eye to focal point.
Definition at line 187 of file DisplayDevice.h. Referenced by DisplayDevice, eye_dist, OpenGLDisplayDevice::init, operator=, OpenGLRenderer::prepare3D, set_eye_dist, OpenGLRenderer::set_persp, OSPRayDisplayDevice::write_trailer, OSPRay2DisplayDevice::write_trailer, OptiXDisplayDevice::write_trailer, and ANARIDisplayDevice::write_trailer. |
|
|
distance between eyes for stereo display.
Definition at line 186 of file DisplayDevice.h. Referenced by calc_eyedir, DisplayDevice, eyesep, OpenGLDisplayDevice::init, operator=, OpenGLRenderer::prepare3D, set_eyesep, OSPRayDisplayDevice::write_trailer, OSPRay2DisplayDevice::write_trailer, OptiXDisplayDevice::write_trailer, and ANARIDisplayDevice::write_trailer. |
|
vector from eye position to right eye magnitude is 1/2 eyeSep.
Definition at line 190 of file DisplayDevice.h. Referenced by calc_eyedir, operator=, FileRenderer::prepare3D, right_eye_dir, and OpenGLRenderer::set_persp. |
|
dist from eye to near and far clip plane.
Definition at line 152 of file DisplayDevice.h. Referenced by addto_far_clip, clip_width, DisplayDevice, far_clip, operator=, set_far_clip, OpenGLRenderer::set_persp, LibGelatoDisplayDevice::write_header, and GelatoDisplayDevice::write_header. |
|
current stereo mode (0 = non-stereo).
Definition at line 170 of file DisplayDevice.h. Referenced by OpenGLRenderer::aa_on, OpenGLRenderer::disable_stencil_stereo, DisplayDevice, operator=, OpenGLPbufferDisplayDevice::reshape, OpenGLDisplayDevice::reshape, FltkOpenGLDisplayDevice::reshape, OpenGLRenderer::set_stereo_mode, set_stereo_mode, and stereo_mode. |
|
drawing characteristics ... line style, sphere resolution, etc.
Reimplemented in FileRenderer. Definition at line 141 of file DisplayDevice.h. Referenced by DisplayDevice, FltkOpenGLDisplayDevice::FltkOpenGLDisplayDevice, OpenGLPbufferDisplayDevice::init, OpenGLDisplayDevice::init, operator=, and OpenGLRenderer::set_line_style. |
|
drawing characteristics ... line style, sphere resolution, etc.
Reimplemented in FileRenderer. Definition at line 141 of file DisplayDevice.h. Referenced by DisplayDevice, FltkOpenGLDisplayDevice::FltkOpenGLDisplayDevice, OpenGLPbufferDisplayDevice::init, OpenGLDisplayDevice::init, operator=, and OpenGLRenderer::set_line_width. |
|
Mouse X position.
Definition at line 209 of file DisplayDevice.h. Referenced by DisplayDevice, and x. |
|
mouse Y position.
Definition at line 210 of file DisplayDevice.h. Referenced by DisplayDevice, and y. |
|
depth-sorting flag for tranparent objects? default is FALSE.
Definition at line 100 of file DisplayDevice.h. |
|
name of this display device.
Definition at line 43 of file DisplayDevice.h. Referenced by FileRenderList::add, DisplayDevice, FltkOpenGLDisplayDevice::FltkOpenGLDisplayDevice, OpenGLPbufferDisplayDevice::init, OpenGLDisplayDevice::init, OpenGLRenderer::set_render_mode, and ~DisplayDevice. |
|
Definition at line 152 of file DisplayDevice.h. Referenced by addto_near_clip, calc_frustum, clip_width, DisplayDevice, near_clip, operator=, set_far_clip, set_near_clip, OpenGLRenderer::set_persp, LibGelatoDisplayDevice::write_header, and GelatoDisplayDevice::write_header. |
|
number of CAVE/FreeVR display processes.
Definition at line 82 of file DisplayDevice.h. Referenced by CaveDisplayDevice::CaveDisplayDevice, DisplayDevice, FreeVRDisplayDevice::FreeVRDisplayDevice, get_num_processes, and VRJugglerDisplayDevice::VRJugglerDisplayDevice. |
|
true of we're a rendering process.
Definition at line 83 of file DisplayDevice.h. Referenced by DisplayDevice, is_renderer_process, and VMDApp::VMDinit. |
|
current rendering mode.
Definition at line 181 of file DisplayDevice.h. Referenced by DisplayDevice, render_mode, OpenGLRenderer::set_render_mode, and set_render_mode. |
|
total number of rendering modes.
Definition at line 182 of file DisplayDevice.h. Referenced by DisplayDevice, FltkOpenGLDisplayDevice::FltkOpenGLDisplayDevice, num_render_modes, OpenGLDisplayDevice::OpenGLDisplayDevice, OpenGLPbufferDisplayDevice::OpenGLPbufferDisplayDevice, and render_name. |
|
pointer to rendering mode names.
Definition at line 183 of file DisplayDevice.h. Referenced by DisplayDevice, FltkOpenGLDisplayDevice::FltkOpenGLDisplayDevice, OpenGLDisplayDevice::OpenGLDisplayDevice, OpenGLPbufferDisplayDevice::OpenGLPbufferDisplayDevice, and render_name. |
|
total size of the screen, in pixels ... MUST BE SET BY DERIVED CLASS.
Definition at line 231 of file DisplayDevice.h. Referenced by DisplayDevice, FltkOpenGLDisplayDevice::FltkOpenGLDisplayDevice, OpenGLDisplayDevice::open_window, OpenGLDisplayDevice::OpenGLDisplayDevice, and OpenGLPbufferDisplayDevice::OpenGLPbufferDisplayDevice. |
|
total size of the screen, in pixels ... MUST BE SET BY DERIVED CLASS.
Definition at line 231 of file DisplayDevice.h. Referenced by DisplayDevice, FltkOpenGLDisplayDevice::FltkOpenGLDisplayDevice, OpenGLDisplayDevice::open_window, OpenGLDisplayDevice::OpenGLDisplayDevice, OpenGLPbufferDisplayDevice::OpenGLPbufferDisplayDevice, reposition_window, OpenGLDisplayDevice::reshape, FltkOpenGLDisplayDevice::reshape, OpenGLDisplayDevice::y, and FltkOpenGLDisplayDevice::y. |
|
Capability and state flags for antialiasing, depth cueing, backface culling, shadows, ambient occlusion, and depth of field.
Definition at line 95 of file DisplayDevice.h. Referenced by DisplayDevice, operator=, set_shadow_mode, and shadows_enabled. |
|
drawing characteristics ... line style, sphere resolution, etc.
Definition at line 142 of file DisplayDevice.h. Referenced by DisplayDevice, FltkOpenGLDisplayDevice::FltkOpenGLDisplayDevice, OpenGLPbufferDisplayDevice::init, OpenGLDisplayDevice::init, OpenGLRenderer::set_sphere_mode, and OpenGLRenderer::update_lists. |
|
drawing characteristics ... line style, sphere resolution, etc.
Definition at line 142 of file DisplayDevice.h. Referenced by DisplayDevice, FltkOpenGLDisplayDevice::FltkOpenGLDisplayDevice, OpenGLPbufferDisplayDevice::init, OpenGLDisplayDevice::init, OpenGLRenderer::set_sphere_res, and OpenGLRenderer::update_lists. |
|
total number of stereo modes (inc mono).
Definition at line 172 of file DisplayDevice.h. Referenced by CaveDisplayDevice::CaveDisplayDevice, DisplayDevice, FltkOpenGLDisplayDevice::FltkOpenGLDisplayDevice, FreeVRDisplayDevice::FreeVRDisplayDevice, num_stereo_modes, OpenGLDisplayDevice::OpenGLDisplayDevice, OpenGLPbufferDisplayDevice::OpenGLPbufferDisplayDevice, stereo_name, and VRJugglerDisplayDevice::VRJugglerDisplayDevice. |
|
pointer to stereo mode names.
Definition at line 173 of file DisplayDevice.h. Referenced by CaveDisplayDevice::CaveDisplayDevice, DisplayDevice, FltkOpenGLDisplayDevice::FltkOpenGLDisplayDevice, FreeVRDisplayDevice::FreeVRDisplayDevice, OpenGLDisplayDevice::OpenGLDisplayDevice, OpenGLPbufferDisplayDevice::OpenGLPbufferDisplayDevice, stereo_name, and VRJugglerDisplayDevice::VRJugglerDisplayDevice. |
|
whether left/right eyes are swapped.
Definition at line 171 of file DisplayDevice.h. Referenced by DisplayDevice, set_stereo_swap, and stereo_swap. |
|
current transformation matrix for the display (NOT the projection matrix).
Reimplemented in FileRenderer. Definition at line 134 of file DisplayDevice.h. Referenced by DisplayDevice, loadmatrix, multmatrix, operator=, pick, VRJugglerDisplayDevice::render, FreeVRDisplayDevice::render, CaveDisplayDevice::render, and OpenGLRenderer::update_shader_uniforms. |
|
direction which is 'up'.
Definition at line 189 of file DisplayDevice.h. Referenced by calc_eyedir, DisplayDevice, get_eye_up, operator=, set_eye_up, and OpenGLRenderer::set_persp. |
|
VMDApp object ptr, for drag-and-drop handlers, and to allow subclasses to access to GPU management APIs, e.g. to force-free large memory buffers in GPU global memory prior to launching GPU ray tracing, etc.
Definition at line 37 of file DisplayDevice.h. Referenced by ANARIDisplayDevice::ANARIDisplayDevice, DisplayDevice, FltkOpenGLDisplayDevice::FltkOpenGLDisplayDevice, OpenGLPbufferDisplayDevice::init, OpenGLDisplayDevice::init, LibTachyonDisplayDevice::LibTachyonDisplayDevice, OptiXDisplayDevice::OptiXDisplayDevice, OSPRay2DisplayDevice::OSPRay2DisplayDevice, OSPRayDisplayDevice::OSPRayDisplayDevice, OpenGLPbufferDisplayDevice::update, OpenGLDisplayDevice::update, vmdWindowProc, OptiXDisplayDevice::write_header, and OptiXDisplayDevice::write_trailer. |
|
|
the eye we are currently drawing to.
Definition at line 151 of file DisplayDevice.h. Referenced by left, normal, operator=, right, and POV3DisplayDevice::write_header. |
|
position and size of device, in 'pixels'.
Definition at line 130 of file DisplayDevice.h. Referenced by OpenGLRenderer::abs_screen_loc_3D, abs_screen_pos, DisplayDevice, operator=, rel_screen_pos, OpenGLDisplayDevice::reshape, and FltkOpenGLDisplayDevice::reshape. |
|
|
position and size of device, in 'pixels'.
Definition at line 130 of file DisplayDevice.h. Referenced by OpenGLRenderer::abs_screen_loc_3D, abs_screen_pos, DisplayDevice, operator=, rel_screen_pos, OpenGLDisplayDevice::reshape, and FltkOpenGLDisplayDevice::reshape. |
|
|
distance to 'screen' relative to origin.
Definition at line 155 of file DisplayDevice.h. Referenced by calc_frustum, distance_to_screen, OpenGLDisplayDevice::init, operator=, OpenGLRenderer::prepare3D, set_screen_pos, X3DDisplayDevice::write_header, RenderManDisplayDevice::write_header, R3dDisplayDevice::write_header, POV3DisplayDevice::write_header, LibGelatoDisplayDevice::write_header, GelatoDisplayDevice::write_header, OSPRayDisplayDevice::write_trailer, OSPRay2DisplayDevice::write_trailer, OptiXDisplayDevice::write_trailer, and ANARIDisplayDevice::write_trailer. |