MeVisLabToolboxReference
MeVisLab/Standard/Sources/Shared/MLLUT/mlLUTFloatRGBA.h
Go to the documentation of this file.
00001 // **InsertLicense** code
00002 //----------------------------------------------------------------------------------
00009 
00015 //----------------------------------------------------------------------------------
00016 
00017 
00018 #ifndef __mlLUTFloatRGBA_H
00019 #define __mlLUTFloatRGBA_H
00020 
00021 // Local includes
00022 #ifndef __mlLUTSystem_H
00023 #include "mlLUTSystem.h"
00024 #endif
00025 #ifndef __mlLUTBasic_H
00026 #include "mlLUTBasic.h"
00027 #endif
00028 #ifndef __mlLUTFunction_H
00029 #include "mlLUTFunction.h"
00030 #endif
00031 #ifndef __mlLUTData_H
00032 #include "mlLUTData.h"
00033 #endif
00034 
00035 
00036 
00037 ML_START_NAMESPACE
00038 
00045 class MLLUT_EXPORT LUTFloatRGBA {
00046 
00047 public:
00048 
00052     LUTFloatRGBA(LUTFunction* lutFunction, double minIndex, double maxIndex, bool continuousIndexRange = true);
00053 
00055     ~LUTFloatRGBA();
00056 
00064     float* getColorAt(double value);
00065 
00068     bool isValid();
00069 
00070 private:
00071 
00073     double _minIndex;
00075     double _maxIndex;
00076 
00078     LUTFunction* _lutFunction;
00080     LUTData<float>* _lutData;
00082     float* _rgbaColorLut;
00083 
00085     double _indexScale;
00087     double _indexShift;
00088 
00091     bool _isValid;
00092 };
00093 
00094 
00095 ML_END_NAMESPACE
00096 
00097 
00098 #endif // __mlLUTFloatRGBA_H
00099