MeVisLab Resolution Independence API
Toggle main menu visibility
Loading...
Searching...
No Matches
SoOffscreenSceneRenderer.h
Go to the documentation of this file.
1
/*************************************************************************************
2
**
3
** Copyright 2019, 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 "
MLOffscreenRenderSystem.h
"
16
#include <Inventor/actions/SoGLRenderAction.h>
17
#include "
SoOffscreenViewerProxy.h
"
18
20
class
MLOFFSCREENRENDER_EXPORT
SoOffscreenSceneRenderer
21
{
22
public
:
24
SoOffscreenSceneRenderer
();
26
virtual
~SoOffscreenSceneRenderer
();
27
30
SoGLRenderAction*
getRenderAction
()
31
{
32
return
_action;
33
}
34
41
void
render
(
const
SbViewportRegion& region = SbViewportRegion(), SoNode* scene =
nullptr
);
42
44
virtual
void
GLRender
([[maybe_unused]] SoGLRenderAction* renderAction)
45
{}
46
47
private
:
48
SoGLRenderAction* _action;
49
SoRef<SoOffscreenViewerProxyNode> _root;
50
SoOffscreenViewerProxy
* _offscreenProxy;
51
};
MLOffscreenRenderSystem.h
MLOFFSCREENRENDER_EXPORT
#define MLOFFSCREENRENDER_EXPORT
Definition
MLOffscreenRenderSystem.h:31
SoOffscreenViewerProxy.h
SoOffscreenSceneRenderer::render
void render(const SbViewportRegion ®ion=SbViewportRegion(), SoNode *scene=nullptr)
SoOffscreenSceneRenderer::getRenderAction
SoGLRenderAction * getRenderAction()
Definition
SoOffscreenSceneRenderer.h:30
SoOffscreenSceneRenderer::~SoOffscreenSceneRenderer
virtual ~SoOffscreenSceneRenderer()
Destructor.
SoOffscreenSceneRenderer::GLRender
virtual void GLRender(SoGLRenderAction *renderAction)
This method can be reimplemented to implement custom GL rendering or state setup.
Definition
SoOffscreenSceneRenderer.h:44
SoOffscreenSceneRenderer::SoOffscreenSceneRenderer
SoOffscreenSceneRenderer()
Constructor.
SoOffscreenViewerProxy
This class implements access to the state of the SoOffscreenRenderer viewer.
Definition
SoOffscreenViewerProxy.h:30
MeVisLab
Standard
Sources
ML
MLOffscreenRender
SoOffscreenSceneRenderer.h
Generated by
1.18.0