Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryQtItemSelection.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 BlueBerry Platform
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 
18 #ifndef BERRYQTITEMSELECTION_H_
19 #define BERRYQTITEMSELECTION_H_
20 
22 
24 
25 #include <QItemSelection>
26 
27 namespace berry {
28 
30 {
31 
32 public:
33 
35 
37  QtItemSelection(const QItemSelection& sel);
38 
39  QItemSelection GetQItemSelection() const;
40 
41  bool IsEmpty() const override;
42 
43  Object::Pointer GetFirstElement() const override;
44  iterator Begin() const override;
45  iterator End() const override;
46  int Size() const override;
47  ContainerType::Pointer ToVector() const override;
48 
49  bool operator==(const Object* obj) const override;
50 
51 private:
52 
53  ContainerType::Pointer m_Selection;
54  QItemSelection m_QItemSelection;
55 
56 };
57 
58 }
59 
60 #endif /* BERRYQTITEMSELECTION_H_ */
itk::SmartPointer< Self > Pointer
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:78
ContainerType::const_iterator iterator
MITKCORE_EXPORT bool operator==(const InteractionEvent &a, const InteractionEvent &b)
#define berryObjectMacro(...)
Definition: berryMacros.h:37
#define BERRY_UI_QT