Medical Imaging Interaction Toolkit  2018.4.99-08619e4f
Medical Imaging Interaction Toolkit
QmitkAbstractDataNodeAction.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 QMITKABSTRACTDATANODEACTION_H
14 #define QMITKABSTRACTDATANODEACTION_H
15 
17 
18 // mitk core
19 #include <mitkBaseRenderer.h>
20 #include <mitkDataStorage.h>
21 #include <mitkWeakPointer.h>
22 
23 // berry
25 
26 // qt
27 #include <QList>
28 
30 {
31  MITK_QT_APP QList<mitk::DataNode::Pointer> GetSelectedNodes(berry::IWorkbenchPartSite::Pointer workbenchPartSite);
32 }
33 
35 {
36 
37 public:
38 
41 
42  void SetDataStorage(mitk::DataStorage* dataStorage);
43  void SetSelectedNodes(const QList<mitk::DataNode::Pointer>& selectedNodes);
44  void SetBaseRenderer(mitk::BaseRenderer* baseRenderer);
45 
46  virtual void InitializeWithDataNode(const mitk::DataNode*) { }
47 
48 protected:
49 
50  virtual void InitializeAction() = 0;
51 
56  mitk::BaseRenderer::Pointer GetBaseRenderer();
57 
58  mitk::DataNode::Pointer GetSelectedNode() const;
59  QList<mitk::DataNode::Pointer> GetSelectedNodes() const;
60 
63  QList<mitk::DataNode::Pointer> m_SelectedNodes;
64 
65 private:
66 
68 
69 };
70 
71 #endif // QMITKABSTRACTDATANODEACTION_H
Data management class that handles &#39;was created by&#39; relations.
MITK_QT_APP QList< mitk::DataNode::Pointer > GetSelectedNodes(berry::IWorkbenchPartSite::Pointer workbenchPartSite)
Organizes the rendering process.
virtual void InitializeWithDataNode(const mitk::DataNode *)
mitk::WeakPointer< mitk::DataStorage > m_DataStorage
berry::IWorkbenchPartSite::WeakPtr m_WorkbenchPartSite
QList< mitk::DataNode::Pointer > m_SelectedNodes
Class for nodes of the DataTree.
Definition: mitkDataNode.h:57