#include <TransferFunctionManager.h>
Classes | |
class | InterpolationNode |
Class InterpolationNode. More... | |
Public Member Functions | |
TransferFunctionManager () | |
Konstruktor. | |
TransferFunctionManager (Volume volume, int histLength) | |
Konstruktor. | |
~TransferFunctionManager () | |
Destruktor. | |
std::vector< int > | getHist () |
returns the Histogram | |
int | getHistLength () |
returns thelength of the Histogram | |
float * | generateLookUp () |
generates the LookUpTable | |
void | clear () |
void | addInterpolationNode (byte r, byte g, byte b, byte alpha, int value) |
adds a InterpolationNode | |
void | setInterpolationNode (int index, byte r, byte g, byte b, byte alpha, int value) |
resets a selected InterpolationNode | |
void | removeInterpolationNode (int index) |
removes a InterpolationNode | |
std::vector< InterpolationNode > | getInterpolationNodes () |
returns all InterpoltaionNodes | |
void | deleteAllInterpolationNodes () |
deletes all InterpolationNodes | |
Public Attributes | |
float * | lookUp |
pointer that stores the LookUp-Values | |
Protected Attributes | |
std::vector< int > | hist |
saves the Histogram | |
int | histLength |
saves the length of the Histogram | |
std::vector< InterpolationNode > | interpolationVec |
saves all InterpolationNodes | |
InterpolationNode | beginNode |
first Interpolation Node | |
InterpolationNode | endNode |
last Interpolation Node |
Is the Class of the TransferFunctionManager
TransferFunctionManager::TransferFunctionManager | ( | ) |
Konstruktor.
TransferFunctionManager::TransferFunctionManager | ( | Volume | volume, | |
int | histLength | |||
) |
Konstruktor.
TransferFunctionManager::~TransferFunctionManager | ( | ) |
Destruktor.
void TransferFunctionManager::addInterpolationNode | ( | byte | r, | |
byte | g, | |||
byte | b, | |||
byte | alpha, | |||
int | value | |||
) |
adds a InterpolationNode
void TransferFunctionManager::clear | ( | ) |
clear cleares all Info inside the TransferFunction Manager and resets the TransferFunction (always used, when a new Volume is loaded)
void TransferFunctionManager::deleteAllInterpolationNodes | ( | ) |
deletes all InterpolationNodes
float * TransferFunctionManager::generateLookUp | ( | ) |
generates the LookUpTable
std::vector< int > TransferFunctionManager::getHist | ( | ) |
returns the Histogram
int TransferFunctionManager::getHistLength | ( | ) |
returns thelength of the Histogram
std::vector< TransferFunctionManager::InterpolationNode > TransferFunctionManager::getInterpolationNodes | ( | ) |
returns all InterpoltaionNodes
void TransferFunctionManager::removeInterpolationNode | ( | int | index | ) |
removes a InterpolationNode
void TransferFunctionManager::setInterpolationNode | ( | int | index, | |
byte | r, | |||
byte | g, | |||
byte | b, | |||
byte | alpha, | |||
int | value | |||
) |
resets a selected InterpolationNode
InterpolationNode TransferFunctionManager::beginNode [protected] |
first Interpolation Node
InterpolationNode TransferFunctionManager::endNode [protected] |
last Interpolation Node
std::vector<int> TransferFunctionManager::hist [protected] |
saves the Histogram
int TransferFunctionManager::histLength [protected] |
saves the length of the Histogram
std::vector<InterpolationNode> TransferFunctionManager::interpolationVec [protected] |
saves all InterpolationNodes
pointer that stores the LookUp-Values