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