Medical Imaging Interaction Toolkit  2021.10.99-1c4db16f
Medical Imaging Interaction Toolkit
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 (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 
14 #ifndef QMITKDATATREENODESELECTIONPROVIDER_H_
15 #define QMITKDATATREENODESELECTIONPROVIDER_H_
16 
18 
20 #include <mitkDataNodeSelection.h>
21 
34 {
35 public:
36 
38 
40 
45 
47 
48  void SetSelection(const berry::ISelection::ConstPointer& selection, QItemSelectionModel::SelectionFlags flags) override;
49 
50 protected:
51 
52  mitk::DataNodeSelection::ConstPointer GetDataNodeSelection() const;
53 
54  void FireSelectionChanged(const QItemSelection& selected, const QItemSelection& deselected) override;
55 };
56 
57 #endif /* QMITKDATATREENODESELECTIONPROVIDER_H_ */
A BlueBerry selection provider for mitk::DataNode selections.
virtual void FireSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
ISelection::ConstPointer GetSelection() const override
void SetSelection(const ISelection::ConstPointer &selection) override
berryObjectMacro(QtSelectionProvider)
#define MITK_QT_COMMON