MeVisLab Resolution Independence API
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
29
30
54
55
57class SOUTILS_EXPORT SoSlabRenderingElement : public SoReplacedElement
58{
59 typedef SoReplacedElement inherited;
60
61 SO_ELEMENT_HEADER(SoSlabRenderingElement);
62
63public:
65 static void set(SoState* state, SoNode* node, const SbSlabRenderingProperties& props);
67 static const SbSlabRenderingProperties& get(SoState* state);
68
69SoINTERNAL public :
70
72 static void initClass();
73
74protected:
76
79};
80
81#endif // _SO_ML_IMAGE_ELEMENT_
SlabRenderingSamplingMode
Sampling mode for SbSlabRenderingProperties.
@ EXACT_SLICE_SAMPLING
@ ALLOW_RESAMPLING
#define SOUTILS_EXPORT
System dependent includes. Disables some compiler/linker warnings.
Open Inventor element to store information about current slab mode.
SbVec3f worldPositionOnSlice
< A world position on one of the rendered slices that MUST be sliced by a renderer
bool enabled
< Flag that defines if the slab rendering is enabled and the parameters below should be used.
SbPlane frontPlane
< The front plane of the slab in world coordinate system
SbPlane backPlane
< The back plane of the slab in world coordinate system
SlabRenderingSamplingMode samplingMode
Inventor element storing SlabRendering properties in the Open Inventor state.
static void initClass()
Initialize class with runtime type system.
static const SbSlabRenderingProperties & get(SoState *state)
Returns the current SbSlabRenderingProperties from the state.
SbSlabRenderingProperties _props
~SoSlabRenderingElement() override
Destructor.
static void set(SoState *state, SoNode *node, const SbSlabRenderingProperties &props)
Sets the current SbSlabRenderingProperties in the state.