MeVisLab Toolbox Reference
SoView2DHintElement.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 
16 
17 #pragma once
18 
19 #include <Inventor/elements/SoInt32Element.h>
20 
22 
25 class SoView2DHintElement : public SoInt32Element
26 {
27  SO_ELEMENT_HEADER(SoView2DHintElement);
28 
29 public:
30 
32  enum RenderMode {
35  };
36 
38  static void initClass();
39 
41  void init(SoState *state) override;
42 
44  static void set(SoState *state, int renderHint);
45 
47  static int get(SoState *state);
48 
50  static bool renderSlices3D(SoState *state) { return (get(state) & RenderSlices3D) != 0; }
51 
53  static bool renderExtensions3D(SoState *state) { return (get(state) & RenderExtensions3D) != 0; }
54 
56  static int getDefault() { return 0; }
57 
58 protected:
60 };
SoView2DHintElement is read by the SoView2D and influences it's rendering mode The SoView2DHintElemen...
static int getDefault()
Returns the default.
static int get(SoState *state)
Returns the current flag from the state.
static void initClass()
Initializes the SoView2DHintElement class.
void init(SoState *state) override
Initializes element.
static bool renderExtensions3D(SoState *state)
check if extensions should be rendered in full 3D
RenderMode
different internal flags
static void set(SoState *state, int renderHint)
Returns the current flag from the state.
static bool renderSlices3D(SoState *state)
check if slices should be rendered in 3D
~SoView2DHintElement() override