MeVisLab Toolbox Reference
SoView2DHint.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 
15 
16 #pragma once
17 
18 #include <SoView2DSystem.h>
19 
20 #include <Inventor/elements/SoInt32Element.h>
21 #include <Inventor/nodes/SoNode.h>
22 #include <Inventor/nodes/SoSubNode.h>
23 #include <Inventor/fields/SoSFBool.h>
24 
26 
27 class SOVIEW2D_API SoView2DHint : public SoNode
28 {
29  SO_NODE_HEADER(SoView2DHint);
30 
31 public:
33  static void initClass();
34 
37 
39  SoSFBool renderSlices3D;
42 
43 protected:
44  // reimp
45  void doAction(SoAction *action) override;
46 
47  // reimp
48  void GLRender(SoGLRenderAction *action) override;
49  // reimp
50  void callback(SoCallbackAction *action) override;
51  // reimp
52  void handleEvent(SoHandleEventAction *action) override;
53  // reimp
54  void getMatrix(SoGetMatrixAction *action) override;
55  // reimp
56  void getBoundingBox(SoGetBoundingBoxAction *action) override;
57  // reimp
58  void pick(SoPickAction *action) override;
59 };
#define SOVIEW2D_API
File to resolve system dependencies in View2D library.
SoView2DHint allows to switch the SoView2D module into 3D rendering mode.
Definition: SoView2DHint.h:28
void getBoundingBox(SoGetBoundingBoxAction *action) override
static void initClass()
Initializes this class.
void GLRender(SoGLRenderAction *action) override
void handleEvent(SoHandleEventAction *action) override
SoView2DHint()
Constructor.
void getMatrix(SoGetMatrixAction *action) override
void callback(SoCallbackAction *action) override
void pick(SoPickAction *action) override
void doAction(SoAction *action) override
SoSFBool renderSlices3D
render the 2D slices in 3D
Definition: SoView2DHint.h:39
SoSFBool renderExtensions3D
render the 2D extensions in 3D
Definition: SoView2DHint.h:41