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
46
SoBackground
();
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
SoUtilsSystem.h
SOUTILS_EXPORT
#define SOUTILS_EXPORT
System dependent includes. Disables some compiler/linker warnings.
Definition
SoUtilsSystem.h:31
SoBackground::initClass
static void initClass()
inventor runtime system
SoBackground::depthBuffer
SoSFBool depthBuffer
Definition
SoBackground.h:42
SoBackground::flip
SoSFBool flip
Definition
SoBackground.h:41
SoBackground::~SoBackground
~SoBackground() override
SoBackground::SoBackground
SoBackground()
SoBackground::on
SoSFBool on
Fields.
Definition
SoBackground.h:39
SoBackground::GLRender
void GLRender(SoGLRenderAction *action) override
derived render method that renders the background
SoBackground::rotate
SoSFBool rotate
Definition
SoBackground.h:40
SoBackground::affectsState
bool affectsState() const override
this node does not affect the state, so return false!
Definition
SoBackground.h:55
ml::LUTData
Definition
mlLUTData.h:243
ml::LUTFunction
Definition
mlLUTFunction.h:55
mlLUTData.h
mlLUTFunction.h
MeVisLab
Standard
Sources
Inventor
SoUtils
SoBackground.h
Generated by
1.15.0