MeVisLab Resolution Independence API
Loading...
Searching...
No Matches
SoGLGet.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#pragma once
14
15#include "SoUtilsSystem.h"
16
17#include <Inventor/fields/SoSFInt32.h>
18#include <Inventor/fields/SoSFDouble.h>
19#include <Inventor/fields/SoSFVec4f.h>
20
21class SOUTILS_EXPORT SoGLGet : public SoNode
22{
23
24 SO_NODE_HEADER(SoGLGet);
25
26public:
28
29 SoSFEnum variable;
30 SoSFDouble doubleResult;
31 SoSFInt32 intResult;
32 SoSFVec4f vecResult;
33
35
36 // Constructor
38
40 static void initClass();
41
43 void GLRender(SoGLRenderAction* action) override;
44
46 bool affectsState() const override
47 {
48 return false;
49 }
50
51protected:
52 void getInt(GLint var);
53 void getInt4(GLint var);
54
55 ~SoGLGet() override;
56};
#define SOUTILS_EXPORT
System dependent includes. Disables some compiler/linker warnings.
SoSFDouble doubleResult
Definition SoGLGet.h:30
void getInt(GLint var)
static void initClass()
inventor runtime system
SoSFVec4f vecResult
Definition SoGLGet.h:32
void getInt4(GLint var)
SoSFInt32 intResult
Definition SoGLGet.h:31
void GLRender(SoGLRenderAction *action) override
derived render method that renders the background
SoSFEnum variable
Fields.
Definition SoGLGet.h:29
~SoGLGet() override
bool affectsState() const override
this node does not affect the state, so return false!
Definition SoGLGet.h:46