MeVisLabToolboxReference
|
Select a 1D-LUT from a specified row/layer of a 2D- or 3D-LUT. More...
#include <mlLUTFSelect.h>
Public Member Functions | |
LUTFSelect (void) | |
Constructor. | |
virtual void | setInputLUT (const LUTFunction *inLUT) |
Set input LUT, set relative flag to true if input LUT is relative. | |
Transform parameters | |
virtual void | setRow (int row) |
Set row index. | |
virtual int | getRow (void) const |
Get row index. | |
virtual void | setLayer (int layer) |
Set layer index. | |
virtual int | getLayer (void) const |
Get layer index. | |
LUT properties | |
virtual bool | isValid (void) const |
Return true if the LUT function is valid. | |
virtual int | getNativeMinIndex (void) const |
Get native minimum index. | |
virtual int | getNativeMaxIndex (void) const |
Get native maximum index. | |
virtual double | getNativeMinValue (void) const |
Get native minimum LUT value. | |
virtual double | getNativeMaxValue (void) const |
Get native maximum LUT value. | |
Protected Member Functions | |
ML_CLASS_HEADER (LUTFSelect) | |
LUT implementation | |
virtual bool | renderLUTNative (LUTDataBase *lutData, LUTIteratorBase *lutIterator) const |
Render the lookup table into lutData using lutIterator to access and increment the LUT pointers. | |
virtual bool | renderLUTRescaled (LUTDataBase *lutData, LUTIteratorBase *lutIterator, double minIndex, double maxIndex) const |
Render rescaled LUT into lutData using lutIterator to access and increment the LUT pointers. | |
template<typename T > | |
bool | renderLUT (LUTData< T > *lutData, LUTIterator< T > *lutIterator, double minIndex, double maxIndex, bool rescaled) const |
Perform LUT rendering, return true if successful. | |
Protected Attributes | |
const LUTFunction * | _inLUT |
Input LUT. | |
int | _row |
Row and layer index of selected 1D-LUT. | |
int | _layer |
Select a 1D-LUT from a specified row/layer of a 2D- or 3D-LUT.
Definition at line 30 of file mlLUTFSelect.h.
ml::LUTFSelect::LUTFSelect | ( | void | ) |
Constructor.
virtual int ml::LUTFSelect::getLayer | ( | void | ) | const [inline, virtual] |
Get layer index.
Definition at line 55 of file mlLUTFSelect.h.
virtual int ml::LUTFSelect::getNativeMaxIndex | ( | void | ) | const [virtual] |
Get native maximum index.
Reimplemented from ml::LUTFunction.
virtual double ml::LUTFSelect::getNativeMaxValue | ( | void | ) | const [virtual] |
Get native maximum LUT value.
Reimplemented from ml::LUTFunction.
virtual int ml::LUTFSelect::getNativeMinIndex | ( | void | ) | const [virtual] |
Get native minimum index.
Reimplemented from ml::LUTFunction.
virtual double ml::LUTFSelect::getNativeMinValue | ( | void | ) | const [virtual] |
Get native minimum LUT value.
Reimplemented from ml::LUTFunction.
virtual int ml::LUTFSelect::getRow | ( | void | ) | const [inline, virtual] |
Get row index.
Definition at line 49 of file mlLUTFSelect.h.
virtual bool ml::LUTFSelect::isValid | ( | void | ) | const [virtual] |
Return true if the LUT function is valid.
Reimplemented from ml::LUTFunction.
ml::LUTFSelect::ML_CLASS_HEADER | ( | LUTFSelect | ) | [protected] |
bool ml::LUTFSelect::renderLUT | ( | LUTData< T > * | lutData, |
LUTIterator< T > * | lutIterator, | ||
double | minIndex, | ||
double | maxIndex, | ||
bool | rescaled | ||
) | const [protected] |
Perform LUT rendering, return true if successful.
virtual bool ml::LUTFSelect::renderLUTNative | ( | LUTDataBase * | lutData, |
LUTIteratorBase * | lutIterator | ||
) | const [protected, virtual] |
Render the lookup table into lutData using lutIterator to access and increment the LUT pointers.
Both lutData and lutIterator should be type-cast to a derived, type specific class pointer, according to lutData->getDataType(). Return true if successful.
Implements ml::LUTFunction.
virtual bool ml::LUTFSelect::renderLUTRescaled | ( | LUTDataBase * | lutData, |
LUTIteratorBase * | lutIterator, | ||
double | minIndex, | ||
double | maxIndex | ||
) | const [protected, virtual] |
Render rescaled LUT into lutData using lutIterator to access and increment the LUT pointers.
Both lutData and lutIterator should be type-cast to a derived, type specific class pointer, according to lutData->getDataType(). The LUT is rendered for range minIndex .. maxIndex, but resampled to the index range specified in lutData. Return true if successful.
Reimplemented from ml::LUTFunction.
virtual void ml::LUTFSelect::setInputLUT | ( | const LUTFunction * | inLUT | ) | [virtual] |
Set input LUT, set relative flag to true if input LUT is relative.
virtual void ml::LUTFSelect::setLayer | ( | int | layer | ) | [inline, virtual] |
Set layer index.
Definition at line 52 of file mlLUTFSelect.h.
References ml::LUTFunction::changed().
virtual void ml::LUTFSelect::setRow | ( | int | row | ) | [inline, virtual] |
const LUTFunction* ml::LUTFSelect::_inLUT [protected] |
Input LUT.
Definition at line 110 of file mlLUTFSelect.h.
int ml::LUTFSelect::_layer [protected] |
Definition at line 113 of file mlLUTFSelect.h.
int ml::LUTFSelect::_row [protected] |
Row and layer index of selected 1D-LUT.
Definition at line 113 of file mlLUTFSelect.h.