HyperspaceExplorer 0.7.1
|
maps x, y, z in parameter space to R, G, B with a faster algorithm More...
#include <ColorManager.h>
Public Member Functions | |
Fastxyz2RGBColorManager (Displayable *) | |
Given a Function to manage, construct a xyz2RGBColorManager. | |
virtual void | setFunction (Displayable *) |
set the managed Function | |
virtual void | calibrateColor (const VecMath::Vector< 4 > &, const Color &=Color()) |
Point (x, y, z) has color col. This may serve for interpolation. | |
virtual Color | getColor (const VecMath::Vector< 4 > &) |
Find the color of a given point. | |
virtual void | depthCueColor (double wmax, double wmin, double w, const VecMath::Vector< 4 > &) |
virtual std::string | getContents () |
debugging output | |
Private Attributes | |
float | _xmin |
minimum X coordinate | |
float | _xmax |
maximum X coordinate | |
float | _ymin |
minimum Y coordinate | |
float | _ymax |
maximum Y coordinate | |
float | _zmin |
minimum Z coordinate | |
float | _zmax |
maximum Z coordinate | |
float | _wmin |
minimum W coordinate | |
float | _wmax |
maximum W coordinate | |
float | _opacityRange |
difference between min and max alpha value |
maps x, y, z in parameter space to R, G, B with a faster algorithm
Simply calculates the RGB value of the current point from its place in the value space, normalizing to the interval [0..1].
Fastxyz2RGBColorManager::Fastxyz2RGBColorManager | ( | Displayable * | _f | ) |
Given a Function to manage, construct a xyz2RGBColorManager.
_f | Function to manage |
void Fastxyz2RGBColorManager::depthCueColor | ( | double | wmax, |
double | wmin, | ||
double | w, | ||
const VecMath::Vector< 4 > & | |||
) | [virtual] |
Implements ColorManager.
Color Fastxyz2RGBColorManager::getColor | ( | const VecMath::Vector< 4 > & | x | ) | [virtual] |
Find the color of a given point.
If the point is not stored in the map of already defined points, calculate its color by averaging over the nearest neighboring points and store its value for future use
x | four-dimensional coordinate for which the color is sought |
Implements ColorManager.
References _opacityRange, _wmax, _wmin, _xmax, _xmin, _ymax, _ymin, _zmax, and _zmin.
void Fastxyz2RGBColorManager::setFunction | ( | Displayable * | _f | ) | [virtual] |