13 #ifndef ML_LUTFCOLOR_H
14 #define ML_LUTFCOLOR_H
47 virtual void getColor (
double *r,
double *g,
double *b)
const;
50 virtual void setColor (
double r,
double g,
double b);
59 virtual double getAlpha (
void)
const {
return _alpha; }
109 double minIndex,
double maxIndex)
const override;
114 template <
typename T>
116 double minIndex,
double maxIndex)
const;
Untyped base class for LUTData template classes.
A LUTData object stores an instance of a LUT, rendered for a specified visual type,...
LUT transform to apply or remove color to an input LUT.
virtual void setVisualType(LUTVisualType visualType)
Set visual type.
virtual double getAlpha(void) const
Get alpha factor.
int getHeight(void) const override
Get native LUT height (= number of rows, numbering starts at 0)
virtual double getIntensity(void) const
Get intensity factor.
int getDepth(void) const override
Get native LUT depth (= number of layers, numbering starts at 0)
double getNativeMaxIndex(void) const override
Get native maximum index.
LUTFunction * _inLUT
Input LUT.
virtual void setIntensity(double intensity)
Set intensity factor.
bool renderLUT(LUTData< T > *lutData, LUTIterator< T > *lutIterator, bool rescaled, double minIndex, double maxIndex) const
Render the colored LUT into lutData.
double _alpha
Alpha factor.
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.
ML_CLASS_HEADER(LUTFColor)
double getNativeMaxValue(void) const override
Get native maximum LUT value.
virtual void setColor(double r, double g, double b)
Set color factor.
double getNativeMinValue(void) const override
Get native minimum LUT value.
virtual void setAlpha(double alpha)
Set alpha factor.
bool renderLUTNative(LUTDataBase *lutData, LUTIteratorBase *lutIterator) const override
Render the lookup table into lutData using lutIterator to access and increment the LUT pointers.
double getNativeMinIndex(void) const override
Get native minimum index.
double _intensity
Intensity factor.
virtual void setInputLUT(LUTFunction *inLUT)
Set input LUT.
virtual void getColor(double *r, double *g, double *b) const
Store color factor in *r, *g and *b (if not null)
LUTFColor(void)
Constructor.
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.
LUTVisualType
LUT visual type constants to identify the visual interpretation of the individual LUT channels.