Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
berrySingleNodeSelection.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 
14 
15 #include "mitkDataNode.h"
16 
17 namespace berry
18 {
19 
21  {
22  m_Node = _SelectedNode;
23  }
24 
26  {
27  return m_Node;
28  }
29 
31  {
32  return ( m_Node == nullptr );
33  }
34 
35 }
mitk::DataNode * GetNode() const
Node getter.
void SetNode(mitk::DataNode *_SelectedNode)
Node setter.
mitk::DataNode * m_Node
Holds the node that is currently selected.
bool IsEmpty() const override
Checks if node is 0.
Class for nodes of the DataTree.
Definition: mitkDataNode.h:57