#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, Color > | opengl_color_map |
Definition in file color.C.
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
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 |
Definition at line 63 of file color.C.
References BLACK, BLUE, CYAN, GREEN, MAGENTA, RED, and YELLOW.
Referenced by Visualization::draw_bezier_triangle().
Referenced by default_eps_rgb_map(), default_opengl_color_map(), and spectrum_color().
Referenced by default_eps_rgb_map(), default_opengl_color_map(), and Visualization::draw_smooth_debug().
Referenced by Visualization::draw_smooth_debug().
Color DIMMAGENTA(0.2, 0.0, 0.2) |
Referenced by Visualization::draw_smooth_debug().
Referenced by Visualization::visual_switch().
Referenced by BezierMesh::coarsen_draw_debug().
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().
map<int, Color> opengl_color_map |
Referenced by default_eps_rgb_map(), and default_opengl_color_map().
Referenced by default_eps_rgb_map(), and default_opengl_color_map().
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().