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, unsigned short thr)
Color getColor (unsigned short val)
void setColor (Color c)
void setOpacity (Color::ColorUnit a)
void setRGB (Color::ColorUnit r, Color::ColorUnit g, Color::ColorUnit b)
void setUpperThr (unsigned short thr)
void setLowerThr (unsigned short thr)
void setThr (unsigned short thr)
unsigned short thr ()

Private Attributes

Color mColor
unsigned short mThr
unsigned short mLowerThr
unsigned short 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,
unsigned short  thr
 


Member Function Documentation

Color TransferFunc::getColor unsigned short  val  ) 
 

void TransferFunc::setColor Color  c  )  [inline]
 

void TransferFunc::setLowerThr unsigned short  thr  ) 
 

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

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

void TransferFunc::setThr unsigned short  thr  )  [inline]
 

void TransferFunc::setUpperThr unsigned short  thr  ) 
 

unsigned short TransferFunc::thr  )  [inline]
 


Member Data Documentation

Color TransferFunc::mColor [private]
 

float TransferFunc::mLowerDivisor [private]
 

unsigned short TransferFunc::mLowerThr [private]
 

unsigned short TransferFunc::mThr [private]
 

float TransferFunc::mUpperDivisor [private]
 

unsigned short TransferFunc::mUpperThr [private]
 


The documentation for this class was generated from the following files:
Generated on Mon Dec 19 00:13:46 2005 for Visualization by  doxygen 1.4.5