MeVisLab Toolbox Reference
SoBackground.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_BACKGROUND_H
14 #define SO_BACKGROUND_H
15 
17 
18 #include "SoUtilsSystem.h"
19 
20 #include <Inventor/fields/SoSFBool.h>
21 
22 #include "mlLUTFunction.h"
23 #include "mlLUTData.h"
24 
26 #define SOBACKGROUND_LUT_SIZE 256
27 
28 //=============================================================
31 
32 //=============================================================
33 class SOUTILS_EXPORT SoBackground : public SoNode {
34 
35  SO_NODE_HEADER(SoBackground);
36 
37 public:
39  SoSFBool on;
40  SoSFBool rotate;
41  SoSFBool flip;
42  SoSFBool depthBuffer;
44 
45  // Constructor
47 
49  static void initClass();
50 
52  void GLRender(SoGLRenderAction *action) override;
53 
55  bool affectsState() const override { return false; }
56 
57 protected:
58  ~SoBackground() override;
59 
60 private:
62  ml::LUTData<MLuint8>* _lutData;
63  ml::LUTFunction* _localLut;
64 };
65 
66 #endif
#define SOUTILS_EXPORT
System dependent includes. Disables some compiler/linker warnings.
Definition: SoUtilsSystem.h:31
SoBackground renders a background bar It uses the lookuptable element to draw a 8bit Lookuptable on t...
Definition: SoBackground.h:33
static void initClass()
inventor runtime system
SoSFBool depthBuffer
Definition: SoBackground.h:42
SoSFBool flip
Definition: SoBackground.h:41
~SoBackground() override
SoSFBool on
Fields.
Definition: SoBackground.h:39
void GLRender(SoGLRenderAction *action) override
derived render method that renders the background
SoSFBool rotate
Definition: SoBackground.h:40
bool affectsState() const override
this node does not affect the state, so return false!
Definition: SoBackground.h:55
Common base class for lookup tables.
Definition: mlLUTFunction.h:55