MeVisLab Resolution Independence API
Toggle main menu visibility
Loading...
Searching...
No Matches
SoMLLUTElement.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_MLLUTELEMENT_H
14
#define SO_MLLUTELEMENT_H
15
16
18
19
#include "
SoUtilsSystem.h
"
20
#include <Inventor/elements/SoReplacedElement.h>
21
22
class
SoMLLUT
;
23
24
ML_START_NAMESPACE
25
26
class
LUTFunction;
27
28
ML_END_NAMESPACE
29
30
//----------------------------------------------------------------------------------
32
//----------------------------------------------------------------------------------
33
class
SOUTILS_EXPORT
SoMLLUTElement
:
public
SoReplacedElement
34
{
35
36
SO_ELEMENT_HEADER(
SoMLLUTElement
);
37
38
public
:
40
void
init
(SoState* state)
override
;
41
43
static
void
set
(SoState* state, SoNode* node,
SoMLLUT
* lutNode);
44
47
static
SoMLLUT
*
get
(SoState* state);
48
51
static
ml::LUTFunction*
getLut
(SoState* state);
52
54
static
const
SoMLLUTElement
*
getInstance
(SoState* state);
55
57
SbBool
matches
(
const
SoElement* elt)
const override
;
58
61
SoElement*
copyMatchInfo
()
const override
;
62
64
void
print
(FILE* fp)
const override
;
65
66
SoINTERNAL public :
68
static
void
initClass
();
69
70
protected
:
72
SoMLLUT
*
data
;
73
75
~SoMLLUTElement
()
override
76
{}
77
};
78
79
#endif
SoUtilsSystem.h
SOUTILS_EXPORT
#define SOUTILS_EXPORT
System dependent includes. Disables some compiler/linker warnings.
Definition
SoUtilsSystem.h:30
SoMLLUTElement
Open Inventor element to administrate a pointer to a SoMLLUT node in the inventor state.
Definition
SoMLLUTElement.h:34
SoMLLUTElement::get
static SoMLLUT * get(SoState *state)
SoMLLUTElement::init
void init(SoState *state) override
See inventor element documentation. Not to be called directly.
SoMLLUTElement::data
SoMLLUT * data
Saves the pointer to the currently set node.
Definition
SoMLLUTElement.h:72
SoMLLUTElement::set
static void set(SoState *state, SoNode *node, SoMLLUT *lutNode)
Set element state. Usually called in action routines of self written inventor nodes.
SoMLLUTElement::getLut
static ml::LUTFunction * getLut(SoState *state)
SoMLLUTElement::getInstance
static const SoMLLUTElement * getInstance(SoState *state)
Returns the top (current) instance of the element in the state.
SoMLLUTElement::~SoMLLUTElement
~SoMLLUTElement() override
Destructor.
Definition
SoMLLUTElement.h:75
SoMLLUTElement::initClass
static void initClass()
Initializes the SoMLLUTElement class.
SoMLLUTElement::matches
SbBool matches(const SoElement *elt) const override
See inventor element documentation.
SoMLLUTElement::print
void print(FILE *fp) const override
See inventor element documentation.
SoMLLUTElement::copyMatchInfo
SoElement * copyMatchInfo() const override
SoMLLUT
Open Inventor node implementing an interface to the ml::LUTFunction.
Definition
SoMLLUT.h:30
MeVisLab
Standard
Sources
Inventor
SoUtils
SoMLLUTElement.h
Generated by
1.18.0