IS3D::Color3Map Class Reference

#include <Color3Map.H>

List of all members.

Public Member Functions

 Color3Map ()
 Color3Map (double minVal, double maxVal)
virtual ~Color3Map ()
Color3 getColor (const double value)
 Returns a color based on the lookup value.
void addToMap (const double value, const Color3 c)
 Add a new Color3 and Value pair to the map.
void changeMap (const double value, const Color3 c, const double threshold)
void addRegion (double begin, double end, Color3 c, bool blend=true)
void addRegion (double begin, double end, Color3 beginc, Color3 endc, bool blend=true)
void clearRegion (double begin, double end)
void setRegion (double begin, double end, double val, int index)
void print ()
virtual int getNumPoints () const
virtual double getValIndexPoint (const int num) const
virtual Color3 getColorIndexPoint (const int num) const
virtual Color3ValRef getColor3Val (const int num)
void removeVal (Color3ValRef const val)
void addVal (Color3ValRef const val)
bool equals (Color3MapRef const map)
void clear ()
void setColor3Map (Color3MapRef map)
Color3MapRef getCopy ()


Detailed Description

A color map class, provides a mapping between data of type double and an array of colors.

Constructor & Destructor Documentation

IS3D::Color3Map::Color3Map (  ) 

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

IS3D::Color3Map::Color3Map ( double  minVal,
double  maxVal 
)

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

virtual IS3D::Color3Map::~Color3Map (  )  [virtual]


Member Function Documentation

Color3 IS3D::Color3Map::getColor ( const double  value  ) 

Returns a color based on the lookup value.

void IS3D::Color3Map::addToMap ( const double  value,
const Color3  c 
)

Add a new Color3 and Value pair to the map.

void IS3D::Color3Map::changeMap ( const double  value,
const Color3  c,
const double  threshold 
)

Modify existing Color3Val or add a new one as appropriate Algorithm: If value is more than a threshold away from a current Color3Val make a new Color3Val, otherwise change the old one.

void IS3D::Color3Map::addRegion ( double  begin,
double  end,
Color3  c,
bool  blend = true 
) [inline]

void IS3D::Color3Map::addRegion ( double  begin,
double  end,
Color3  beginc,
Color3  endc,
bool  blend = true 
)

void IS3D::Color3Map::clearRegion ( double  begin,
double  end 
)

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

void IS3D::Color3Map::print (  ) 

virtual int IS3D::Color3Map::getNumPoints (  )  const [virtual]

virtual double IS3D::Color3Map::getValIndexPoint ( const int  num  )  const [virtual]

virtual Color3 IS3D::Color3Map::getColorIndexPoint ( const int  num  )  const [virtual]

virtual Color3ValRef IS3D::Color3Map::getColor3Val ( const int  num  )  [virtual]

void IS3D::Color3Map::removeVal ( Color3ValRef const   val  ) 

void IS3D::Color3Map::addVal ( Color3ValRef const   val  ) 

bool IS3D::Color3Map::equals ( Color3MapRef const   map  ) 

void IS3D::Color3Map::clear (  ) 

void IS3D::Color3Map::setColor3Map ( Color3MapRef  map  ) 

Color3MapRef IS3D::Color3Map::getCopy (  ) 


The documentation for this class was generated from the following file:

Generated on Wed Jan 26 06:31:20 2011 for IS3D by  doxygen 1.5.6