#include <TransferFunction.h>
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< V2COControlPoint > | m_vecV2COControlPoints |
Classes | |
| class | V2COControlPoint |
| TransferFunction::TransferFunction | ( | ) | [inline] |
Default constructor
| int TransferFunction::getNumV2COElements | ( | ) | [inline] |
Returns number of V2CO control points
| V2COControlPoint TransferFunction::getV2COElement | ( | int | pIndex | ) | [inline] |
Returns V2CO control point at the given index
| pIndex | index of the control pont |
| void TransferFunction::updateV2COElement | ( | int | pIndex, | |
| float | pValue, | |||
| float | pOpacity, | |||
| Color | pColor | |||
| ) | [inline] |
updates the V2CO control point at the given index
| 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
| 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
| pIndex | index of the control point |
| void TransferFunction::sort | ( | ) | [inline] |
| void TransferFunction::storeFile | ( | char * | pFilename | ) | [inline] |
Store transfer function into file
| pFilename | filename where the transfer function will be stored in |
| void TransferFunction::loadFile | ( | char * | pFilename | ) | [inline] |
Load transfer function from file
| pFilename | filename where the transfer function will be loaded from |
| float* TransferFunction::getV2OData | ( | ) | [inline] |
Returns texture data of V2O control points
| char* TransferFunction::getV2CData | ( | ) | [inline] |
Returns texture data of V2C control points
| int TransferFunction::getDataSize | ( | ) | [inline] |
Returns texture data size
vector<V2COControlPoint> TransferFunction::m_vecV2COControlPoints [private] |
list of V2CO control points
1.5.4