MNE-CPP  beta 1.0
Signals | Public Member Functions | Public Attributes | Protected Attributes | List of all members
MNEBrowseRawQt::ProjectionModel Class Reference

#include <projectionmodel.h>

Inheritance diagram for MNEBrowseRawQt::ProjectionModel:

Signals

void fileLoaded (bool)
 

Public Member Functions

 ProjectionModel (QObject *parent=0)
 
 ProjectionModel (QObject *parent, QFile &qFile)
 
 ProjectionModel (QObject *parent, QList< FiffProj > &dataProjs)
 
virtual int rowCount (const QModelIndex &parent=QModelIndex()) const
 
virtual int columnCount (const QModelIndex &parent=QModelIndex()) const
 
virtual QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
 
virtual QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 
virtual bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
 
virtual Qt::ItemFlags flags (const QModelIndex &index) const
 
virtual bool insertRows (int position, int span, const QModelIndex &parent=QModelIndex())
 
virtual bool removeRows (int position, int span, const QModelIndex &parent=QModelIndex())
 
bool loadProjections (QFile &qFile)
 
bool saveProjections (QFile &qFile)
 
void addProjections (const QList< FiffProj > &dataProjs)
 
void addProjections (const FiffInfo &fiffInfo)
 
void clearModel ()
 

Public Attributes

bool m_bFileloaded
 

Protected Attributes

QList< FiffProjm_dataProjs
 

Detailed Description

DECLARE CLASS ProjectionModel

Definition at line 94 of file projectionmodel.h.

Member Function Documentation

void ProjectionModel::addProjections ( const QList< FiffProj > &  dataProjs)

addProjections adds projections to the data

Parameters
dataProjsfiff list with already loaded projectors.

Definition at line 346 of file projectionmodel.cpp.

void ProjectionModel::addProjections ( const FiffInfo fiffInfo)

addProjections adds projections to the data

Parameters
fiffInfofiff info with already loaded projectors.

Definition at line 357 of file projectionmodel.cpp.

void ProjectionModel::clearModel ( )

clearModel clears all model's members

Definition at line 368 of file projectionmodel.cpp.

void MNEBrowseRawQt::ProjectionModel::fileLoaded ( bool  )
signal

fileLoaded is emitted whenever a file was (tried) to be loaded

bool ProjectionModel::loadProjections ( QFile &  qFile)

loadProjections loads projections from a fif file

Parameters
qFilefiff data file containing the projections

Definition at line 286 of file projectionmodel.cpp.

int ProjectionModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
virtual

Reimplemented virtual functions

Definition at line 89 of file projectionmodel.cpp.

bool ProjectionModel::saveProjections ( QFile &  qFile)

saveProjections saves projections to a fif file

Parameters
qFilefiff data file containing the projections

Definition at line 330 of file projectionmodel.cpp.

Member Data Documentation

bool MNEBrowseRawQt::ProjectionModel::m_bFileloaded

true when a Fiff evoked file is loaded.

Definition at line 147 of file projectionmodel.h.

QList<FiffProj> MNEBrowseRawQt::ProjectionModel::m_dataProjs
protected

current projector data.

Definition at line 156 of file projectionmodel.h.


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