Medical Imaging Interaction Toolkit  2025.12.02
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_ */
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:73
int Size() const override
iterator End() const override
QItemSelection GetQItemSelection() const
ContainerType::Pointer ToVector() const override
QtItemSelection(const QItemSelection &sel)
berryObjectMacro(QtItemSelection)
Object::Pointer GetFirstElement() const override
iterator Begin() const override
bool IsEmpty() const override
bool operator==(const Object *obj) const override
Implements transparent reference counting.
#define BERRY_UI_QT
ContainerType::const_iterator iterator