Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
berryIStructuredSelection.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 BERRYISTRUCTUREDSELECTION_H_
15 #define BERRYISTRUCTUREDSELECTION_H_
16 
17 #include "berryISelection.h"
18 
19 #include <berryObjectList.h>
21 
22 namespace berry
23 {
24 
29 
31  typedef ContainerType::const_iterator iterator;
32 
34 
41  virtual Object::Pointer GetFirstElement() const = 0;
42 
48  virtual iterator Begin() const = 0;
49 
55  virtual iterator End() const = 0;
56 
62  virtual int Size() const = 0;
63 
69  virtual ContainerType::Pointer ToVector() const = 0;
70 
71  /*
72  * We need to define at least the destructor in this compilation unit
73  * because of the export macro above. Otherwise Windows throws
74  * a linker error in dependent libraries. The export macro is needed
75  * for gcc < 4.5 to correctly mark the type_info object of this class
76  * as visible (we have default visibility 'hidden') so that dynamic_cast calls work.
77  */
78  ~IStructuredSelection() override;
79 
80 };
81 
82 }
83 
84 #endif /* BERRYISTRUCTUREDSELECTION_H_ */
berry::IStructuredSelection
Definition: berryIStructuredSelection.h:28
org_blueberry_ui_qt_Export.h
berry::ObjectList
Definition: berryObjectList.h:25
berry::SmartPointer
Implements transparent reference counting.
Definition: berryICommandCategoryListener.h:21
berryObjectList.h
BERRY_UI_QT
#define BERRY_UI_QT
Definition: org_blueberry_ui_qt_Export.h:26
berry::IStructuredSelection::iterator
ContainerType::const_iterator iterator
Definition: berryIStructuredSelection.h:31
berry::ISelection
Definition: berryISelection.h:33
berryObjectMacro
#define berryObjectMacro(...)
Definition: berryMacros.h:31
berry
Definition: QmitkPropertyItemModel.h:24
berryISelection.h
berry::IStructuredSelection::ContainerType
ObjectList< Object::Pointer > ContainerType
Definition: berryIStructuredSelection.h:30