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

Scene.C File Reference

Scene maintains a list of Displayable objects and draws them to the active DisplayDevice. More...

#include "Scene.h"
#include "DisplayDevice.h"
#include "Inform.h"
#include "DispCmds.h"
#include "utilities.h"
#include "FileRenderList.h"
#include "FileRenderer.h"
#include "ColorScaleTables.h"

Go to the source code of this file.

Compounds

class  ColorScaleTypeInfo
 color gradient/ramp used by value-based coloring methods. More...

class  DisplayColor
 Displayable subclass containing the background color information. More...


Enumerations

enum  colorScaleType { SCALE_TYPE_TABULATED = 0, SCALE_TYPE_TABULATED_SRGB = 1, SCALE_TYPE_DIVERGENT = 2 }

Functions

float slope3_lower (float mid, float val)
float slope3_upper (float mid, float val)
float slope3_middle (float mid, float val)
void scale_color (const float *lowRGB, const float *midRGB, const float *highRGB, float mid, float val, float scaleMin, float *rgb)

Variables

const int num_scalemethods = 36
const ColorScale defScales []
const char * colScaleMenuNames []
const ColorScaleTypeInfo scaleTypes []
const char * defColorNames [REGCLRS]
const float def_light_color [3] = { 1.0, 1.0, 1.0 }
const float def_light_pos [DISP_LIGHTS][3]
const float def_adv_light_pos [DISP_LIGHTS][3]
const int def_light_on [DISP_LIGHTS] = { TRUE, TRUE, FALSE, FALSE }


Detailed Description

Scene maintains a list of Displayable objects and draws them to the active DisplayDevice.

The Scene has a list of Displayable objects and display commands. The command lists are used to draw the objects, the Displayable objects to prepare and update objects for drawing.

Definition in file Scene.C.


Enumeration Type Documentation

enum colorScaleType
 

Enumeration values:
SCALE_TYPE_TABULATED 
SCALE_TYPE_TABULATED_SRGB 
SCALE_TYPE_DIVERGENT 

Definition at line 130 of file Scene.C.


Function Documentation

void scale_color const float *    lowRGB,
const float *    midRGB,
const float *    highRGB,
float    mid,
float    val,
float    scaleMin,
float *    rgb
[static]
 

Definition at line 785 of file Scene.C.

References clamp_color, slope3_lower, slope3_middle, and slope3_upper.

float slope3_lower float    mid,
float    val
[static]
 

Definition at line 759 of file Scene.C.

Referenced by scale_color.

float slope3_middle float    mid,
float    val
[static]
 

Definition at line 773 of file Scene.C.

Referenced by scale_color.

float slope3_upper float    mid,
float    val
[static]
 

Definition at line 766 of file Scene.C.

Referenced by scale_color.


Variable Documentation

const char* colScaleMenuNames[] [static]
 

Definition at line 85 of file Scene.C.

Referenced by Scene::Scene.

const float def_adv_light_pos[DISP_LIGHTS][3] [static]
 

Initial value:

 {
        { 0.0f, 0.0f, 0.0f }, { 0.0f, 0.0f, 0.0f }, 
        { 0.0f, 0.0f, 0.0f }, { 0.0f, 0.0f, 0.0f }
}

Definition at line 357 of file Scene.C.

Referenced by Scene::adv_light_pos_default.

const float def_light_color[3] = { 1.0, 1.0, 1.0 } [static]
 

Definition at line 352 of file Scene.C.

Referenced by Scene::adv_light_color_default, Scene::light_color_default, and Scene::reset_lights.

const int def_light_on[DISP_LIGHTS] = { TRUE, TRUE, FALSE, FALSE } [static]
 

Definition at line 362 of file Scene.C.

Referenced by Scene::reset_lights.

const float def_light_pos[DISP_LIGHTS][3] [static]
 

Initial value:

 {
        { -0.1f, 0.1f,  1.0f }, {  1.0f,  2.0f, 0.5f },
        { -1.0f, 2.0f, -1.0f }, { -1.0f, -1.0f, 0.0f }
}

Definition at line 353 of file Scene.C.

Referenced by Scene::light_pos_default, and Scene::reset_lights.

const char* defColorNames[REGCLRS] [static]
 

Initial value:

 {
  "blue",    "red",    "gray",    "orange",  
  "yellow",  "tan",    "silver",  "green",  
  "white",   "pink",   "cyan",   "purple",
  "lime",    "mauve",  "ochre",  "iceblue", 

  
  "black"


 ,"yellow2",  "yellow3",   "green2",    "green3",
  "cyan2",    "cyan3",     "blue2",     "blue3",
  "violet",   "violet2",   "magenta",   "magenta2",  
  "red2",     "red3",      "orange2",   "orange3"


}

Definition at line 201 of file Scene.C.

Referenced by Scene::Scene.

const ColorScale defScales[] [static]
 

Definition at line 36 of file Scene.C.

const int num_scalemethods = 36 [static]
 

Definition at line 35 of file Scene.C.

Referenced by Scene::colorscale_type, and Scene::Scene.

const ColorScaleTypeInfo scaleTypes[] [static]
 

Definition at line 153 of file Scene.C.


Generated on Thu Apr 18 02:46:13 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002