MeVisLab Resolution Independence API
Toggle main menu visibility
Loading...
Searching...
No Matches
SoOffscreenViewerProxy.h
Go to the documentation of this file.
1
/*************************************************************************************
2
**
3
** Copyright 2013, 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
#ifndef SO_OFFSCREEN_VIEWER_PROXY_H
14
#define SO_OFFSCREEN_VIEWER_PROXY_H
15
16
#include "
MLOffscreenRenderSystem.h
"
17
#include <
SoViewerProxy.h
>
18
19
#include <Inventor/nodes/SoSubNode.h>
20
#include <Inventor/nodes/SoSeparator.h>
21
#include <Inventor/misc/SoState.h>
22
23
namespace
ml
24
{
25
class
OffscreenRenderer
;
26
}
27
29
class
MLOFFSCREENRENDER_EXPORT
SoOffscreenViewerProxy
:
public
SoResolutionIndependentViewerProxy
30
{
31
public
:
33
SoOffscreenViewerProxy
(
ml::OffscreenRenderer
* offscreenRenderer =
nullptr
);
35
~SoOffscreenViewerProxy
()
override
36
{}
37
38
bool
isHighQualityOffscreenRendering
()
const override
39
{
40
return
true
;
41
}
42
43
protected
:
45
ml::OffscreenRenderer
*
_offscreenRenderer
;
46
};
47
48
//===========================================================================
49
52
class
MLOFFSCREENRENDER_EXPORT
SoOffscreenViewerProxyNode
:
public
SoSeparator
53
{
54
SO_NODE_HEADER(
SoOffscreenViewerProxyNode
);
55
56
public
:
58
SoOffscreenViewerProxyNode
(
SoOffscreenViewerProxy
* proxy =
nullptr
)
59
: SoSeparator()
60
,
_proxy
(proxy)
61
{}
62
~SoOffscreenViewerProxyNode
()
override
63
{}
64
66
static
void
initClass
();
67
69
void
GLRender
(SoGLRenderAction* action)
override
;
70
72
virtual
void
renderCustom
(SoGLRenderAction*
/*action*/
)
73
{}
74
75
protected
:
76
SoOffscreenViewerProxy
*
_proxy
;
77
};
78
79
#endif
// __SoOffscreenViewerProxy_H
MLOffscreenRenderSystem.h
MLOFFSCREENRENDER_EXPORT
#define MLOFFSCREENRENDER_EXPORT
Definition
MLOffscreenRenderSystem.h:31
SoViewerProxy.h
SoOffscreenViewerProxyNode::renderCustom
virtual void renderCustom(SoGLRenderAction *)
method that can be implemented to do additional GL rendering or setup state when offscreen rendering
Definition
SoOffscreenViewerProxy.h:72
SoOffscreenViewerProxyNode::initClass
static void initClass()
Initializes this class.
SoOffscreenViewerProxyNode::SoOffscreenViewerProxyNode
SoOffscreenViewerProxyNode(SoOffscreenViewerProxy *proxy=nullptr)
Constructor.
Definition
SoOffscreenViewerProxy.h:58
SoOffscreenViewerProxyNode::GLRender
void GLRender(SoGLRenderAction *action) override
set SoOffscreenViewerProxy before scene traversal
SoOffscreenViewerProxyNode::~SoOffscreenViewerProxyNode
~SoOffscreenViewerProxyNode() override
Definition
SoOffscreenViewerProxy.h:62
SoOffscreenViewerProxyNode::_proxy
SoOffscreenViewerProxy * _proxy
Definition
SoOffscreenViewerProxy.h:76
SoOffscreenViewerProxy
This class implements access to the state of the SoOffscreenRenderer viewer.
Definition
SoOffscreenViewerProxy.h:30
SoOffscreenViewerProxy::_offscreenRenderer
ml::OffscreenRenderer * _offscreenRenderer
Pointer to the actual viewer.
Definition
SoOffscreenViewerProxy.h:45
SoOffscreenViewerProxy::~SoOffscreenViewerProxy
~SoOffscreenViewerProxy() override
Destructor.
Definition
SoOffscreenViewerProxy.h:35
SoOffscreenViewerProxy::isHighQualityOffscreenRendering
bool isHighQualityOffscreenRendering() const override
Returns true if high quality offscreen rendering (e.g., for OffscreenRenderer) is desired.
Definition
SoOffscreenViewerProxy.h:38
SoOffscreenViewerProxy::SoOffscreenViewerProxy
SoOffscreenViewerProxy(ml::OffscreenRenderer *offscreenRenderer=nullptr)
Constructor.
SoResolutionIndependentViewerProxy::SoResolutionIndependentViewerProxy
SoResolutionIndependentViewerProxy()
Constructor.
ml::OffscreenRenderer
OpenInventor Scenes can be rendered to the OffscreenRender who outputs an MLImage.
Definition
mlOffscreenRender.h:43
ml
Platform independent interface class to manage an OpenGL context.
Definition
mlGL2DFont.h:26
MeVisLab
Standard
Sources
ML
MLOffscreenRender
SoOffscreenViewerProxy.h
Generated by
1.18.0