MeVisLab Toolbox Reference
SoMLLUT.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_MLLUT_H
14 #define SO_MLLUT_H
15 
16 
18 
19 #include "SoUtilsSystem.h"
20 #include "mlLUTFunction.h"
21 #include "SoSFMLBase.h"
22 #ifndef _SO_SF_BOOL_
23 #include "SoSFBool.h"
24 #endif
25 
26 //----------------------------------------------------------------------------------
28 //----------------------------------------------------------------------------------
29 class SOUTILS_EXPORT SoMLLUT : public SoNode {
30 
32  SO_NODE_HEADER(SoMLLUT);
33 
34 public:
35 
37  static void initClass();
38 
41 
44 
47 
48  SoSFBool acceptExtensions;
49 
50 protected:
52  ~SoMLLUT() override;
53 
56  void GLRender(SoGLRenderAction *action) override;
57  void callback(SoCallbackAction *action) override;
58  void handleEvent(SoHandleEventAction *action) override;
59  void rayPick(SoRayPickAction *action) override;
60  void doAction(SoAction *action) override;
62 
63  void changeLUT(SoAction *action);
64 
65 private:
66  ml::LUTFunction* outLUT;
67 };
68 
69 #endif
#define SOUTILS_EXPORT
System dependent includes. Disables some compiler/linker warnings.
Definition: SoUtilsSystem.h:31
Open Inventor node implementing an interface to the ml::LUTFunction.
Definition: SoMLLUT.h:29
~SoMLLUT() override
Destructor.
void callback(SoCallbackAction *action) override
void doAction(SoAction *action) override
ml::LUTFunction * getLut()
returns the LUT function that is given to this node
SoSFBool acceptExtensions
Definition: SoMLLUT.h:48
void changeLUT(SoAction *action)
void rayPick(SoRayPickAction *action) override
SoSFMLBase inLUT
The input ML base object (must be derived from ML_UTILS_NAMESPACE::LUTFunction)
Definition: SoMLLUT.h:46
static void initClass()
Initializes this class.
void GLRender(SoGLRenderAction *action) override
Sets the current look up table state for subsequent nodes.
SoMLLUT()
Constructor.
void handleEvent(SoHandleEventAction *action) override
The SoSFMLBase field is the interface used by Inventor Nodes to output ML Base objects to the outside...
Definition: SoSFMLBase.h:45
Common base class for lookup tables.
Definition: mlLUTFunction.h:55