MeVisLab Resolution Independence API
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
16#include <Inventor/actions/SoGLRenderAction.h>
18
21{
22public:
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
47private:
48 SoGLRenderAction* _action;
49 SoRef<SoOffscreenViewerProxyNode> _root;
50 SoOffscreenViewerProxy* _offscreenProxy;
51};
#define MLOFFSCREENRENDER_EXPORT
void render(const SbViewportRegion &region=SbViewportRegion(), SoNode *scene=nullptr)
SoGLRenderAction * getRenderAction()
virtual ~SoOffscreenSceneRenderer()
Destructor.
virtual void GLRender(SoGLRenderAction *renderAction)
This method can be reimplemented to implement custom GL rendering or state setup.
SoOffscreenSceneRenderer()
Constructor.
This class implements access to the state of the SoOffscreenRenderer viewer.