Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
mitkRenderWindowLayerUtilities.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 mitkRenderWindowLayerUtilities_h
14 #define mitkRenderWindowLayerUtilities_h
15 
16 // qt widgets module
17 #include "MitkQtWidgetsExports.h"
18 
19 // mitk core
20 #include <mitkBaseRenderer.h>
21 #include <mitkDataNode.h>
22 #include <mitkDataStorage.h>
23 #include <mitkNodePredicateBase.h>
24 
28 namespace mitk
29 {
30  namespace RenderWindowLayerUtilities
31  {
32  typedef std::vector<BaseRenderer*> RendererVector;
33  typedef std::map<int, DataNode::Pointer, std::greater<int>> LayerStack;
34 
38  const int TOP_LAYER_INDEX = -1;
39 
49  MITKQTWIDGETS_EXPORT LayerStack GetLayerStack(const DataStorage* dataStorage, const BaseRenderer* renderer);
58 
60 
61  MITKQTWIDGETS_EXPORT void TransferRenderWindowProperties(DataNode* dataNode, const BaseRenderer* newRenderer, const BaseRenderer* oldRenderer);
62 
63 
64  } // namespace RenderWindowLayerUtilities
65 } // namespace mitk
66 
67 #endif
MITKQTWIDGETS_EXPORT
#define MITKQTWIDGETS_EXPORT
Definition: MitkQtWidgetsExports.h:15
mitk::RenderWindowLayerUtilities::TransferRenderWindowProperties
MITKQTWIDGETS_EXPORT void TransferRenderWindowProperties(DataNode *dataNode, const BaseRenderer *newRenderer, const BaseRenderer *oldRenderer)
mitkDataStorage.h
mitk::RenderWindowLayerUtilities::RendererVector
std::vector< BaseRenderer * > RendererVector
Definition: mitkRenderWindowLayerUtilities.h:32
mitkNodePredicateBase.h
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::RenderWindowLayerUtilities::LayerStack
std::map< int, DataNode::Pointer, std::greater< int > > LayerStack
Definition: mitkRenderWindowLayerUtilities.h:33
mitk::RenderWindowLayerUtilities::SetRenderWindowProperties
MITKQTWIDGETS_EXPORT void SetRenderWindowProperties(DataNode *dataNode, const BaseRenderer *renderer)
Set renderer-specific properties to mark a data node as 'managed by the specific renderer'....
MitkQtWidgetsExports.h
mitk::RenderWindowLayerUtilities::DeleteRenderWindowProperties
MITKQTWIDGETS_EXPORT void DeleteRenderWindowProperties(DataNode *dataNode, const BaseRenderer *renderer)
mitk::DataStorage
Data management class that handles 'was created by' relations.
Definition: mitkDataStorage.h:43
mitkDataNode.h
mitk::RenderWindowLayerUtilities::TOP_LAYER_INDEX
const int TOP_LAYER_INDEX
Definition: mitkRenderWindowLayerUtilities.h:38
mitk::BaseRenderer
Definition: mitkBaseRenderer.h:56
mitk::RenderWindowLayerUtilities::GetLayerStack
MITKQTWIDGETS_EXPORT LayerStack GetLayerStack(const DataStorage *dataStorage, const BaseRenderer *renderer)
Return the stack of layers of the given renderer as std::map<int, DataNode::Pointer>,...
mitkBaseRenderer.h
mitk::DataNode
Class for nodes of the DataTree.
Definition: mitkDataNode.h:63