MeVisLab Resolution Independence API
Toggle main menu visibility
Loading...
Searching...
No Matches
SoGLStateInfo.h
Go to the documentation of this file.
1
/*************************************************************************************
2
**
3
** Copyright 2017, 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
16
#include "
SoUtilsSystem.h
"
17
18
#include <Inventor/fields/SoSFVec2s.h>
19
20
class
SOUTILS_EXPORT
SoGLStateInfo
:
public
SoNode
21
{
22
23
SO_NODE_HEADER(
SoGLStateInfo
);
24
25
public
:
27
28
SoSFVec2s
viewportOffset
;
29
SoSFVec2s
viewportSize
;
30
31
// TODO: add more useful GL states...
32
34
35
// Constructor
36
SoGLStateInfo
();
37
39
static
void
initClass
();
40
42
void
GLRender
(SoGLRenderAction* action)
override
;
43
45
bool
affectsState
()
const override
46
{
47
return
false
;
48
}
49
50
protected
:
51
~SoGLStateInfo
()
override
;
52
};
SoUtilsSystem.h
SOUTILS_EXPORT
#define SOUTILS_EXPORT
System dependent includes. Disables some compiler/linker warnings.
Definition
SoUtilsSystem.h:30
SoGLStateInfo::initClass
static void initClass()
inventor runtime system
SoGLStateInfo::GLRender
void GLRender(SoGLRenderAction *action) override
derived render method that renders the background
SoGLStateInfo::affectsState
bool affectsState() const override
this node does not affect the state, so return false!
Definition
SoGLStateInfo.h:45
SoGLStateInfo::SoGLStateInfo
SoGLStateInfo()
SoGLStateInfo::viewportOffset
SoSFVec2s viewportOffset
Fields.
Definition
SoGLStateInfo.h:28
SoGLStateInfo::~SoGLStateInfo
~SoGLStateInfo() override
SoGLStateInfo::viewportSize
SoSFVec2s viewportSize
Definition
SoGLStateInfo.h:29
MeVisLab
Standard
Sources
Inventor
SoUtils
SoGLStateInfo.h
Generated by
1.18.0