13#ifndef ML_LUTFCOMBINE_H
14#define ML_LUTFCOMBINE_H
65 ADD, BLEND, SUBTRACT, MULTIPLY, MIN, MAX,
71 MASK_R = 0, MASK_G, MASK_B,
MASK_A, MASK_RGB, MASK_RGBA,
118 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,...
stores a lut function entry that should be combined
A LUT function combining several input LUTs into a single output LUT.
int getDepth(void) const override
Get native LUT depth (= number of layers, numbering starts at 0)
Mask
gives a mask that is used for combining
double getNativeMaxIndex(void) const override
Get native maximum index.
void addEntry(const LUTEntry &entry)
add an entry
Mode
gives a mode that is used for combining
ML_CLASS_HEADER(LUTFCombine)
const LUTEntry & getEntry(int i) const
get the ith entry (no range checking!)
unsigned int getNumEntries() const
get number of entries
std::vector< LUTEntry > _entries
double getNativeMaxValue(void) const override
Get native maximum LUT value.
bool renderLUT(LUTData< T > *lutData, LUTIterator< T > *lutIterator, double minIndex, double maxIndex, bool rescale) const
Render the output LUT into lutData using lutIterator to access and increment the LUT pointers.
LUTFCombine(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.
void clearEntries()
clear the entries
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.
double getNativeMinValue(void) const override
Get native minimum LUT value.
bool isValid(void) const override
Return true if the LUT function is valid.
int getHeight(void) const override
Get native LUT height (= number of rows, numbering starts at 0)
double getNativeMinIndex(void) const override
Get native minimum index.
Common base class for lookup tables.
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.