00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date: 2009-07-14 19:11:20 +0200 (Tue, 14 Jul 2009) $ 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 QmitkPlanarFiguresTableModel_h 00019 #define QmitkPlanarFiguresTableModel_h 00020 00022 #include <QmitkDataStorageTableModel.h> 00023 00025 00032 class QmitkPlanarFiguresTableModel : public QmitkDataStorageTableModel 00033 { 00034 Q_OBJECT 00035 00036 //#Ctors/Dtor 00037 public: 00043 QmitkPlanarFiguresTableModel(mitk::DataStorage::Pointer _DataStorage, mitk::NodePredicateBase* _Predicate = 0 00044 , QObject* parent = 0 ); 00045 00049 virtual ~QmitkPlanarFiguresTableModel(); 00050 00051 //# Public GETTER 00052 public: 00057 QVariant headerData(int section, Qt::Orientation orientation, 00058 int role) const; 00063 Qt::ItemFlags flags(const QModelIndex &index) const; 00067 int columnCount(const QModelIndex &parent) const; 00071 QVariant data(const QModelIndex &index, int role) const; 00072 00073 }; 00074 00075 #endif 00076