00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date$ 00006 Version: $Revision$ 00007 00008 Copyright (c) German Cancer Research Center, Division of Medical and 00009 Biological Informatics. All rights reserved. 00010 See MITKCopyright.txt or https://www.mitk.org/copyright.html for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 00018 00019 #ifndef MITKDATATREENODEOBJECT_H_ 00020 #define MITKDATATREENODEOBJECT_H_ 00021 00022 #include <berryObject.h> 00023 #include <berryMacros.h> 00024 00025 #include "mitkGUICommonPluginDll.h" 00026 00027 #include <mitkDataNode.h> 00028 00029 namespace mitk 00030 { 00031 00032 class MITK_GUI_COMMON_PLUGIN DataNodeObject : public berry::Object 00033 { 00034 00035 public: 00036 00037 berryObjectMacro(mitk::DataNodeObject) 00038 00039 DataNodeObject(); 00040 DataNodeObject(DataNode::Pointer node); 00041 00042 DataNode::Pointer GetDataNode() const; 00043 00044 bool operator==(const berry::Object* obj) const; 00045 00046 private: 00047 00048 DataNode::Pointer m_Node; 00049 00050 00051 }; 00052 00053 } 00054 00055 #endif /* MITKDATATREENODEOBJECT_H_ */