Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
mitkRenderWindowLayerController.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkRenderWindowLayerController_h
14 #define mitkRenderWindowLayerController_h
15 
16 // qt widgets module
17 #include "MitkQtWidgetsExports.h"
19 
20 // mitk core
21 #include <mitkBaseRenderer.h>
22 #include <mitkDataNode.h>
23 #include <mitkDataStorage.h>
24 
25 namespace mitk
26 {
43  {
44  public:
45 
50  void SetDataStorage(DataStorage::Pointer dataStorage);
51 
52  // wrapper functions to modify the layer order / visibility of render window data
64  void InsertLayerNode(DataNode* dataNode, int layer = RenderWindowLayerUtilities::TOP_LAYER_INDEX, const BaseRenderer* renderer = nullptr);
74  bool MoveNodeToPosition(DataNode* dataNode, int layer, const BaseRenderer* renderer = nullptr);
82  bool MoveNodeToFront(DataNode* dataNode, const BaseRenderer* renderer = nullptr);
90  bool MoveNodeToBack(DataNode* dataNode, const BaseRenderer* renderer = nullptr);
98  bool MoveNodeUp(DataNode* dataNode, const BaseRenderer* renderer = nullptr);
106  bool MoveNodeDown(DataNode* dataNode, const BaseRenderer* renderer = nullptr);
107 
108  private:
109 
110  DataStorage::Pointer m_DataStorage;
111  };
112 
113 } // namespace mitk
114 
115 #endif
MITKQTWIDGETS_EXPORT
#define MITKQTWIDGETS_EXPORT
Definition: MitkQtWidgetsExports.h:15
mitkDataStorage.h
itk::SmartPointer< Self >
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
MitkQtWidgetsExports.h
mitkDataNode.h
mitk::RenderWindowLayerUtilities::TOP_LAYER_INDEX
const int TOP_LAYER_INDEX
Definition: mitkRenderWindowLayerUtilities.h:38
mitk::RenderWindowLayerController
Definition: mitkRenderWindowLayerController.h:42
mitk::BaseRenderer
Definition: mitkBaseRenderer.h:56
mitkBaseRenderer.h
mitk::DataNode
Class for nodes of the DataTree.
Definition: mitkDataNode.h:63
mitkRenderWindowLayerUtilities.h