MeVisLab Toolbox Reference
SoView2DShaderInclude.h
Go to the documentation of this file.
1 /*************************************************************************************
2 **
3 ** Copyright 2015, 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 #pragma once
14 
15 #include <Inventor/nodes/SoSubNode.h>
16 #include <Inventor/fields/SoSFEnum.h>
17 #include <Inventor/fields/SoSFString.h>
18 #include <Inventor/fields/SoSFBool.h>
19 
21 
22 class SoView2DShaderInclude: public SoNode
23 {
24  SO_NODE_HEADER(SoView2DShaderInclude);
25 
26 public:
28 
30 
32  static void initClass();
33 
34  void GLRender(SoGLRenderAction *action) override;
35 
37  SoSFBool enabled;
38 
40  SoSFString identifier;
41 
43  SoSFString header;
44 
46  SoSFBool insertAtTop;
47 
48 private:
50 };
The helper class for the include which is added to the GVR.
static void initClass()
Initialization of inventor runtime system.
SoSFString identifier
Name of the include.
SoSFString header
Shader code of the include.
void GLRender(SoGLRenderAction *action) override
SoSFBool enabled
Enable / disable this node.
SoSFBool insertAtTop
Flag if the code should be inserted before the uniforms.
~SoView2DShaderInclude() override