TransferFunc Class Reference

A transfer function. More...

#include <TransferFunc.h>

Collaboration diagram for TransferFunc:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TransferFunc (Color color, float thr)
Color getColor (float val)
void setColor (Color c)
void setOpacity (Color::ColorUnit a)
void setRGB (Color::ColorUnit r, Color::ColorUnit g, Color::ColorUnit b)
void setUpperThr (float thr)
void setLowerThr (float thr)
void setThr (float thr)
float thr ()

Private Attributes

Color mColor
float mThr
float mLowerThr
float mUpperThr
float mLowerDivisor
float mUpperDivisor

Detailed Description

A transfer function.

Each transfer function has an associated threshold value and a color. At the threshold value itself, the returned color will be the specified color. In other places, it will be a "lighter" color.

This function also depends on the neighbouring transfer functions; setUpperThr and setLowerThr must be called. For functions at the edge, use 0/4095 as lower/upper thresholds.


Constructor & Destructor Documentation

TransferFunc::TransferFunc Color  color,
float  thr
 


Member Function Documentation

Color TransferFunc::getColor float  val  ) 
 

void TransferFunc::setColor Color  c  )  [inline]
 

void TransferFunc::setLowerThr float  thr  ) 
 

void TransferFunc::setOpacity Color::ColorUnit  a  )  [inline]
 

void TransferFunc::setRGB Color::ColorUnit  r,
Color::ColorUnit  g,
Color::ColorUnit  b
 

void TransferFunc::setThr float  thr  )  [inline]
 

void TransferFunc::setUpperThr float  thr  ) 
 

float TransferFunc::thr  )  [inline]
 


Member Data Documentation

Color TransferFunc::mColor [private]
 

float TransferFunc::mLowerDivisor [private]
 

float TransferFunc::mLowerThr [private]
 

float TransferFunc::mThr [private]
 

float TransferFunc::mUpperDivisor [private]
 

float TransferFunc::mUpperThr [private]
 


The documentation for this class was generated from the following files:
Generated on Mon Jan 23 19:45:08 2006 for Visualization by  doxygen 1.4.6