13#ifndef ML_LUTFCOMPOSE_H
14#define ML_LUTFCOMPOSE_H
137 double minIndex,
double maxIndex)
const override;
141 template <
typename T>
LUTVisualType getVisualType(void) const
Get visual type.
double getNativeMinValue(void) const override
Get native minimum LUT value.
int getHeight(void) const override
Get native LUT height (= number of rows, numbering starts at 0).
int getDepth(void) const override
Get native LUT depth (= number of layers, numbering starts at 0).
static unsigned int defaultResolution
Default value for the intermediate resolution.
double getNativeMaxIndex(void) const override
Get native maximum index.
bool renderRescaled(LUTDataBase *lutData, double minIndex, double maxIndex) const override
double getNativeMaxValue(void) const override
Get native maximum LUT value.
bool isValid(void) const override
Return true if the LUT function is valid.
void clear(void)
Clear list of input LUTs.
LUTVisualType getRenderType(LUTDataBase *lutData) const override
ML_CLASS_HEADER(LUTFCompose)
unsigned int getResolution(void) const
Get intermediate resolution.
unsigned int getNumInputLUTs(void) const
Get number of input LUTs.
double getNativeMinIndex(void) const override
Get native minimum index.
unsigned int _resolution
Intermediate resolution.
bool renderLUTRescaled(LUTDataBase *lutData, LUTIteratorBase *lutIterator, double minIndex, double maxIndex) const override
bool render(LUTDataBase *lutData) const override
unsigned int getInputLUTWidth(unsigned int index) const
Get the width of the index range for which the specified input LUT needs to be rendered.
bool renderLUT(LUTData< T > *lutData, LUTIterator< T > *lutIterator, double minIndex, double maxIndex, bool rescale) const
void setResolution(unsigned int resolution)
Set intermediate resolution (if not obtained from input LUT).
void addInputLUT(const LUTFunction &inputLUT)
Add an input LUT.
std::vector< const LUTFunction * > _inputLUTs
List of input LUTs.
LUTFCompose(void)
Constructor.
bool renderLUTNative(LUTDataBase *lutData, LUTIteratorBase *lutIterator) const override
const LUTFunction * getInputLUT(unsigned int i) const
Get pointer to i-th input LUT (or NULL if out of range).
LUTFunction(LUTVisualType vt, bool relative)
Constructor.
LUT iterator base class with type independent functionality and declarations.
#define MLLUT_EXPORT
System specific macro definitions.