color.h File Reference

(r1659/r1648)

#include <map>

Include dependency graph for color.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Color
 An RGB color. More...

Typedefs

typedef std::map< int, ColorColorMap
typedef std::map< int, float > GrayscaleMap

Functions

Color spectrum_color (double data, double data_min, double data_max)
 Assigns a color of the visible spectrum to given data.
void default_opengl_color_map (ColorMap &map)
void default_eps_rgb_map (ColorMap &map)
void default_eps_grayscale_map (GrayscaleMap &map)

Variables

Color RED
Color BLUE
Color GREEN
Color YELLOW
Color LIGHTYELLOW
Color CYAN
Color MAGENTA
Color WHITE
Color BLACK
Color GRAY1
Color GRAY2
Color GRAY3
Color GRAY4
Color DIMYELLOW
Color DIMCYAN
Color DIMMAGENTA
Color DARKRED
Color DARKRED2
Color PINK1
Color PINK2
std::map< int, Coloropengl_color_map


Detailed Description

Author:
Mark J. Olah (mjo@andrew.cmu.edu)

Definition in file color.h.


Typedef Documentation

typedef std::map<int, Color> ColorMap

Definition at line 89 of file color.h.

typedef std::map<int, float> GrayscaleMap

Definition at line 90 of file color.h.


Function Documentation

void default_eps_grayscale_map ( GrayscaleMap map  ) 

Definition at line 187 of file color.C.

Referenced by _wrap_default_eps_grayscale_map(), and EPSWrite::EPSWrite().

void default_eps_rgb_map ( ColorMap map  ) 

Definition at line 166 of file color.C.

References BLACK, CYAN, DARKRED, LIGHTYELLOW, MAGENTA, PINK1, PINK2, and WHITE.

Referenced by _wrap_default_eps_rgb_map(), and EPSWrite::EPSWrite().

void default_opengl_color_map ( ColorMap map  ) 

Definition at line 145 of file color.C.

References BLACK, CYAN, DARKRED, LIGHTYELLOW, MAGENTA, PINK1, PINK2, and WHITE.

Referenced by _wrap_default_opengl_color_map(), and Visualization::initialize().

Color spectrum_color ( double  data,
double  data_min,
double  data_max 
)

Assigns a color of the visible spectrum to given data.

This is used to color data with the visible spectrum. Based on the data and the provieded max and min, it normalizes data and returns the cooresponding color.

The follwowing must hold

 data_min <= data <= data_max

Parameters:
data The data of interest
data_min The data value representing 0, on a normalized scale
data_max The data value representing 1, on a normalized scale
Returns:
The coresponding color from the spectrum

Definition at line 63 of file color.C.

References BLACK, BLUE, CYAN, GREEN, MAGENTA, RED, and YELLOW.

Referenced by Visualization::draw_bezier_triangle().


Variable Documentation

Color BLACK

Referenced by default_eps_rgb_map(), default_opengl_color_map(), and spectrum_color().

Color BLUE

Referenced by BezierMesh::coarsen_draw_debug(), Visualization::draw_flippable_edges(), BezierMesh::draw_insert_error(), Visualization::draw_smooth_debug(), BezierMesh::draw_smooth_error(), Visualization::draw_smoothable_edges(), spectrum_color(), and Visualization::visual_switch().

Color CYAN

Referenced by default_eps_rgb_map(), default_opengl_color_map(), Visualization::draw_flippable_edges(), Visualization::draw_smooth_debug(), and spectrum_color().

Color DARKRED

Referenced by default_eps_rgb_map(), default_opengl_color_map(), and Visualization::draw_smooth_debug().

Color DARKRED2

Color DIMCYAN

Referenced by Visualization::draw_smooth_debug().

Color DIMMAGENTA

Color DIMYELLOW

Referenced by Visualization::draw_smooth_debug().

Color GRAY1

Color GRAY2

Referenced by Visualization::visual_switch().

Color GRAY3

Color GRAY4

Referenced by BezierMesh::coarsen_draw_debug().

Color GREEN

Referenced by BezierMesh::coarsen_draw_debug(), Visualization::draw_flippable_edges(), BezierMesh::draw_insert_error(), Visualization::draw_inverted_classes(), Visualization::draw_smooth_debug(), BezierMesh::draw_smooth_error(), Visualization::draw_smoothable_edges(), spectrum_color(), Visualization::visual_locate(), and Visualization::visual_switch().

Color LIGHTYELLOW

Referenced by default_eps_rgb_map(), and default_opengl_color_map().

Color MAGENTA

Referenced by default_eps_rgb_map(), default_opengl_color_map(), BezierMesh::draw_insert_error(), Visualization::draw_smooth_debug(), and spectrum_color().

std::map<int, Color> opengl_color_map

Definition at line 36 of file color.C.

Color PINK1

Referenced by default_eps_rgb_map(), and default_opengl_color_map().

Color PINK2

Referenced by default_eps_rgb_map(), and default_opengl_color_map().

Color RED

Referenced by BezierMesh::coarsen_draw_debug(), Visualization::draw_flippable_edges(), BezierMesh::draw_insert_error(), Visualization::draw_inverted_classes(), Visualization::draw_smooth_debug(), Visualization::draw_smoothable_edges(), spectrum_color(), Visualization::visual_locate(), and Visualization::visual_switch().

Color WHITE

Referenced by default_eps_rgb_map(), default_opengl_color_map(), BezierMesh::draw_insert_error(), and Visualization::visual_switch().

Color YELLOW

Referenced by Visualization::draw_inverted_classes(), Visualization::draw_smooth_debug(), spectrum_color(), and Visualization::visual_locate().


Generated on Mon May 24 09:53:31 2010 for TUMBLE by  doxygen 1.5.2