TransferFunction Class Reference

#include <TransferFunction.h>

List of all members.

Public Member Functions

 TransferFunction ()
int getNumV2COElements ()
V2COControlPoint getV2COElement (int pIndex)
void updateV2COElement (int pIndex, float pValue, float pOpacity, Color pColor)
void addV2COElement (float pValue, float pOpacity, Color pColor)
void removeV2COElement (int pIndex)
void sort ()
void storeFile (char *pFilename)
void loadFile (char *pFilename)
float * getV2OData ()
char * getV2CData ()
int getDataSize ()

Private Attributes

vector< V2COControlPointm_vecV2COControlPoints

Classes

class  V2COControlPoint


Constructor & Destructor Documentation

TransferFunction::TransferFunction (  )  [inline]

Default constructor


Member Function Documentation

int TransferFunction::getNumV2COElements (  )  [inline]

Returns number of V2CO control points

Returns:
number of V2CO control points

V2COControlPoint TransferFunction::getV2COElement ( int  pIndex  )  [inline]

Returns V2CO control point at the given index

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

void TransferFunction::updateV2COElement ( int  pIndex,
float  pValue,
float  pOpacity,
Color  pColor 
) [inline]

updates the V2CO control point at the given index

Parameters:
pIndex index of the control point
pValue new Value of the control point
pOpacity new opacity for the control point
pColor new color for the control point

void TransferFunction::addV2COElement ( float  pValue,
float  pOpacity,
Color  pColor 
) [inline]

adds a new V2CO control point

Parameters:
pValue Value of the new control point
pOpacity opacity for the new control point
pColor color for the new control point

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

removes the V2CO control point at the given index

Parameters:
pIndex index of the control point

void TransferFunction::sort (  )  [inline]

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::getV2OData (  )  [inline]

Returns texture data of V2O control points

Returns:
texture data

char* TransferFunction::getV2CData (  )  [inline]

Returns texture data of V2C control points

Returns:
texture data

int TransferFunction::getDataSize (  )  [inline]

Returns texture data size

Returns:
texture date


Member Data Documentation

vector<V2COControlPoint> TransferFunction::m_vecV2COControlPoints [private]

list of V2CO control points


The documentation for this class was generated from the following file:
Generated on Sun Jan 20 16:06:34 2008 for Flow Visualisation by  doxygen 1.5.4