13#ifndef ML_LUTFSELECT_H
14#define ML_LUTFSELECT_H
47 virtual int getRow (
void)
const {
return _row; }
53 virtual int getLayer (
void)
const {
return _layer; }
100 template <
typename T>
Untyped base class for LUTData template classes.
A LUTData object stores an instance of a LUT, rendered for a specified visual type,...
Select a 1D-LUT from a specified row/layer of a 2D- or 3D-LUT.
bool renderLUT(LUTData< T > *lutData, LUTIterator< T > *lutIterator, double minIndex, double maxIndex, bool rescaled) const
Perform LUT rendering, return true if successful.
const LUTFunction * _inLUT
Input LUT.
virtual void setInputLUT(const LUTFunction *inLUT)
Set input LUT, set relative flag to true if input LUT is relative.
double getNativeMinIndex(void) const override
Get native minimum index.
virtual void setLayer(int layer)
Set layer index.
double getNativeMaxValue(void) const override
Get native maximum LUT value.
virtual void setRow(int row)
Set row index.
LUTFSelect(void)
Constructor.
bool renderLUTNative(LUTDataBase *lutData, LUTIteratorBase *lutIterator) const override
Render the lookup table into lutData using lutIterator to access and increment the LUT pointers.
ML_CLASS_HEADER(LUTFSelect)
bool isValid(void) const override
Return true if the LUT function is valid.
double getNativeMaxIndex(void) const override
Get native maximum index.
virtual int getRow(void) const
Get row index.
double getNativeMinValue(void) const override
Get native minimum LUT value.
bool renderLUTRescaled(LUTDataBase *lutData, LUTIteratorBase *lutIterator, double minIndex, double maxIndex) const override
Render rescaled LUT into lutData using lutIterator to access and increment the LUT pointers.
virtual int getLayer(void) const
Get layer index.
Common base class for lookup tables.
void changed(void)
Assign a new LUT ID.
LUT iterator base class with type independent functionality and declarations.
The LUTIterator class template is used by a LUTFunction object for rendering into a LUTData object.
#define MLLUT_EXPORT
System specific macro definitions.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.