|
| | LUTFSelect (void) |
| | Constructor.
|
| |
| virtual void | setInputLUT (const LUTFunction *inLUT) |
| | Set input LUT, set relative flag to true if input LUT is relative.
|
| |
|
| virtual void | setRow (int row) |
| | Set row index.
|
| |
| virtual int | getRow (void) const |
| | Get row index.
|
| |
| virtual void | setLayer (int layer) |
| | Set layer index.
|
| |
| virtual int | getLayer (void) const |
| | Get layer index.
|
| |
|
| bool | isValid (void) const override |
| | Return true if the LUT function is valid.
|
| |
| double | getNativeMinIndex (void) const override |
| | Get native minimum index.
|
| |
| double | getNativeMaxIndex (void) const override |
| | Get native maximum index.
|
| |
| double | getNativeMinValue (void) const override |
| | Get native minimum LUT value.
|
| |
| double | getNativeMaxValue (void) const override |
| | Get native maximum LUT value.
|
| |
| | LUTFunction (LUTVisualType vt, bool relative) |
| | Constructor.
|
| |
| void | changed (void) |
| | Assign a new LUT ID.
|
| |
| void | overwriteUniqueId (unsigned int newId) |
| | Overwrites the unique id. NOTE: use this only if you really know what you are doing!
|
| |
| virtual LUTVisualType | getVisualType (void) const |
| | Get LUT visual type.
|
| |
| virtual bool | isRelative (void) const |
| | Is LUT relative?
|
| |
| virtual void | setRelative (bool relative) |
| | Set/reset relative flag.
|
| |
| 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)
|
| |
| unsigned int | getId (void) const |
| | Get current LUT ID.
|
| |
| virtual bool | render (LUTDataBase *lutData) const |
| | Render LUT in (previously initialized) LUTData object.
|
| |
| virtual bool | renderRescaled (LUTDataBase *lutData, double minIndex, double maxIndex) const |
| | Render rescaled LUT in (previously initialized) LUTData object.
|
| |
| | Base () |
| | Constructor.
|
| |
| virtual | ~Base () |
| | Destructor.
|
| |
| virtual Base * | deepCopy () const |
| | Creates a deep copy of the given object.
|
| |
| bool | isOfAllowedType (const std::vector< const RuntimeType * > &types) const |
| | Checks whether this object's type is equal to or derived from one of the types given in the argument.
|
| |
| virtual bool | isRefCountedBase () const |
| | Returns whether the instance is derived from RefCountedBase.
|
| |
| virtual std::string | detailString () const |
| | Returns a string describing this object.
|
| |
| virtual bool | implementsPersistence (PersistenceInterface) const |
| | Override this method to declare which persistence interfaces are implemented by your derived class.
|
| |
| virtual std::string | persistentState () const |
| | Returns a string describing the object's internal state.
|
| |
| virtual void | setPersistentState (const std::string &state) |
| | Restores the object's internal state from a string that had been previously generated using persistentState().
|
| |
| 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 |
| | Writes the objects state to the data stream object.
|
| |
| virtual void | readFrom (AbstractPersistenceInputStream *, int) |
| | Reads the objects state from the data stream object.
|
| |
|
| | ML_CLASS_HEADER (LUTFSelect) |
| |
|
| bool | renderLUTNative (LUTDataBase *lutData, LUTIteratorBase *lutIterator) const override |
| | Render the lookup table into lutData using lutIterator to access and increment the LUT pointers.
|
| |
| 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.
|
| |
| template<typename T > |
| bool | renderLUT (LUTData< T > *lutData, LUTIterator< T > *lutIterator, double minIndex, double maxIndex, bool rescaled) const |
| | Perform LUT rendering, return true if successful.
|
| |
| template<typename T > |
| bool | renderT (LUTData< T > *lutData, bool rescaled, double minIndex, double maxIndex) const |
| | Perform type-specific, native or rescaled (rescaled = true, rescale to range minIndex ... maxIndex) LUT rendering by.
|
| |
| template<typename T > |
| bool | interpolateLUT (LUTData< T > *lutData, LUTIterator< T > *lutIterator, double minIndex, double maxIndex) const |
| | Perform type-specific rescaled LUT rendering by.
|
| |
| | ML_ABSTRACT_CLASS_HEADER (LUTFunction) |
| |
| virtual LUTVisualType | getRenderType (LUTDataBase *) const |
| | Get visual type used for rendering.
|
| |
Select a 1D-LUT from a specified row/layer of a 2D- or 3D-LUT.
Definition at line 28 of file mlLUTFSelect.h.
| bool ml::LUTFSelect::renderLUTRescaled |
( |
LUTDataBase * |
lutData, |
|
|
LUTIteratorBase * |
lutIterator, |
|
|
double |
minIndex, |
|
|
double |
maxIndex |
|
) |
| const |
|
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.