HyperspaceExplorer 0.7.1
Public Member Functions | Private Member Functions | Private Attributes
depth2RGBColorManager Class Reference

maps w coordinate to R, G, B More...

#include <ColorManager.h>

Inheritance diagram for depth2RGBColorManager:
Inheritance graph
[legend]
Collaboration diagram for depth2RGBColorManager:
Collaboration graph
[legend]

List of all members.

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.

Detailed Description

maps w coordinate to R, G, B


Constructor & Destructor Documentation

depth2RGBColorManager::depth2RGBColorManager ( Displayable _f) [inline]

Given a Function to manage, construct a depth2RGBColorManager.

Parameters:
_fFunction to manage

Member Function Documentation

Color depth2RGBColorManager::computeColorFromW ( double  w) [private]

Compute a spectral color for the normalized w coordinate.

Parameters:
ww coordinate, normalized to the interval [0..1]
Returns:
Spectral color, ranging from red for 0 to violet for 1
Todo:
Rethink the transparence algorithm

References ColorManager::getAlpha().

Referenced by getColor().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Parameters:
xfour-dimensional coordinate for which the color is sought

Implements ColorManager.

References _wmax, _wmin, and computeColorFromW().

Here is the call graph for this function:

void depth2RGBColorManager::setFunction ( Displayable _f) [virtual]

set the managed Function

Parameters:
_fnew Function to manage

Reimplemented from ColorManager.

References _wmax, and _wmin.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends

Generated on Mon Apr 9 2012 20:25:17 for HyperspaceExplorer 0.7.1 by doxygen 1.7.4  -  Hosted bySourceForge.net Logo