#include <TransferFunction.h>
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< I2COControlPoint > | m_vecI2COControlPoints |
| vector< G2OControlPoint > | m_vecG2OControlPoints |
Classes | |
| class | G2OControlPoint |
| class | I2COControlPoint |
| TransferFunction::TransferFunction | ( | ) | [inline] |
Default constructor
| int TransferFunction::getNumI2COElements | ( | ) | [inline] |
Returns number of I2CO control points
| I2COControlPoint TransferFunction::getI2COElement | ( | int | pIndex | ) | [inline] |
Returns I2CO control point at the given index
| pIndex | index of the control pont |
| void TransferFunction::updateI2COElement | ( | int | pIndex, | |
| float | pIntensity, | |||
| float | pOpacity, | |||
| Color | pColor | |||
| ) | [inline] |
updates the I2CO control point at the given index
| 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
| 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
| pIndex | index of the control point |
| int TransferFunction::getNumG2OElements | ( | ) | [inline] |
Returns number of G2O control points
| G2OControlPoint TransferFunction::getG2OElement | ( | int | pIndex | ) | [inline] |
Returns G2O control point at the given index
| 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
| 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
| 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
| 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
| 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::getG2OData | ( | ) | [inline] |
Returns texture data of G2O control points
| float* TransferFunction::getI2OData | ( | ) | [inline] |
Returns texture data of I2O control points
| float* TransferFunction::getI2CData | ( | ) | [inline] |
Returns texture data of I2C control points
| int TransferFunction::getDataSize | ( | ) | [inline] |
Returns texture data size
vector<I2COControlPoint> TransferFunction::m_vecI2COControlPoints [private] |
list of I2CO control points
vector<G2OControlPoint> TransferFunction::m_vecG2OControlPoints [private] |
list of G2O control points
1.5.4