MeVisLabToolboxReference
|
LUT transform to apply or remove color to an input LUT. More...
#include <mlLUTFColor.h>
Public Member Functions | |
LUTFColor (void) | |
Constructor. | |
virtual void | setInputLUT (LUTFunction *inLUT) |
Set input LUT. | |
Transform parameters | |
virtual void | setVisualType (LUTVisualType visualType) |
Set visual type. | |
virtual void | getColor (double *r, double *g, double *b) const |
Store color factor in *r, *g and *b (if not null) | |
virtual void | setColor (double r, double g, double b) |
Set color factor. | |
virtual double | getIntensity (void) const |
Get intensity factor. | |
virtual void | setIntensity (double intensity) |
Set intensity factor. | |
virtual double | getAlpha (void) const |
Get alpha factor. | |
virtual void | setAlpha (double alpha) |
Set alpha factor. | |
LUT properties | |
virtual int | getNativeMinIndex (void) const |
Get native minimum index. | |
virtual int | getNativeMaxIndex (void) const |
Get native maximum index. | |
virtual int | getHeight (void) const |
Get native LUT height (= number of rows, numbering starts at 0) | |
virtual int | getDepth (void) const |
Get native LUT depth (= number of layers, numbering starts at 0) | |
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 (LUTFColor) | |
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, bool rescaled, double minIndex, double maxIndex) const |
Render the colored LUT into lutData. | |
Protected Attributes | |
LUTFunction * | _inLUT |
Input LUT. | |
double | _color [3] |
Color factor. | |
double | _intensity |
Intensity factor. | |
double | _alpha |
Alpha factor. |
LUT transform to apply or remove color to an input LUT.
Definition at line 30 of file mlLUTFColor.h.
ml::LUTFColor::LUTFColor | ( | void | ) |
Constructor.
virtual double ml::LUTFColor::getAlpha | ( | void | ) | const [inline, virtual] |
Get alpha factor.
Definition at line 61 of file mlLUTFColor.h.
virtual void ml::LUTFColor::getColor | ( | double * | r, |
double * | g, | ||
double * | b | ||
) | const [virtual] |
Store color factor in *r, *g and *b (if not null)
virtual int ml::LUTFColor::getDepth | ( | void | ) | const [virtual] |
Get native LUT depth (= number of layers, numbering starts at 0)
Reimplemented from ml::LUTFunction.
virtual int ml::LUTFColor::getHeight | ( | void | ) | const [virtual] |
Get native LUT height (= number of rows, numbering starts at 0)
Reimplemented from ml::LUTFunction.
virtual double ml::LUTFColor::getIntensity | ( | void | ) | const [inline, virtual] |
Get intensity factor.
Definition at line 55 of file mlLUTFColor.h.
virtual int ml::LUTFColor::getNativeMaxIndex | ( | void | ) | const [virtual] |
Get native maximum index.
Reimplemented from ml::LUTFunction.
virtual double ml::LUTFColor::getNativeMaxValue | ( | void | ) | const [virtual] |
Get native maximum LUT value.
Reimplemented from ml::LUTFunction.
virtual int ml::LUTFColor::getNativeMinIndex | ( | void | ) | const [virtual] |
Get native minimum index.
Reimplemented from ml::LUTFunction.
virtual double ml::LUTFColor::getNativeMinValue | ( | void | ) | const [virtual] |
Get native minimum LUT value.
Reimplemented from ml::LUTFunction.
ml::LUTFColor::ML_CLASS_HEADER | ( | LUTFColor | ) | [protected] |
bool ml::LUTFColor::renderLUT | ( | LUTData< T > * | lutData, |
LUTIterator< T > * | lutIterator, | ||
bool | rescaled, | ||
double | minIndex, | ||
double | maxIndex | ||
) | const [protected] |
Render the colored LUT into lutData.
If rescaled is true, render LUT rescaled with respect to range minIndex .. maxIndex. Return true if successful.
virtual bool ml::LUTFColor::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::LUTFColor::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::LUTFColor::setAlpha | ( | double | alpha | ) | [virtual] |
Set alpha factor.
virtual void ml::LUTFColor::setColor | ( | double | r, |
double | g, | ||
double | b | ||
) | [virtual] |
Set color factor.
virtual void ml::LUTFColor::setInputLUT | ( | LUTFunction * | inLUT | ) | [virtual] |
Set input LUT.
virtual void ml::LUTFColor::setIntensity | ( | double | intensity | ) | [virtual] |
Set intensity factor.
virtual void ml::LUTFColor::setVisualType | ( | LUTVisualType | visualType | ) | [inline, virtual] |
Set visual type.
Definition at line 46 of file mlLUTFColor.h.
References ml::LUTFunction::changed().
double ml::LUTFColor::_alpha [protected] |
Alpha factor.
Definition at line 133 of file mlLUTFColor.h.
double ml::LUTFColor::_color[3] [protected] |
Color factor.
Definition at line 127 of file mlLUTFColor.h.
LUTFunction* ml::LUTFColor::_inLUT [protected] |
Input LUT.
Definition at line 124 of file mlLUTFColor.h.
double ml::LUTFColor::_intensity [protected] |
Intensity factor.
Definition at line 130 of file mlLUTFColor.h.