MeVisLab Toolbox Reference
mlLUTFloatRGBA.h
Go to the documentation of this file.
1/*************************************************************************************
2**
3** Copyright 2007, MeVis Medical Solutions AG
4**
5** The user may use this file in accordance with the license agreement provided with
6** the Software or, alternatively, in accordance with the terms contained in a
7** written agreement between the user and MeVis Medical Solutions AG.
8**
9** For further information use the contact form at https://www.mevislab.de/contact
10**
11**************************************************************************************/
12
13#ifndef ML_LUTFLOAT_RGBA_H
14#define ML_LUTFLOAT_RGBA_H
15
16
23
24#include "mlLUTSystem.h"
25#include "mlLUTBasic.h"
26#include "mlLUTFunction.h"
27#include "mlLUTData.h"
28
29
30
31ML_START_NAMESPACE
32
40
41public:
42
47 LUTFloatRGBA(LUTFunction* lutFunction, double minIndex, double maxIndex, int lutIndex=0, bool continuousIndexRange = true);
48
51
59 float* getColorAt(double value);
60
63 bool isValid();
64
65private:
66
68 double _minIndex;
70 double _maxIndex;
71
73 LUTFunction* _lutFunction;
75 LUTData<float>* _lutData;
77 float* _rgbaColorLut;
78
80 double _indexScale;
82 double _indexShift;
83
86 bool _isValid;
87};
88
89
90ML_END_NAMESPACE
91
92
93#endif // __mlLUTFloatRGBA_H
94
LUTFloatRGBA(LUTFunction *lutFunction, double minIndex, double maxIndex, int lutIndex=0, bool continuousIndexRange=true)
~LUTFloatRGBA()
Default destructor.
float * getColorAt(double value)
#define MLLUT_EXPORT
System specific macro definitions.
Definition mlLUTSystem.h:25