Medical Imaging Interaction Toolkit  2024.06.00
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::InitializeWithDataNode
virtual void InitializeWithDataNode(const mitk::DataNode *)
Definition: QmitkAbstractDataNodeAction.h:46
mitkDataStorage.h
QmitkAbstractDataNodeAction::m_DataStorage
mitk::WeakPointer< mitk::DataStorage > m_DataStorage
Definition: QmitkAbstractDataNodeAction.h:62
berry::SmartPointer
Implements transparent reference counting.
Definition: berryICommandCategoryListener.h:21
QmitkAbstractDataNodeAction::m_WorkbenchPartSite
berry::IWorkbenchPartSite::WeakPtr m_WorkbenchPartSite
Definition: QmitkAbstractDataNodeAction.h:61
itk::SmartPointer< Self >
QmitkAbstractDataNodeAction
Definition: QmitkAbstractDataNodeAction.h:34
QmitkAbstractDataNodeAction::m_SelectedNodes
QList< mitk::DataNode::Pointer > m_SelectedNodes
Definition: QmitkAbstractDataNodeAction.h:63
AbstractDataNodeAction
Definition: QmitkAbstractDataNodeAction.h:29
berryIWorkbenchPartSite.h
mitk::DataStorage
Data management class that handles 'was created by' relations.
Definition: mitkDataStorage.h:43
mitkWeakPointer.h
berry::IWorkbenchPartSite
Definition: berryIWorkbenchPartSite.h:31
mitk::BaseRenderer
Definition: mitkBaseRenderer.h:56
MITK_QT_APP
#define MITK_QT_APP
Definition: org_mitk_gui_qt_application_Export.h:26
org_mitk_gui_qt_application_Export.h
berry::WeakPointer
implements a WeakPointer class to deal with circular reference problems.
Definition: berrySmartPointer.h:32
mitkBaseRenderer.h
mitk::WeakPointer< mitk::DataStorage >
AbstractDataNodeAction::GetSelectedNodes
MITK_QT_APP QList< mitk::DataNode::Pointer > GetSelectedNodes(berry::IWorkbenchPartSite::Pointer workbenchPartSite)
mitk::DataNode
Class for nodes of the DataTree.
Definition: mitkDataNode.h:63