MeVisLab Toolbox Reference
SoMLLUTChangeColor.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_MLLUTCHANGE_COLOR_H
14
#define SO_MLLUTCHANGE_COLOR_H
15
17
18
#include "
SoMLLUTExtension.h
"
19
#include <
mlLUTFunction.h
>
20
#include <
mlLUTFColor.h
>
21
#include <
mlLUTBasic.h
>
22
23
#include <Inventor/nodes/SoSubNode.h>
24
#include <Inventor/fields/SoSFBool.h>
25
#include <Inventor/fields/SoSFColor.h>
26
#include <Inventor/fields/SoSFEnum.h>
27
#include <Inventor/fields/SoSFFloat.h>
28
30
class
SoMLLUTChangeColor
:
public
SoMLLUTExtension
{
31
32
SO_NODE_HEADER(
SoMLLUTChangeColor
);
33
34
public
:
35
36
// Taken from mlLUTBasic (MLLUT)!
37
enum
VisualTypes
{
38
As_Input
= 0,
39
L
,
40
LA
,
41
RGB
,
42
RGBA
43
};
44
46
47
SoSFBool
enabled
;
48
50
SoSFEnum
visualType
;
51
53
SoSFColor
color
;
54
56
SoSFFloat
intensity
;
57
SoSFFloat
alpha
;
58
60
61
SoMLLUTChangeColor
();
62
64
static
void
initClass
();
65
67
ml::LUTFunction
*
changeLUT
(
ml::LUTFunction
* lut)
override
;
68
69
protected
:
70
~SoMLLUTChangeColor
()
override
;
71
73
ml::LUTFColor
_lutfColor
;
74
75
};
76
77
#endif
SoMLLUTExtension.h
SoMLLUTChangeColor
Defines a change color extension to the SoMLLUT.
Definition:
SoMLLUTChangeColor.h:30
SoMLLUTChangeColor::SoMLLUTChangeColor
SoMLLUTChangeColor()
SoMLLUTChangeColor::_lutfColor
ml::LUTFColor _lutfColor
LUT transform function.
Definition:
SoMLLUTChangeColor.h:73
SoMLLUTChangeColor::VisualTypes
VisualTypes
Definition:
SoMLLUTChangeColor.h:37
SoMLLUTChangeColor::RGBA
@ RGBA
Definition:
SoMLLUTChangeColor.h:42
SoMLLUTChangeColor::LA
@ LA
Definition:
SoMLLUTChangeColor.h:40
SoMLLUTChangeColor::As_Input
@ As_Input
Definition:
SoMLLUTChangeColor.h:38
SoMLLUTChangeColor::RGB
@ RGB
Definition:
SoMLLUTChangeColor.h:41
SoMLLUTChangeColor::L
@ L
Definition:
SoMLLUTChangeColor.h:39
SoMLLUTChangeColor::intensity
SoSFFloat intensity
Intensity and alpha factors.
Definition:
SoMLLUTChangeColor.h:56
SoMLLUTChangeColor::enabled
SoSFBool enabled
Fields.
Definition:
SoMLLUTChangeColor.h:47
SoMLLUTChangeColor::alpha
SoSFFloat alpha
Definition:
SoMLLUTChangeColor.h:57
SoMLLUTChangeColor::visualType
SoSFEnum visualType
Visual type.
Definition:
SoMLLUTChangeColor.h:50
SoMLLUTChangeColor::color
SoSFColor color
Color factor.
Definition:
SoMLLUTChangeColor.h:53
SoMLLUTChangeColor::changeLUT
ml::LUTFunction * changeLUT(ml::LUTFunction *lut) override
Change the lut.
SoMLLUTChangeColor::initClass
static void initClass()
inventor runtime system
SoMLLUTChangeColor::~SoMLLUTChangeColor
~SoMLLUTChangeColor() override
SoMLLUTExtension
SoMLLUTExtension is a base class to extends the SoMLLut with functionality.
Definition:
SoMLLUTExtension.h:33
ml::LUTFColor
LUT transform to apply or remove color to an input LUT.
Definition:
mlLUTFColor.h:29
ml::LUTFunction
Common base class for lookup tables.
Definition:
mlLUTFunction.h:55
mlLUTBasic.h
mlLUTFColor.h
mlLUTFunction.h
MeVisLab
Standard
Sources
Inventor
SoUtils
SoMLLUTChangeColor.h
Generated by
1.9.1