MeVisLab Resolution Independence API
SoSceneSetupHelper.h
Go to the documentation of this file.
1/*************************************************************************************
2**
3** Copyright 2014, 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_SCENE_SETUP_HELPER_H
14#define SO_SCENE_SETUP_HELPER_H
15
17
18class SoQtSceneHandler;
19class SoQtViewerProxy;
21class SoInteractionController;
22class SoNode;
23class SoSeparator;
24
28{
29public:
31 SoSceneSetupHelper(SoQtSceneHandler* sceneHandler, SoQtViewerProxy* viewerProxy);
34
36 SoQtSceneHandler* sceneHandler() const;
38 SoInteractionController* interactionController() const;
39
41 void setSceneGraph(SoNode* scene);
42
43private:
44 SoQtSceneHandler* _sceneHandler;
45
46 SoSeparator* _rootScene;
47 SoQtViewerProxyNode* _viewerProxyNode;
48 SoInteractionController* _interactionController;
49};
50
51
52#endif // __SoSceneSetupHelper_H
#define INVENTORGUIWRAPPER_API
Library initialization interface of the inventor GUI wrapper.
SoQtViewerProxyNode will put a SoViewerElement with the given SoQtViewerProxy into the scene and also...
Helper for equipping an SoQtSceneHandler with necessary nodes for Managed Interaction and cursor sett...
SoInteractionController * interactionController() const
SoQtSceneHandler * sceneHandler() const
Access methods.
virtual ~SoSceneSetupHelper()
The destructor frees the created nodes and unsets the scene.
SoSceneSetupHelper(SoQtSceneHandler *sceneHandler, SoQtViewerProxy *viewerProxy)
The constructor does the basic setup.
SoQtViewerProxyNode * viewerProxyNode() const
void setSceneGraph(SoNode *scene)
Use this to set the actual scene graph on the SoQtSceneHandler.