|
HyperspaceExplorer 0.7.1
|
maps w coordinate to R, G, B More...
#include <ColorManager.h>


Public Member Functions | |
| depth2RGBColorManager (Displayable *_f) | |
| Given a Function to manage, construct a depth2RGBColorManager. | |
| 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, double, double, const VecMath::Vector< 4 > &) |
| post-process color at given point to have 4D depth cue | |
| virtual std::string | getContents () |
| debugging output | |
Private Member Functions | |
| Color | computeColorFromW (double) |
| Compute a spectral color for the normalized w coordinate. | |
Private Attributes | |
| double | _wmin |
| Minimum w value of the managed Function. | |
| double | _wmax |
| Maximum w value of the managed Function. | |
maps w coordinate to R, G, B
| depth2RGBColorManager::depth2RGBColorManager | ( | Displayable * | _f | ) | [inline] |
Given a Function to manage, construct a depth2RGBColorManager.
| _f | Function to manage |
| Color depth2RGBColorManager::computeColorFromW | ( | double | w | ) | [private] |
Compute a spectral color for the normalized w coordinate.
| w | w coordinate, normalized to the interval [0..1] |
References ColorManager::getAlpha().
Referenced by getColor().


| Color depth2RGBColorManager::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 computing its w coordinate
| x | four-dimensional coordinate for which the color is sought |
Implements ColorManager.
References _wmax, _wmin, and computeColorFromW().

| void depth2RGBColorManager::setFunction | ( | Displayable * | _f | ) | [virtual] |
1.7.4
-
Hosted by