MeVisLab Resolution Independence API
Toggle main menu visibility
Loading...
Searching...
No Matches
SoBlendMode.h
Go to the documentation of this file.
1
/*************************************************************************************
2
**
3
** Copyright 2015, 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_BLEND_MODE_H
14
#define SO_BLEND_MODE_H
15
16
#include "
SoShaderSystem.h
"
17
#include <Inventor/nodes/SoSubNode.h>
18
#include <Inventor/fields/SoSFBool.h>
19
#include <Inventor/fields/SoSFEnum.h>
20
#include <Inventor/fields/SoSFFloat.h>
21
#include <Inventor/fields/SoSFColor.h>
22
#include <Inventor/system/SbOpenGL.h>
23
25
class
INVENTOR_SHADER_API
SoBlendMode
:
public
SoNode
26
{
27
typedef
SoNode inherited;
28
29
SO_NODE_HEADER(
SoBlendMode
);
30
31
public
:
32
enum
BlendMode
{
33
BLEND_OFF
,
34
BLEND_REPLACE
,
35
BLEND_ADD
,
36
BLEND_SCREEN
,
37
BLEND_MIN
,
38
BLEND_MAX
,
39
BLEND_BLEND
,
40
BLEND_PREMULTIPLIED_BLEND
,
41
BLEND_CUSTOM
,
42
BLEND_CUSTOM_SEPARATE
43
};
44
45
enum
Equation
{
46
ADD
= GL_FUNC_ADD,
47
SUBTRACT
= GL_FUNC_SUBTRACT,
48
REVERSE_SUBTRACT
= GL_FUNC_REVERSE_SUBTRACT
49
};
50
51
enum
Function
{
52
ZERO
= GL_ZERO,
53
ONE
= GL_ONE,
54
SRC_COLOR
= GL_SRC_COLOR,
55
ONE_MINUS_SRC_COLOR
= GL_ONE_MINUS_SRC_COLOR,
56
DST_COLOR
= GL_DST_COLOR,
57
ONE_MINUS_DST_COLOR
= GL_ONE_MINUS_DST_COLOR,
58
SRC_ALPHA
= GL_SRC_ALPHA,
59
ONE_MINUS_SRC_ALPHA
= GL_ONE_MINUS_SRC_ALPHA,
60
DST_ALPHA
= GL_DST_ALPHA,
61
ONE_MINUS_DST_ALPHA
= GL_ONE_MINUS_DST_ALPHA,
62
CONSTANT_COLOR
= GL_CONSTANT_COLOR,
63
ONE_MINUS_CONSTANT_COLOR
= GL_ONE_MINUS_CONSTANT_COLOR,
64
CONSTANT_ALPHA
= GL_CONSTANT_ALPHA,
65
ONE_MINUS_CONSTANT_ALPHA
= GL_ONE_MINUS_CONSTANT_ALPHA,
66
SRC_ALPHA_SATURATE
= GL_SRC_ALPHA_SATURATE
67
};
68
69
SoSFBool
enabled
;
70
SoSFEnum
blendMode
;
71
72
SoSFEnum
blendEquation
;
73
SoSFEnum
blendFunctionSrc
;
74
SoSFEnum
blendFunctionDst
;
75
SoSFEnum
alphaBlendFunctionSrc
;
76
SoSFEnum
alphaBlendFunctionDst
;
77
78
SoSFColor
constantBlendColor
;
79
SoSFFloat
constantBlendAlpha
;
80
82
SoBlendMode
();
83
84
SoEXTENDER public :
85
87
void
GLRender
(SoGLRenderAction* action)
override
;
88
89
SoINTERNAL public :
90
92
static
void
initClass
();
93
};
94
95
#endif
SoShaderSystem.h
INVENTOR_SHADER_API
#define INVENTOR_SHADER_API
Define class export specifier.
Definition
SoShaderSystem.h:20
SoBlendMode::blendMode
SoSFEnum blendMode
Definition
SoBlendMode.h:70
SoBlendMode::blendEquation
SoSFEnum blendEquation
Definition
SoBlendMode.h:72
SoBlendMode::SoBlendMode
SoBlendMode()
Constructor.
SoBlendMode::Function
Function
Definition
SoBlendMode.h:51
SoBlendMode::ONE_MINUS_SRC_ALPHA
@ ONE_MINUS_SRC_ALPHA
Definition
SoBlendMode.h:59
SoBlendMode::SRC_COLOR
@ SRC_COLOR
Definition
SoBlendMode.h:54
SoBlendMode::ONE_MINUS_CONSTANT_ALPHA
@ ONE_MINUS_CONSTANT_ALPHA
Definition
SoBlendMode.h:65
SoBlendMode::CONSTANT_COLOR
@ CONSTANT_COLOR
Definition
SoBlendMode.h:62
SoBlendMode::DST_COLOR
@ DST_COLOR
Definition
SoBlendMode.h:56
SoBlendMode::DST_ALPHA
@ DST_ALPHA
Definition
SoBlendMode.h:60
SoBlendMode::ONE_MINUS_CONSTANT_COLOR
@ ONE_MINUS_CONSTANT_COLOR
Definition
SoBlendMode.h:63
SoBlendMode::ONE_MINUS_SRC_COLOR
@ ONE_MINUS_SRC_COLOR
Definition
SoBlendMode.h:55
SoBlendMode::ONE_MINUS_DST_COLOR
@ ONE_MINUS_DST_COLOR
Definition
SoBlendMode.h:57
SoBlendMode::ZERO
@ ZERO
Definition
SoBlendMode.h:52
SoBlendMode::SRC_ALPHA_SATURATE
@ SRC_ALPHA_SATURATE
Definition
SoBlendMode.h:66
SoBlendMode::SRC_ALPHA
@ SRC_ALPHA
Definition
SoBlendMode.h:58
SoBlendMode::ONE
@ ONE
Definition
SoBlendMode.h:53
SoBlendMode::CONSTANT_ALPHA
@ CONSTANT_ALPHA
Definition
SoBlendMode.h:64
SoBlendMode::ONE_MINUS_DST_ALPHA
@ ONE_MINUS_DST_ALPHA
Definition
SoBlendMode.h:61
SoBlendMode::blendFunctionSrc
SoSFEnum blendFunctionSrc
Definition
SoBlendMode.h:73
SoBlendMode::blendFunctionDst
SoSFEnum blendFunctionDst
Definition
SoBlendMode.h:74
SoBlendMode::initClass
static void initClass()
Initialize class with runtime type system.
SoBlendMode::alphaBlendFunctionSrc
SoSFEnum alphaBlendFunctionSrc
Definition
SoBlendMode.h:75
SoBlendMode::alphaBlendFunctionDst
SoSFEnum alphaBlendFunctionDst
Definition
SoBlendMode.h:76
SoBlendMode::constantBlendColor
SoSFColor constantBlendColor
Definition
SoBlendMode.h:78
SoBlendMode::BlendMode
BlendMode
Definition
SoBlendMode.h:32
SoBlendMode::BLEND_BLEND
@ BLEND_BLEND
Definition
SoBlendMode.h:39
SoBlendMode::BLEND_SCREEN
@ BLEND_SCREEN
Definition
SoBlendMode.h:36
SoBlendMode::BLEND_REPLACE
@ BLEND_REPLACE
Definition
SoBlendMode.h:34
SoBlendMode::BLEND_OFF
@ BLEND_OFF
Definition
SoBlendMode.h:33
SoBlendMode::BLEND_PREMULTIPLIED_BLEND
@ BLEND_PREMULTIPLIED_BLEND
Definition
SoBlendMode.h:40
SoBlendMode::BLEND_MAX
@ BLEND_MAX
Definition
SoBlendMode.h:38
SoBlendMode::BLEND_MIN
@ BLEND_MIN
Definition
SoBlendMode.h:37
SoBlendMode::BLEND_CUSTOM
@ BLEND_CUSTOM
Definition
SoBlendMode.h:41
SoBlendMode::BLEND_ADD
@ BLEND_ADD
Definition
SoBlendMode.h:35
SoBlendMode::BLEND_CUSTOM_SEPARATE
@ BLEND_CUSTOM_SEPARATE
Definition
SoBlendMode.h:42
SoBlendMode::enabled
SoSFBool enabled
Definition
SoBlendMode.h:69
SoBlendMode::Equation
Equation
Definition
SoBlendMode.h:45
SoBlendMode::REVERSE_SUBTRACT
@ REVERSE_SUBTRACT
Definition
SoBlendMode.h:48
SoBlendMode::ADD
@ ADD
Definition
SoBlendMode.h:46
SoBlendMode::SUBTRACT
@ SUBTRACT
Definition
SoBlendMode.h:47
SoBlendMode::GLRender
void GLRender(SoGLRenderAction *action) override
Add this node to element in state.
SoBlendMode::constantBlendAlpha
SoSFFloat constantBlendAlpha
Definition
SoBlendMode.h:79
MeVisLab
Standard
Sources
Inventor
SoShader
Inventor
nodes
SoBlendMode.h
Generated by
1.18.0