Vespucci  1.0.0
DatasetTreeModel Class Reference

#include <datasettreemodel.h>

Inheritance diagram for DatasetTreeModel:

Public Member Functions

 DatasetTreeModel (QObject *parent)
 
 DatasetTreeModel (QObject *parent, const DataModel *data_model)
 
void SetupModelData (const DataModel *data_model)
 DatasetTreeModel::SetupModelData. More...
 
 ~DatasetTreeModel ()
 
QVariant data (const QModelIndex &index, int role) const Q_DECL_OVERRIDE
 
Qt::ItemFlags flags (const QModelIndex &index) const Q_DECL_OVERRIDE
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const Q_DECL_OVERRIDE
 
QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const Q_DECL_OVERRIDE
 
QModelIndex parent (const QModelIndex &index) const Q_DECL_OVERRIDE
 
int rowCount (const QModelIndex &parent) const Q_DECL_OVERRIDE
 
int columnCount (const QModelIndex &parent) const Q_DECL_OVERRIDE
 
bool removeRows (int row, int count, const QModelIndex &parent=QModelIndex()) Q_DECL_OVERRIDE
 
void UpdateData (const DataModel *data_model)
 
void AddDataset (QSharedPointer< VespucciDataset > dataset)
 
bool IsMatrix (const QModelIndex &index)
 
bool IsDataset (const QModelIndex &index)
 
bool IsMap (const QModelIndex &index)
 
void ClearDatasets ()
 
void removeRow (const QModelIndex &index)
 
TreeItemgetItem (const QModelIndex &index) const
 
TreeItemroot_item ()
 

Detailed Description

Definition at line 33 of file datasettreemodel.h.

Constructor & Destructor Documentation

DatasetTreeModel::DatasetTreeModel ( QObject *  parent)

Definition at line 22 of file datasettreemodel.cpp.

DatasetTreeModel::DatasetTreeModel ( QObject *  parent,
const DataModel data_model 
)

Definition at line 31 of file datasettreemodel.cpp.

DatasetTreeModel::~DatasetTreeModel ( )

Definition at line 139 of file datasettreemodel.cpp.

Member Function Documentation

void DatasetTreeModel::AddDataset ( QSharedPointer< VespucciDataset dataset)

Definition at line 270 of file datasettreemodel.cpp.

void DatasetTreeModel::ClearDatasets ( )

Definition at line 277 of file datasettreemodel.cpp.

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

Definition at line 204 of file datasettreemodel.cpp.

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

Definition at line 144 of file datasettreemodel.cpp.

Qt::ItemFlags DatasetTreeModel::flags ( const QModelIndex &  index) const

Definition at line 154 of file datasettreemodel.cpp.

TreeItem * DatasetTreeModel::getItem ( const QModelIndex &  index) const

Definition at line 292 of file datasettreemodel.cpp.

QVariant DatasetTreeModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const

Definition at line 161 of file datasettreemodel.cpp.

QModelIndex DatasetTreeModel::index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const

Definition at line 168 of file datasettreemodel.cpp.

bool DatasetTreeModel::IsDataset ( const QModelIndex &  index)
bool DatasetTreeModel::IsMap ( const QModelIndex &  index)
bool DatasetTreeModel::IsMatrix ( const QModelIndex &  index)
QModelIndex DatasetTreeModel::parent ( const QModelIndex &  index) const

Definition at line 185 of file datasettreemodel.cpp.

void DatasetTreeModel::removeRow ( const QModelIndex &  index)

Definition at line 285 of file datasettreemodel.cpp.

bool DatasetTreeModel::removeRows ( int  row,
int  count,
const QModelIndex &  parent = QModelIndex() 
)

Definition at line 209 of file datasettreemodel.cpp.

TreeItem * DatasetTreeModel::root_item ( )

Definition at line 301 of file datasettreemodel.cpp.

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

Definition at line 198 of file datasettreemodel.cpp.

void DatasetTreeModel::SetupModelData ( const DataModel data_model)

DatasetTreeModel::SetupModelData.

Parameters
data_modelCan throw an exception if one is thrown by data_model->GetDataset()

Definition at line 128 of file datasettreemodel.cpp.

void DatasetTreeModel::UpdateData ( const DataModel data_model)

Definition at line 218 of file datasettreemodel.cpp.


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