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 
18 class SoQtSceneHandler;
19 class SoQtViewerProxy;
21 class SoInteractionController;
22 class SoNode;
23 class SoSeparator;
24 
28 {
29 public:
31  SoSceneSetupHelper(SoQtSceneHandler* sceneHandler, SoQtViewerProxy* viewerProxy);
34 
36  SoQtSceneHandler* sceneHandler() const;
38  SoInteractionController* interactionController() const;
39 
41  void setSceneGraph(SoNode* scene);
42 
43 private:
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...
virtual ~SoSceneSetupHelper()
The destructor frees the created nodes and unsets the scene.
SoSceneSetupHelper(SoQtSceneHandler *sceneHandler, SoQtViewerProxy *viewerProxy)
The constructor does the basic setup.
SoInteractionController * interactionController() const
SoQtViewerProxyNode * viewerProxyNode() const
SoQtSceneHandler * sceneHandler() const
Access methods.
void setSceneGraph(SoNode *scene)
Use this to set the actual scene graph on the SoQtSceneHandler.