20 #ifndef VESPUCCITABLEMODEL_H 21 #define VESPUCCITABLEMODEL_H 23 #include <QAbstractTableModel> 37 VespucciTableModel(QObject *parent,
const mat & input_data,
const uword &start_column,
const QStringList &data_keys);
38 int rowCount(
const QModelIndex &parent)
const;
40 QVariant
data(
const QModelIndex &index,
int role)
const;
42 bool SaveMatrix(
const QString &filename,
const QString &extension)
const;
61 QStringList data_keys_;
64 #endif // VESPUCCITABLEMODEL_H The VespucciTableModel class The QAbstractTableModel that handles armadillo objects for the DataViewe...
uword MatrixColumns()
VespucciTableModel::MatrixColumns.
int columnCount(const QModelIndex &parent) const
VespucciTableModel::columnCount.
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.
VespucciTableModel(QObject *parent, const mat &input_data, const QStringList &data_keys)
VespucciTableModel::VespucciTableModel.
bool SaveMatrix(const QString &filename, const QString &extension) const
const mat & GetMatrix() const
VespucciTableModel::GetMatrix.
QVariant data(const QModelIndex &index, int role) const
VespucciTableModel::data.
int rowCount(const QModelIndex &parent) const
VespucciTableModel::rowCount.