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

ColorMap Class Reference

#include <ColorMap.H>

List of all members.

Public Methods

 ColorMap ()
 ColorMap (double minVal, double maxVal)
virtual ~ColorMap ()
void addToMap (const double value, const Color c)
 add a new ColorVal to the map

void changeMap (const double value, const Color c, const double threshold)
 modify existing ColorVal or add a new one as appropriate

void addRegion (double begin, double end, Color c, bool blend=true)
void addRegion (double begin, double end, Color beginc, Color endc, bool blend=true)
void clearRegion (double begin, double end)
void setRegion (double begin, double end, double val, int index)
Color getColor (const double value)
void print ()
virtual int getNumPoints () const
virtual double getValIndexPoint (const int num) const
virtual Color getColorIndexPoint (const int num) const
virtual ColorVal * getColorVal (const int num)
void stupidSort ()
void removeVal (ColorVal *const val)
void addVal (ColorVal *const val)
bool equals (ColorMap *const map)
void clear ()
void setColorMap (ColorMap *map)
ColorMap * getCopy ()

Protected Attributes

ARRAY< ColorVal * > _colorVals


Constructor & Destructor Documentation

ColorMap::ColorMap (    ) 
 

this constructor creates an empty color map. you have to add colors and their corresponding data values to the map

ColorMap::ColorMap (  double    minVal,
double    maxVal
) 
 

this constructor creates a default sci-viz color map based around the min and max values specified

ColorMap::~ColorMap (    )  [virtual]
 


Member Function Documentation

void ColorMap::addRegion (  double    begin,
double    end,
Color    beginc,
Color    endc,
bool    blend = true
) 
 

void ColorMap::addRegion (  double    begin,
double    end,
Color    c,
bool    blend = true
)  [inline]
 

void ColorMap::addToMap (  const double    value,
const Color    c
) 
 

add a new ColorVal to the map

void ColorMap::addVal (  ColorVal *const    val )  [inline]
 

void ColorMap::changeMap (  const double    value,
const Color    c,
const double    threshold
) 
 

modify existing ColorVal or add a new one as appropriate

void ColorMap::clear (    ) 
 

void ColorMap::clearRegion (  double    begin,
double    end
) 
 

print(); cout << "frac=" << frac << endl; cout << "value=" << value << endl; cout << "low=" << low << endl; cout << "high=" << high << endl;

bool ColorMap::equals (  ColorMap *const    map ) 
 

Color ColorMap::getColor (  const double    value ) 
 

Color ColorMap::getColorIndexPoint (  const int    num )  const [virtual]
 

ColorVal * ColorMap::getColorVal (  const int    num )  [virtual]
 

ColorMap * ColorMap::getCopy (    ) 
 

int ColorMap::getNumPoints (    )  [virtual]
 

double ColorMap::getValIndexPoint (  const int    num )  const [virtual]
 

void ColorMap::print (    ) 
 

void ColorMap::removeVal (  ColorVal *const    val ) 
 

void ColorMap::setColorMap (  ColorMap *    map ) 
 

void ColorMap::setRegion (  double    begin,
double    end,
double    val,
int    index
) 
 

void ColorMap::stupidSort (    ) 
 


Member Data Documentation

ARRAY<ColorVal*> ColorMap::_colorVals [protected]
 


The documentation for this class was generated from the following files:
Generated on Mon Sep 15 16:27:57 2003 for inspace by doxygen1.2.18