MeVisLab Toolbox Reference
SoMLLUTExtension.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_MLLUTEXTENSION_H
14 #define SO_MLLUTEXTENSION_H
15 
17 
18 #include "SoUtilsSystem.h"
19 #include <mlLUTFunction.h>
20 
21 //--------- disable VC++ warnings---------
22 #ifdef WIN32
23 #pragma warning (disable : 4355)
24 #pragma warning (disable : 4275)
25 #pragma warning (disable : 4251)
26 #pragma warning (disable : 4138)
27 #pragma warning (disable : 4800)
28 #endif
29 
30 
32 class SOUTILS_EXPORT SoMLLUTExtension : public SoNode
33 {
34  SO_NODE_ABSTRACT_HEADER(SoMLLUTExtension);
35 
36 protected:
37 
40 
41 public:
42 
44  static void initClass();
45 
47  virtual ml::LUTFunction* changeLUT(ml::LUTFunction* /*lut*/ ) {return nullptr; }
48 
49 
51  void GLRender(SoGLRenderAction *action) override;
52  void callback(SoCallbackAction *action) override;
53  void pick(SoPickAction *action) override;
54  void doAction(SoAction *action) override;
56 };
57 
58 #endif
#define SOUTILS_EXPORT
System dependent includes. Disables some compiler/linker warnings.
Definition: SoUtilsSystem.h:31
SoMLLUTExtension is a base class to extends the SoMLLut with functionality.
static void initClass()
init class in inventor runtime
SoMLLUTExtension()
Hidden constructor.
virtual ml::LUTFunction * changeLUT(ml::LUTFunction *)
Change the lut.
void callback(SoCallbackAction *action) override
void doAction(SoAction *action) override
void pick(SoPickAction *action) override
void GLRender(SoGLRenderAction *action) override
Inventor actions.
Common base class for lookup tables.
Definition: mlLUTFunction.h:55