MeVisLab Resolution Independence API
Toggle main menu visibility
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
//=============================================================
33
class
SOUTILS_EXPORT
SoBackground
:
public
SoNode
34
{
35
36
SO_NODE_HEADER(
SoBackground
);
37
38
public
:
40
SoSFBool
on
;
41
SoSFBool
rotate
;
42
SoSFBool
flip
;
43
SoSFBool
depthBuffer
;
45
46
// Constructor
47
SoBackground
();
48
50
static
void
initClass
();
51
53
void
GLRender
(SoGLRenderAction* action)
override
;
54
56
bool
affectsState
()
const override
57
{
58
return
false
;
59
}
60
61
protected
:
62
~SoBackground
()
override
;
63
64
private
:
66
ml::LUTData<MLuint8>* _lutData;
67
ml::LUTFunction* _localLut;
68
};
69
70
#endif
SoUtilsSystem.h
SOUTILS_EXPORT
#define SOUTILS_EXPORT
System dependent includes. Disables some compiler/linker warnings.
Definition
SoUtilsSystem.h:30
SoBackground::initClass
static void initClass()
inventor runtime system
SoBackground::depthBuffer
SoSFBool depthBuffer
Definition
SoBackground.h:43
SoBackground::flip
SoSFBool flip
Definition
SoBackground.h:42
SoBackground::~SoBackground
~SoBackground() override
SoBackground::SoBackground
SoBackground()
SoBackground::on
SoSFBool on
Fields.
Definition
SoBackground.h:40
SoBackground::GLRender
void GLRender(SoGLRenderAction *action) override
derived render method that renders the background
SoBackground::rotate
SoSFBool rotate
Definition
SoBackground.h:41
SoBackground::affectsState
bool affectsState() const override
this node does not affect the state, so return false!
Definition
SoBackground.h:56
MeVisLab
Standard
Sources
Inventor
SoUtils
SoBackground.h
Generated by
1.18.0