Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
QmitkDataNodeSelectionProvider.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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 
18 #ifndef QMITKDATATREENODESELECTIONPROVIDER_H_
19 #define QMITKDATATREENODESELECTIONPROVIDER_H_
20 
22 
24 #include <mitkDataNodeSelection.h>
25 
38 {
39 public:
40 
42 
44 
49 
51 
52  void SetSelection(berry::ISelection::ConstPointer selection, QItemSelectionModel::SelectionFlags flags);
53 
54 protected:
55 
56  mitk::DataNodeSelection::ConstPointer GetDataNodeSelection() const;
57 
58  virtual void FireSelectionChanged(const QItemSelection& selected, const QItemSelection& deselected) override;
59 };
60 
61 #endif /* QMITKDATATREENODESELECTIONPROVIDER_H_ */
A BlueBerry selection provider for mitk::DataNode selections.
ISelection::ConstPointer GetSelection() const override
void SetSelection(const ISelection::ConstPointer &selection) override
berryObjectMacro(QtSelectionProvider)
virtual void FireSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
#define MITK_QT_COMMON