Vespucci  1.0.0
VespucciTableModel Class Reference

The VespucciTableModel class The QAbstractTableModel that handles armadillo objects for the DataViewer class. More...

#include <vespuccitablemodel.h>

Inheritance diagram for VespucciTableModel:

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 ()
 

Detailed Description

The VespucciTableModel class The QAbstractTableModel that handles armadillo objects for the DataViewer class.

Definition at line 32 of file vespuccitablemodel.h.

Constructor & Destructor Documentation

VespucciTableModel::VespucciTableModel ( QObject *  parent,
const mat &  input_data,
const QStringList &  data_keys 
)

VespucciTableModel::VespucciTableModel.

Parameters
parentSee QDialog
iinput_dataThe 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.

Member Function Documentation

int VespucciTableModel::columnCount ( const QModelIndex &  parent) const

VespucciTableModel::columnCount.

Parameters
parent
Returns
See QAbstractTableModel::columnCount()

Definition at line 64 of file vespuccitablemodel.cpp.

QVariant VespucciTableModel::data ( const QModelIndex &  index,
int  role 
) const

VespucciTableModel::data.

Parameters
indexThe model index of the data to be displayed
roleWill return empty for roles other than Qt::DisplayRole
Returns
See QAbstractTableModel::data()

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.

Returns
Get a reference to the data

Definition at line 89 of file vespuccitablemodel.cpp.

uword VespucciTableModel::MatrixColumns ( )

VespucciTableModel::MatrixColumns.

Returns
Called by DataWidget to assertain how many views have to be provided

Definition at line 110 of file vespuccitablemodel.cpp.

int VespucciTableModel::rowCount ( const QModelIndex &  parent) const

VespucciTableModel::rowCount.

Parameters
parent
Returns
See QAbstractTableModel::rowCount

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.


The documentation for this class was generated from the following files: