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//=============================================================
33class SOUTILS_EXPORT SoBackground : public SoNode {
34
35 SO_NODE_HEADER(SoBackground);
36
37public:
44
45 // Constructor
47
49 static void initClass();
50
53
55 bool affectsState() const override { return false; }
56
57protected:
58 ~SoBackground() override;
59
60private:
62 ml::LUTData<MLuint8>* _lutData;
63 ml::LUTFunction* _localLut;
64};
65
66#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:243
Common base class for lookup tables.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.