HyperspaceExplorer 0.7.1
Public Member Functions | Private Attributes
Fastxyz2RGBColorManager Class Reference

maps x, y, z in parameter space to R, G, B with a faster algorithm More...

#include <ColorManager.h>

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

List of all members.

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

Detailed Description

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].


Constructor & Destructor Documentation

Fastxyz2RGBColorManager::Fastxyz2RGBColorManager ( Displayable _f)

Given a Function to manage, construct a xyz2RGBColorManager.

Parameters:
_fFunction to manage

Member Function Documentation

void Fastxyz2RGBColorManager::depthCueColor ( double  wmax,
double  wmin,
double  w,
const VecMath::Vector< 4 > &   
) [virtual]
Todo:
implement me!

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

Parameters:
xfour-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]

set the managed Function

Parameters:
_fnew Function to manage

Reimplemented from ColorManager.

References _wmax, _wmin, _xmax, _xmin, _ymax, _ymin, _zmax, and _zmin.


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:18 for HyperspaceExplorer 0.7.1 by doxygen 1.7.4  -  Hosted bySourceForge.net Logo