|
MeVisLab Toolbox Reference
|
An RGBA LUT consisting of a RGB ramp and an alpha ramp. More...
#include <mlLUTFRampPair.h>
Public Member Functions | |
| LUTFRampPair (void) | |
| Constructor. | |
LUT parameters | |
| void | setRelative (bool relative) override |
| Set/reset relative flag. | |
| virtual double | getRGBCenter (void) const |
| Get RGB ramp center. | |
| virtual void | setRGBCenter (double center) |
| Set RGB ramp center. | |
| virtual double | getRGBWidth (void) const |
| Get RGB ramp width. | |
| virtual void | setRGBWidth (double width) |
| Set RGB ramp width. | |
| virtual void | getRGBStart (double *r, double *g, double *b) const |
| Store start color RGB in r, g, b (if not null). | |
| virtual void | setRGBStart (double r, double g, double b) |
| Set start color RGB. | |
| virtual void | getRGBEnd (double *r, double *g, double *b) const |
| Store end color RGB in r, g, b (if not null). | |
| virtual void | setRGBEnd (double r, double g, double b) |
| Set end color RGB. | |
| virtual double | getAlphaCenter (void) const |
| Get alpha ramp center. | |
| virtual void | setAlphaCenter (double center) |
| Set alpha ramp center. | |
| virtual double | getAlphaWidth (void) const |
| Get alpha ramp width. | |
| virtual void | setAlphaWidth (double width) |
| Set alpha ramp width. | |
| virtual double | getAlphaStart (void) const |
| Get alpha start value. | |
| virtual void | setAlphaStart (double a) |
| Set alpha start value. | |
| virtual double | getAlphaEnd (void) const |
| Get alpha end value. | |
| virtual void | setAlphaEnd (double a) |
| Set alpha end value. | |
LUT properties | |
| double | getNativeMinIndex (void) const override |
| Get native minimum index. | |
| double | getNativeMaxIndex (void) const override |
| Get native maximum index. | |
| Public Member Functions inherited from ml::LUTFunction | |
| LUTFunction (LUTVisualType vt, bool relative) | |
| Constructor. | |
| void | changed (void) |
| void | overwriteUniqueId (unsigned int newId) |
| Overwrites the unique id. NOTE: use this only if you really know what you are doing! | |
| virtual bool | isValid (void) const |
| Return true if the LUT function is valid. An invalid LUT function can not be rendered. | |
| virtual LUTVisualType | getVisualType (void) const |
| Get LUT visual type. | |
| virtual bool | isRelative (void) const |
| Is LUT relative? | |
| virtual LUTDimensionality | getDimensionality (void) const |
| Get dimensionality (1, 2, or 3), usually depending on height and depth. | |
| 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. | |
| unsigned int | getId (void) const |
| virtual bool | render (LUTDataBase *lutData) const |
| virtual bool | renderRescaled (LUTDataBase *lutData, double minIndex, double maxIndex) const |
| Public Member Functions inherited from ml::Base | |
| Base () | |
| Constructor. | |
| virtual | ~Base () |
| Destructor. | |
| virtual Base * | deepCopy () const |
| bool | isOfAllowedType (const std::vector< const RuntimeType * > &types) const |
| virtual bool | isRefCountedBase () const |
| Returns whether the instance is derived from RefCountedBase. | |
| virtual std::string | detailString () const |
| virtual bool | implementsPersistence (PersistenceInterface) const |
| virtual std::string | persistentState () const |
| Returns a string describing the object's internal state. | |
| virtual void | setPersistentState (const std::string &state) |
| virtual void | addStateToTree (TreeNode *) const |
| Attaches the object state as children of the given parent node. | |
| virtual void | readStateFromTree (TreeNode *) |
| Reads the object state from the children of the given parent node. | |
| virtual void | writeTo (AbstractPersistenceOutputStream *) const |
| virtual void | readFrom (AbstractPersistenceInputStream *, int) |
Protected Member Functions | |
| ML_CLASS_HEADER (LUTFRampPair) | |
LUT implementation | |
| bool | renderLUTNative (LUTDataBase *lutData, LUTIteratorBase *lutIterator) const override |
| bool | renderLUTRescaled (LUTDataBase *lutData, LUTIteratorBase *lutIterator, double minIndex, double maxIndex) const override |
| virtual LUTDataBase * | createLUT (LUTDataBase *lutData) const |
| Create single-channel LUT with same index and entry range as lutData. | |
| template<typename T> | |
| bool | copyLUT (LUTData< T > *lutData, LUTIterator< T > *lutIterator, const LUTData< double > *rgbLut, const LUTData< T > *alphaLut) const |
| Protected Member Functions inherited from ml::LUTFunction | |
| template<typename T> | |
| bool | renderT (LUTData< T > *lutData, bool rescaled, double minIndex, double maxIndex) const |
| template<typename T> | |
| bool | interpolateLUT (LUTData< T > *lutData, LUTIterator< T > *lutIterator, double minIndex, double maxIndex) const |
| ML_ABSTRACT_CLASS_HEADER (LUTFunction) | |
| virtual LUTVisualType | getRenderType (LUTDataBase *) const |
Protected Attributes | |
| LUTFPrimitive | _rgbRamp |
| RGB ramp LUT function. | |
| LUTFPrimitive | _alphaRamp |
| Alpha ramp LUT function. | |
| double | _rgbStart [3] |
| Start and end RGB. | |
| double | _rgbEnd [3] |
| Protected Attributes inherited from ml::LUTFunction | |
| LUTVisualType | _visualType |
| LUT visual type. | |
| bool | _relative |
| Flag for relative LUT. | |
| unsigned int | _id |
Additional Inherited Members | |
| Public Types inherited from ml::Base | |
| enum | PersistenceInterface { PersistenceByString , PersistenceByTreeNode , PersistenceByStream } |
| This enum describes the different persistence interfaces available. More... | |
| Static Public Member Functions inherited from ml::LUTFunction | |
| static unsigned int | generateUniqueId (void) |
| Static Protected Attributes inherited from ml::LUTFunction | |
| static unsigned int | _gNextId |
| Global storage for next unused LUT ID to ensure uniqueness. | |
An RGBA LUT consisting of a RGB ramp and an alpha ramp.
Definition at line 29 of file mlLUTFRampPair.h.
| ml::LUTFRampPair::LUTFRampPair | ( | void | ) |
Constructor.
Referenced by ML_CLASS_HEADER().
|
protected |
Copy the single-channel LUTs rgbLut and alphaLut into lutData, applying RGB start and end color to the RGB channels and using lutIterator to access and increment the LUT pointers. Return true if successful.
|
protectedvirtual |
Create single-channel LUT with same index and entry range as lutData.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
overridevirtual |
Get native maximum index.
Reimplemented from ml::LUTFunction.
|
overridevirtual |
Get native minimum index.
Reimplemented from ml::LUTFunction.
|
inlinevirtual |
|
virtual |
Store end color RGB in r, g, b (if not null).
|
virtual |
Store start color RGB in r, g, b (if not null).
|
inlinevirtual |
|
protected |
References LUTFRampPair().
|
overrideprotectedvirtual |
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.
|
overrideprotectedvirtual |
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.
|
inlinevirtual |
Set alpha ramp center.
Definition at line 71 of file mlLUTFRampPair.h.
References _alphaRamp, and ml::LUTFunction::changed().
|
inlinevirtual |
Set alpha end value.
Definition at line 89 of file mlLUTFRampPair.h.
References _alphaRamp, and ml::LUTFunction::changed().
|
inlinevirtual |
Set alpha start value.
Definition at line 83 of file mlLUTFRampPair.h.
References _alphaRamp, and ml::LUTFunction::changed().
|
inlinevirtual |
Set alpha ramp width.
Definition at line 77 of file mlLUTFRampPair.h.
References _alphaRamp, and ml::LUTFunction::changed().
|
overridevirtual |
Set/reset relative flag.
Reimplemented from ml::LUTFunction.
|
inlinevirtual |
Set RGB ramp center.
Definition at line 47 of file mlLUTFRampPair.h.
References _rgbRamp, and ml::LUTFunction::changed().
|
virtual |
Set end color RGB.
|
virtual |
Set start color RGB.
|
inlinevirtual |
Set RGB ramp width.
Definition at line 53 of file mlLUTFRampPair.h.
References _rgbRamp, and ml::LUTFunction::changed().
|
protected |
Alpha ramp LUT function.
Definition at line 144 of file mlLUTFRampPair.h.
Referenced by getAlphaCenter(), getAlphaEnd(), getAlphaStart(), getAlphaWidth(), setAlphaCenter(), setAlphaEnd(), setAlphaStart(), and setAlphaWidth().
|
protected |
Definition at line 147 of file mlLUTFRampPair.h.
|
protected |
RGB ramp LUT function.
Definition at line 141 of file mlLUTFRampPair.h.
Referenced by getRGBCenter(), getRGBWidth(), setRGBCenter(), and setRGBWidth().
|
protected |
Start and end RGB.
Definition at line 147 of file mlLUTFRampPair.h.