Medical Imaging Interaction Toolkit
2024.06.00
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 QmitkDataNodeSelectionProvider_h
15
#define QmitkDataNodeSelectionProvider_h
16
17
#include <
org_mitk_gui_qt_common_Export.h
>
18
19
#include <
berryQtSelectionProvider.h
>
20
#include <
mitkDataNodeSelection.h
>
21
33
class
MITK_QT_COMMON
QmitkDataNodeSelectionProvider
:
public
berry::QtSelectionProvider
34
{
35
public
:
36
37
berryObjectMacro
(
QmitkDataNodeSelectionProvider
);
38
39
QmitkDataNodeSelectionProvider
();
40
44
berry::ISelection::ConstPointer
GetSelection
()
const override
;
45
46
using
QtSelectionProvider::SetSelection
;
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
MITK_QT_COMMON
#define MITK_QT_COMMON
Definition:
org_mitk_gui_qt_common_Export.h:26
mitkDataNodeSelection.h
berry::QtSelectionProvider::berryObjectMacro
berryObjectMacro(QtSelectionProvider)
berry::QtSelectionProvider::SetSelection
void SetSelection(const ISelection::ConstPointer &selection) override
berry::SmartPointer
Implements transparent reference counting.
Definition:
berryICommandCategoryListener.h:21
berryQtSelectionProvider.h
berry::QtSelectionProvider::FireSelectionChanged
virtual void FireSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
berry::QtSelectionProvider
Definition:
berryQtSelectionProvider.h:27
berry::QtSelectionProvider::GetSelection
ISelection::ConstPointer GetSelection() const override
org_mitk_gui_qt_common_Export.h
QmitkDataNodeSelectionProvider
A BlueBerry selection provider for mitk::DataNode selections.
Definition:
QmitkDataNodeSelectionProvider.h:33
src
MITK
Plugins
org.mitk.gui.qt.common
src
QmitkDataNodeSelectionProvider.h
Generated on Mon Jun 17 2024 12:43:31 for Medical Imaging Interaction Toolkit by
1.8.17