MeVisLab Toolbox Reference
SoMLLUTChangeColor.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 SO_MLLUTCHANGE_COLOR_H
14 #define SO_MLLUTCHANGE_COLOR_H
15 
17 
18 #include "SoMLLUTExtension.h"
19 #include <mlLUTFunction.h>
20 #include <mlLUTFColor.h>
21 #include <mlLUTBasic.h>
22 
23 #include <Inventor/nodes/SoSubNode.h>
24 #include <Inventor/fields/SoSFBool.h>
25 #include <Inventor/fields/SoSFColor.h>
26 #include <Inventor/fields/SoSFEnum.h>
27 #include <Inventor/fields/SoSFFloat.h>
28 
31 
32  SO_NODE_HEADER(SoMLLUTChangeColor);
33 
34 public:
35 
36  // Taken from mlLUTBasic (MLLUT)!
37  enum VisualTypes {
39  L,
40  LA,
41  RGB,
42  RGBA
43  };
44 
46 
47  SoSFBool enabled;
48 
50  SoSFEnum visualType;
51 
53  SoSFColor color;
54 
56  SoSFFloat intensity;
57  SoSFFloat alpha;
58 
60 
62 
64  static void initClass();
65 
68 
69 protected:
70  ~SoMLLUTChangeColor() override;
71 
74 
75 };
76 
77 #endif
Defines a change color extension to the SoMLLUT.
ml::LUTFColor _lutfColor
LUT transform function.
SoSFFloat intensity
Intensity and alpha factors.
SoSFBool enabled
Fields.
SoSFEnum visualType
Visual type.
SoSFColor color
Color factor.
ml::LUTFunction * changeLUT(ml::LUTFunction *lut) override
Change the lut.
static void initClass()
inventor runtime system
~SoMLLUTChangeColor() override
SoMLLUTExtension is a base class to extends the SoMLLut with functionality.
LUT transform to apply or remove color to an input LUT.
Definition: mlLUTFColor.h:29
Common base class for lookup tables.
Definition: mlLUTFunction.h:55