color.C File Reference

(r1659/r1604)

#include "color.h"

Include dependency graph for color.C:

Go to the source code of this file.

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 &opengl_color_map)
void default_eps_rgb_map (ColorMap &eps_rgb_map)
void default_eps_grayscale_map (GrayscaleMap &eps_grayscale_map)

Variables

Color RED (1.0, 0.0, 0.0)
Color BLUE (0.0, 0.0, 1.0)
Color GREEN (0.0, 1.0, 0.0)
Color YELLOW (1.0, 1.0, 0.0)
Color CYAN (0.0, 1.0, 1.0)
Color MAGENTA (1.0, 0.0, 1.0)
Color WHITE (1.0, 1.0, 1.0)
Color BLACK (0.0, 0.0, 0.0)
Color GRAY1 (0.2, 0.2, 0.2)
Color GRAY2 (0.4, 0.4, 0.4)
Color GRAY3 (0.6, 0.6, 0.6)
Color GRAY4 (0.8, 0.8, 0.8)
Color DIMYELLOW (0.2, 0.2, 0.0)
Color DIMCYAN (0.0, 0.2, 0.2)
Color DIMMAGENTA (0.2, 0.0, 0.2)
Color LIGHTYELLOW (1.0, 1.0, 0.5)
Color PINK1 (1.0, 0.6, 0.6)
Color PINK2 (1.0, 0.3, 0.3)
Color DARKRED (0.8, 0.0, 0.0)
Color DARKRED2 (0.4, 0.0, 0.0)
map< int, Coloropengl_color_map


Detailed Description

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

Definition in file color.C.


Function Documentation

void default_eps_grayscale_map ( GrayscaleMap eps_grayscale_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 eps_rgb_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 opengl_color_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(0.0, 0.0, 0.0)

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

Color BLUE(0.0, 0.0, 1.0)

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(0.0, 1.0, 1.0)

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

Color DARKRED(0.8, 0.0, 0.0)

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

Color DARKRED2(0.4, 0.0, 0.0)

Color DIMCYAN(0.0, 0.2, 0.2)

Referenced by Visualization::draw_smooth_debug().

Color DIMMAGENTA(0.2, 0.0, 0.2)

Color DIMYELLOW(0.2, 0.2, 0.0)

Referenced by Visualization::draw_smooth_debug().

Color GRAY1(0.2, 0.2, 0.2)

Color GRAY2(0.4, 0.4, 0.4)

Referenced by Visualization::visual_switch().

Color GRAY3(0.6, 0.6, 0.6)

Color GRAY4(0.8, 0.8, 0.8)

Referenced by BezierMesh::coarsen_draw_debug().

Color GREEN(0.0, 1.0, 0.0)

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(1.0, 1.0, 0.5)

Referenced by default_eps_rgb_map(), and default_opengl_color_map().

Color MAGENTA(1.0, 0.0, 1.0)

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

map<int, Color> opengl_color_map

Definition at line 36 of file color.C.

Color PINK1(1.0, 0.6, 0.6)

Referenced by default_eps_rgb_map(), and default_opengl_color_map().

Color PINK2(1.0, 0.3, 0.3)

Referenced by default_eps_rgb_map(), and default_opengl_color_map().

Color RED(1.0, 0.0, 0.0)

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(1.0, 1.0, 1.0)

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

Color YELLOW(1.0, 1.0, 0.0)

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