Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Plot::ColorLookup< PixelType, Scale > Class Template Reference

#include <colorlookup.h>

Inheritance diagram for Plot::ColorLookup< PixelType, Scale >:

Inheritance graph
[legend]
Collaboration diagram for Plot::ColorLookup< PixelType, Scale >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class PixelType = Plot::RGBPixel<>, class Scale = Scale::Linear<double>>
class Plot::ColorLookup< PixelType, Scale >

Abstract base class for something returning a color based on a magnitude.

Supports automatic linear scaling of the magnitude, e.g. to flip the representation from dark to light, to put the values in a certain range, etc.

Definition at line 40 of file colorlookup.h.

Public Methods

 ColorLookup (const Scale &scale=default_scale)
 Constructor accepting an optional scaling function object.

virtual PixelType operator() (const double mag) const
 Returns a Pixel given a magnitude that will be in the range 0.0-1.0 after scaling.


Protected Types

typedef Scale ScaleType

Static Protected Attributes

ScaleType default_scale


The documentation for this class was generated from the following file:
Generated on Mon Jan 20 02:37:39 2003 for RF-LISSOM by doxygen1.3-rc2