Vespucci
1.0.0
|
The VespucciTableModel class The QAbstractTableModel that handles armadillo objects for the DataViewer class. More...
#include <vespuccitablemodel.h>
Public Member Functions | |
VespucciTableModel (QObject *parent, const mat &input_data, const QStringList &data_keys) | |
VespucciTableModel::VespucciTableModel. More... | |
VespucciTableModel (QObject *parent, const mat &input_data, const uword &start_column, const QStringList &data_keys) | |
int | rowCount (const QModelIndex &parent) const |
VespucciTableModel::rowCount. More... | |
int | columnCount (const QModelIndex &parent) const |
VespucciTableModel::columnCount. More... | |
QVariant | data (const QModelIndex &index, int role) const |
VespucciTableModel::data. More... | |
const mat & | GetMatrix () const |
VespucciTableModel::GetMatrix. More... | |
bool | SaveMatrix (const QString &filename, const QString &extension) const |
uword | MatrixColumns () |
VespucciTableModel::MatrixColumns. More... | |
QStringList | data_keys () |
The VespucciTableModel class The QAbstractTableModel that handles armadillo objects for the DataViewer class.
Definition at line 32 of file vespuccitablemodel.h.
VespucciTableModel::VespucciTableModel | ( | QObject * | parent, |
const mat & | input_data, | ||
const QStringList & | data_keys | ||
) |
VespucciTableModel::VespucciTableModel.
parent | See QDialog |
iinput_data | The matrix that is displayed by the model |
Definition at line 26 of file vespuccitablemodel.cpp.
VespucciTableModel::VespucciTableModel | ( | QObject * | parent, |
const mat & | input_data, | ||
const uword & | start_column, | ||
const QStringList & | data_keys | ||
) |
Definition at line 35 of file vespuccitablemodel.cpp.
int VespucciTableModel::columnCount | ( | const QModelIndex & | parent | ) | const |
VespucciTableModel::columnCount.
parent |
Definition at line 64 of file vespuccitablemodel.cpp.
QVariant VespucciTableModel::data | ( | const QModelIndex & | index, |
int | role | ||
) | const |
index | The model index of the data to be displayed |
role | Will return empty for roles other than Qt::DisplayRole |
Definition at line 49 of file vespuccitablemodel.cpp.
QStringList VespucciTableModel::data_keys | ( | ) |
Definition at line 115 of file vespuccitablemodel.cpp.
const mat & VespucciTableModel::GetMatrix | ( | ) | const |
VespucciTableModel::GetMatrix.
Definition at line 89 of file vespuccitablemodel.cpp.
uword VespucciTableModel::MatrixColumns | ( | ) |
VespucciTableModel::MatrixColumns.
Definition at line 110 of file vespuccitablemodel.cpp.
int VespucciTableModel::rowCount | ( | const QModelIndex & | parent | ) | const |
parent |
Definition at line 79 of file vespuccitablemodel.cpp.
bool VespucciTableModel::SaveMatrix | ( | const QString & | filename, |
const QString & | extension | ||
) | const |
Definition at line 94 of file vespuccitablemodel.cpp.