Medical Imaging Interaction Toolkit  2021.10.99-1c4db16f
Medical Imaging Interaction Toolkit
mitkDataNodeSelection.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 MITKDATATREENODESELECTION_H_
15 #define MITKDATATREENODESELECTION_H_
16 
18 #include <mitkDataNode.h>
20 
21 
22 namespace mitk {
23 
28 {
29 
30 public:
31 
33 
36  DataNodeSelection(const std::vector<DataNode::Pointer>& nodes);
37 
38  Object::Pointer GetFirstElement() const override;
39  iterator Begin() const override;
40  iterator End() const override;
41 
42  int Size() const override;
43 
44  ContainerType::Pointer ToVector() const override;
45 
46  std::list<mitk::DataNode::Pointer> GetSelectedDataNodes() const;
47 
51  bool IsEmpty() const override;
52 
53  bool operator==(const berry::Object* obj) const override;
54 
55 protected:
56 
57  ContainerType::Pointer m_Selection;
58 };
59 
60 }
61 
62 
63 #endif /* MITKDATATREENODESELECTION_H_ */
MITKCORE_EXPORT bool operator==(const InteractionEvent &a, const InteractionEvent &b)
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:72
DataCollection - Class to facilitate loading/accessing structured data.
ContainerType::const_iterator iterator
ContainerType::Pointer m_Selection
#define berryObjectMacro(...)
Definition: berryMacros.h:33
#define MITK_GUI_COMMON_PLUGIN