Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
berryQtItemSelection.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 BERRYQTITEMSELECTION_H_
15 #define BERRYQTITEMSELECTION_H_
16 
18 
20 
21 #include <QItemSelection>
22 
23 namespace berry {
24 
26 {
27 
28 public:
29 
31 
33  QtItemSelection(const QItemSelection& sel);
34 
35  QItemSelection GetQItemSelection() const;
36 
37  bool IsEmpty() const override;
38 
39  Object::Pointer GetFirstElement() const override;
40  iterator Begin() const override;
41  iterator End() const override;
42  int Size() const override;
43  ContainerType::Pointer ToVector() const override;
44 
45  bool operator==(const Object* obj) const override;
46 
47 private:
48 
49  ContainerType::Pointer m_Selection;
50  QItemSelection m_QItemSelection;
51 
52 };
53 
54 }
55 
56 #endif /* BERRYQTITEMSELECTION_H_ */
berry::QtItemSelection
Definition: berryQtItemSelection.h:25
berryIStructuredSelection.h
berry::IStructuredSelection
Definition: berryIStructuredSelection.h:28
org_blueberry_ui_qt_Export.h
berry::SmartPointer
Implements transparent reference counting.
Definition: berryICommandCategoryListener.h:21
berry::Object
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:72
BERRY_UI_QT
#define BERRY_UI_QT
Definition: org_blueberry_ui_qt_Export.h:26
mitk::operator==
MITKCORE_EXPORT bool operator==(const InteractionEvent &a, const InteractionEvent &b)
berry::IStructuredSelection::iterator
ContainerType::const_iterator iterator
Definition: berryIStructuredSelection.h:31
berryObjectMacro
#define berryObjectMacro(...)
Definition: berryMacros.h:31
berry
Definition: QmitkPropertyItemModel.h:24