TransferFunction Class Reference

#include <TransferFunction.h>

List of all members.

Public Member Functions

 TransferFunction ()
int getNumI2COElements ()
I2COControlPoint getI2COElement (int pIndex)
void updateI2COElement (int pIndex, float pIntensity, float pOpacity, Color pColor)
void addI2COElement (float pIntensity, float pOpacity, Color pColor)
void removeI2COElement (int pIndex)
int getNumG2OElements ()
G2OControlPoint getG2OElement (int pIndex)
void updateG2OElement (int pIndex, float pValue, float pOpacity)
void addG2OElement (float pValue, float pOpacity)
void removeG2OElement (int pIndex)
void sort ()
void storeFile (char *pFilename)
void loadFile (char *pFilename)
float * getG2OData ()
float * getI2OData ()
float * getI2CData ()
int getDataSize ()

Private Attributes

vector< I2COControlPointm_vecI2COControlPoints
vector< G2OControlPointm_vecG2OControlPoints

Classes

class  G2OControlPoint
class  I2COControlPoint


Constructor & Destructor Documentation

TransferFunction::TransferFunction (  )  [inline]

Default constructor


Member Function Documentation

int TransferFunction::getNumI2COElements (  )  [inline]

Returns number of I2CO control points

Returns:
number of I2CO control points

I2COControlPoint TransferFunction::getI2COElement ( int  pIndex  )  [inline]

Returns I2CO control point at the given index

Parameters:
pIndex index of the control pont
Returns:
control point of given index

void TransferFunction::updateI2COElement ( int  pIndex,
float  pIntensity,
float  pOpacity,
Color  pColor 
) [inline]

updates the I2CO control point at the given index

Parameters:
pIndex index of the control point
pIntensity new intensity of the control point
pOpacity new opacity for the control point
pColor new color for the control point

void TransferFunction::addI2COElement ( float  pIntensity,
float  pOpacity,
Color  pColor 
) [inline]

adds a new I2CO control point

Parameters:
pIntensity intensity of the new control point
pOpacity opacity for the new control point
pColor color for the new control point

void TransferFunction::removeI2COElement ( int  pIndex  )  [inline]

removes the I2CO control point at the given index

Parameters:
pIndex index of the control point

int TransferFunction::getNumG2OElements (  )  [inline]

Returns number of G2O control points

Returns:
number of G2O control points

G2OControlPoint TransferFunction::getG2OElement ( int  pIndex  )  [inline]

Returns G2O control point at the given index

Parameters:
pIndex index of the control point

void TransferFunction::updateG2OElement ( int  pIndex,
float  pValue,
float  pOpacity 
) [inline]

updates the G2O control point at the given index

Parameters:
pIndex index of the control point
pValue new gradient value of the control point
pOpacity new opacity for the control point

void TransferFunction::addG2OElement ( float  pValue,
float  pOpacity 
) [inline]

adds a new G2O control point

Parameters:
pValue gradient value of the new control point
pOpacity opacity for the new control point

void TransferFunction::removeG2OElement ( int  pIndex  )  [inline]

removes the G2O control point at the given index

Parameters:
pIndex index of the control point

void TransferFunction::sort (  )  [inline]

sort control points by intensity/value

void TransferFunction::storeFile ( char *  pFilename  )  [inline]

Store transfer function into file

Parameters:
pFilename filename where the transfer function will be stored in

void TransferFunction::loadFile ( char *  pFilename  )  [inline]

Load transfer function from file

Parameters:
pFilename filename where the transfer function will be loaded from

float* TransferFunction::getG2OData (  )  [inline]

Returns texture data of G2O control points

Returns:
texture data

float* TransferFunction::getI2OData (  )  [inline]

Returns texture data of I2O control points

Returns:
texture data

float* TransferFunction::getI2CData (  )  [inline]

Returns texture data of I2C control points

Returns:
texture data

int TransferFunction::getDataSize (  )  [inline]

Returns texture data size

Returns:
texture date


Member Data Documentation

vector<I2COControlPoint> TransferFunction::m_vecI2COControlPoints [private]

list of I2CO control points

vector<G2OControlPoint> TransferFunction::m_vecG2OControlPoints [private]

list of G2O control points


The documentation for this class was generated from the following file:
Generated on Fri Nov 30 16:22:24 2007 for Volume Visualisation by  doxygen 1.5.4