Medical Imaging Interaction Toolkit  2021.10.99-fd647480
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 librraies. 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_ */
ContainerType::const_iterator iterator
#define berryObjectMacro(...)
Definition: berryMacros.h:33
ObjectList< Object::Pointer > ContainerType
#define BERRY_UI_QT