MeVisLab Resolution Independence API
Toggle main menu visibility
Loading...
Searching...
No Matches
SoSlabRenderingElement.h
Go to the documentation of this file.
1
/*************************************************************************************
2
**
3
** Copyright 2010, 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_SLAB_RENDERING_ELEMENT_H
14
#define SO_SLAB_RENDERING_ELEMENT_H
15
16
17
#include "
SoUtilsSystem.h
"
18
19
#include <Inventor/elements/SoReplacedElement.h>
20
22
enum
SlabRenderingSamplingMode
{
23
EXACT_SLICE_SAMPLING
,
26
ALLOW_RESAMPLING
28
};
29
30
32
class
SOUTILS_EXPORT
SbSlabRenderingProperties
33
{
34
public
:
35
bool
enabled
;
36
37
SbPlane
frontPlane
;
38
SbPlane
backPlane
;
39
40
SbVec3f
worldPositionOnSlice
;
41
SbVec3f
worldPositionOnNextSlice
;
43
44
SlabRenderingSamplingMode
45
samplingMode
;
48
49
SbSlabRenderingProperties
()
50
:
enabled
(false)
51
,
samplingMode
(
EXACT_SLICE_SAMPLING
)
52
{}
53
};
54
55
57
class
SOUTILS_EXPORT
SoSlabRenderingElement
:
public
SoReplacedElement
58
{
59
typedef
SoReplacedElement inherited;
60
61
SO_ELEMENT_HEADER(
SoSlabRenderingElement
);
62
63
public
:
65
static
void
set
(SoState* state, SoNode* node,
const
SbSlabRenderingProperties
& props);
67
static
const
SbSlabRenderingProperties
&
get
(SoState* state);
68
69
SoINTERNAL public :
70
72
static
void
initClass
();
73
74
protected
:
75
SbSlabRenderingProperties
_props
;
76
78
~SoSlabRenderingElement
()
override
;
79
};
80
81
#endif
// _SO_ML_IMAGE_ELEMENT_
SlabRenderingSamplingMode
SlabRenderingSamplingMode
Sampling mode for SbSlabRenderingProperties.
Definition
SoSlabRenderingElement.h:22
EXACT_SLICE_SAMPLING
@ EXACT_SLICE_SAMPLING
Definition
SoSlabRenderingElement.h:23
ALLOW_RESAMPLING
@ ALLOW_RESAMPLING
Definition
SoSlabRenderingElement.h:26
SoUtilsSystem.h
SOUTILS_EXPORT
#define SOUTILS_EXPORT
System dependent includes. Disables some compiler/linker warnings.
Definition
SoUtilsSystem.h:30
SbSlabRenderingProperties
Open Inventor element to store information about current slab mode.
Definition
SoSlabRenderingElement.h:33
SbSlabRenderingProperties::worldPositionOnSlice
SbVec3f worldPositionOnSlice
< A world position on one of the rendered slices that MUST be sliced by a renderer
Definition
SoSlabRenderingElement.h:40
SbSlabRenderingProperties::enabled
bool enabled
< Flag that defines if the slab rendering is enabled and the parameters below should be used.
Definition
SoSlabRenderingElement.h:35
SbSlabRenderingProperties::worldPositionOnNextSlice
SbVec3f worldPositionOnNextSlice
Definition
SoSlabRenderingElement.h:41
SbSlabRenderingProperties::frontPlane
SbPlane frontPlane
< The front plane of the slab in world coordinate system
Definition
SoSlabRenderingElement.h:37
SbSlabRenderingProperties::backPlane
SbPlane backPlane
< The back plane of the slab in world coordinate system
Definition
SoSlabRenderingElement.h:38
SbSlabRenderingProperties::samplingMode
SlabRenderingSamplingMode samplingMode
Definition
SoSlabRenderingElement.h:45
SbSlabRenderingProperties::SbSlabRenderingProperties
SbSlabRenderingProperties()
Definition
SoSlabRenderingElement.h:49
SoSlabRenderingElement
Inventor element storing SlabRendering properties in the Open Inventor state.
Definition
SoSlabRenderingElement.h:58
SoSlabRenderingElement::initClass
static void initClass()
Initialize class with runtime type system.
SoSlabRenderingElement::get
static const SbSlabRenderingProperties & get(SoState *state)
Returns the current SbSlabRenderingProperties from the state.
SoSlabRenderingElement::_props
SbSlabRenderingProperties _props
Definition
SoSlabRenderingElement.h:75
SoSlabRenderingElement::~SoSlabRenderingElement
~SoSlabRenderingElement() override
Destructor.
SoSlabRenderingElement::set
static void set(SoState *state, SoNode *node, const SbSlabRenderingProperties &props)
Sets the current SbSlabRenderingProperties in the state.
MeVisLab
Standard
Sources
Inventor
SoUtils
SoSlabRenderingElement.h
Generated by
1.18.0