Medical Imaging Interaction Toolkit  2018.4.99-eed36131
Medical Imaging Interaction Toolkit
mitkDataNodeObject.cpp
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 #include "mitkDataNodeObject.h"
14 
15 namespace mitk
16 {
17 
19  m_Node(nullptr)
20 {
21 
22 }
23 
25  m_Node(node)
26 {
27 
28 }
29 
31 {
32  return m_Node;
33 }
34 
36 {
37  if (const DataNodeObject* other = dynamic_cast<const DataNodeObject*>(obj))
38  {
39  return m_Node == other->m_Node;
40  }
41 
42  return false;
43 }
44 
45 }
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:72
DataCollection - Class to facilitate loading/accessing structured data.
mitk::DataNode::Pointer m_Node
DataNode::Pointer GetDataNode() const
bool operator==(const berry::Object *obj) const override