Vespucci  1.0.0
spectratablemodel.h
Go to the documentation of this file.
1 #ifndef SPECTRATABLEMODEL_H
2 #define SPECTRATABLEMODEL_H
3 
4 #include <QAbstractTableModel>
6 class VespucciDataset;
7 using namespace arma;
8 
9 class SpectraTableModel : public QAbstractTableModel
10 {
11  Q_OBJECT
12 public:
13  SpectraTableModel(QObject *parent, QSharedPointer<VespucciDataset> dataset);
14  SpectraTableModel(QObject *parent);
15  int rowCount(const QModelIndex &parent) const;
16  int columnCount(const QModelIndex &parent) const;
17  QVariant data(const QModelIndex &index, int role) const;
18  void ShedRow(int row);
19  QVariant headerData(int section, Qt::Orientation orientation, int role) const;
20 signals:
21 public slots:
22 
23 private:
24  vec *x_;
25  vec *y_;
26  QSharedPointer<VespucciDataset> dataset_;
27 };
28 
29 #endif // SPECTRATABLEMODEL_H
The VespucciDataset class This is the main class for dealing with hyperspectral data. This handles the import and export of spectra, and the creation of maps. Images are handled by the MapData class. This class is intended to be allocated on the heap inside of a smart pointer, there is no copy constructor.