Medical Imaging Interaction Toolkit  2025.12.02
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 mitkDataNodeSelection_h
15 #define mitkDataNodeSelection_h
16 
18 #include <mitkDataNode.h>
20 
21 
22 namespace mitk {
23 
28 {
29 
30 public:
31 
33 
35  DataNodeSelection(DataNode::Pointer node);
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 
58 };
59 
60 }
61 
62 
63 #endif
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:73
Implements transparent reference counting.
std::list< mitk::DataNode::Pointer > GetSelectedDataNodes() const
DataNodeSelection(DataNode::Pointer node)
ContainerType::Pointer ToVector() const override
iterator End() const override
iterator Begin() const override
berryObjectMacro(DataNodeSelection)
Object::Pointer GetFirstElement() const override
DataNodeSelection(const std::vector< DataNode::Pointer > &nodes)
bool IsEmpty() const override
int Size() const override
bool operator==(const berry::Object *obj) const override
ContainerType::Pointer m_Selection
Find image slices visible on a given plane.
#define MITK_GUI_COMMON_PLUGIN
ContainerType::const_iterator iterator