MeVisLab Toolbox Reference
Loading...
Searching...
No Matches
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//=============================================================
33class SOUTILS_EXPORT SoBackground : public SoNode
34{
35
36 SO_NODE_HEADER(SoBackground);
37
38public:
45
46 // Constructor
48
50 static void initClass();
51
54
56 bool affectsState() const override
57 {
58 return false;
59 }
60
61protected:
62 ~SoBackground() override;
63
64private:
66 ml::LUTData<MLuint8>* _lutData;
67 ml::LUTFunction* _localLut;
68};
69
70#endif
#define SOUTILS_EXPORT
System dependent includes. Disables some compiler/linker warnings.
SoBackground renders a background bar It uses the lookuptable element to draw a 8bit Lookuptable on t...
static void initClass()
inventor runtime system
SoSFBool depthBuffer
SoSFBool flip
~SoBackground() override
SoSFBool on
Fields.
void GLRender(SoGLRenderAction *action) override
derived render method that renders the background
SoSFBool rotate
bool affectsState() const override
this node does not affect the state, so return false!
A LUTData object stores an instance of a LUT, rendered for a specified visual type,...
Definition mlLUTData.h:308
Common base class for lookup tables.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.