00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date$ 00006 Version: $Revision: 18127 $ 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 #ifndef QMITK_BASEFUNCTIONALITYCOMPONENT_H 00019 #define QMITK_BASEFUNCTIONALITYCOMPONENT_H 00020 00021 00043 #include <qobject.h> 00044 #include "QmitkExtExports.h" 00045 #include "QmitkBaseComponent.h" 00046 #include "mitkDataNode.h" 00047 #include <mitkDataStorage.h> 00048 00049 00050 class QmitkExt_EXPORT QmitkBaseFunctionalityComponent : public QmitkBaseComponent 00051 { 00052 Q_OBJECT 00053 00054 public: 00055 /*************** CONSTRUCTOR ***************/ 00059 QmitkBaseFunctionalityComponent(QObject *parent=0, const char *name=0); 00060 00061 /*************** DESTRUCTOR ***************/ 00065 virtual ~QmitkBaseFunctionalityComponent(); 00066 00067 /*************** DESTRUCTOR ***************/ 00071 mitk::DataStorage::Pointer GetDefaultDataStorage(); 00072 00073 00074 /*************** OHTER METHODS ***************/ 00075 00076 virtual void DataStorageChanged(mitk::DataStorage::Pointer ds); 00077 00079 virtual void ImageSelected(const mitk::DataNode* item); 00080 00084 mitk::Image* m_ParentMitkImage; 00085 00089 mitk::Image* m_MitkImage; 00090 00091 mitk::DataStorage::Pointer m_DataStorage; 00092 00093 00094 }; 00095 #endif 00096