Medical Imaging Interaction Toolkit  2018.4.99-b20efe7f
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:72
ContainerType::const_iterator iterator
MITKCORE_EXPORT bool operator==(const InteractionEvent &a, const InteractionEvent &b)
#define berryObjectMacro(...)
Definition: berryMacros.h:33
#define BERRY_UI_QT