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

#include <rawmodel.h>

Inheritance diagram for MNEBrowseRawQt::RawModel:

Public Slots

void updateScrollPos (int value)
 
void markChBad (QModelIndexList chlist, bool status)
 
void applyOperator (QModelIndexList chlist, const QSharedPointer< MNEOperator > &operatorPtr, const QString &chType)
 
void applyOperator (QModelIndexList chlist, const QSharedPointer< MNEOperator > &operatorPtr)
 
void applyOperatorsConcurrently (QPair< int, RowVectorXd > &chdata) const
 
void updateOperators (QModelIndex chan)
 
void updateOperators (QModelIndexList chlist)
 
void updateOperators ()
 
void undoFilter (QModelIndexList chlist, const QSharedPointer< MNEOperator > &filterPtr)
 
void undoFilter (QModelIndexList chlist)
 
void undoFilter (const QString &chType)
 
void undoFilter ()
 

Signals

void dataReloaded ()
 
void fileLoaded (const FiffInfo &)
 
void assignedOperatorsChanged (const QMap< int, QSharedPointer< MNEOperator > > &)
 
void writeProgressChanged (int)
 
void writeProgressRangeChanged (int, int)
 

Public Member Functions

 RawModel (QObject *parent)
 
 RawModel (QFile &qFile, QObject *parent)
 
virtual int rowCount (const QModelIndex &parent=QModelIndex()) const
 
virtual int columnCount (const QModelIndex &parent=QModelIndex()) const
 
virtual QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 
virtual QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
 
bool loadFiffData (QFile *qFile)
 
bool writeFiffData (QIODevice *p_IODevice)
 
qint32 sizeOfFiffData ()
 
qint32 firstSample () const
 
qint32 lastSample () const
 
qint32 sizeOfPreloadedData () const
 
qint32 relFiffCursor () const
 
qint32 absFiffCursor () const
 

Public Attributes

bool m_bFileloaded
 
QList< FiffChInfom_chInfolist
 
FiffInfo m_fiffInfo
 
QSharedPointer< FiffIOm_pfiffIO
 
QMap< QString, QSharedPointer< MNEOperator > > m_Operators
 

Detailed Description

DECLARE CLASS RawModel

Definition at line 144 of file rawmodel.h.

Member Function Documentation

qint32 MNEBrowseRawQt::RawModel::absFiffCursor ( ) const
inline

absFiffCursor (introduced for consistency reasons)

Returns
the absolute cursor in the fiff file

Definition at line 547 of file rawmodel.h.

void RawModel::applyOperator ( QModelIndexList  chlist,
const QSharedPointer< MNEOperator > &  operatorPtr,
const QString &  chType 
)
slot

applyOperator applies assigend operators to channel which include a scpefic string in their channel names

Parameters
chlistselects the channels to process
operatorPtr
chTypethe string which need to be included in the channels name to get filtered

Definition at line 681 of file rawmodel.cpp.

void RawModel::applyOperator ( QModelIndexList  chlist,
const QSharedPointer< MNEOperator > &  operatorPtr 
)
slot

applyOperator applies operators to channels

Parameters
chlistselects the channels to process
filter

Definition at line 721 of file rawmodel.cpp.

void RawModel::applyOperatorsConcurrently ( QPair< int, RowVectorXd > &  chdata) const
slot

applyOperatorsConcurrently updates all applied MNEOperators to a given RowVectorXd and modifies it in-place

Parameters
chdata[in,out]represents the channel data as a RowVectorXd

Definition at line 759 of file rawmodel.cpp.

void MNEBrowseRawQt::RawModel::assignedOperatorsChanged ( const QMap< int, QSharedPointer< MNEOperator > > &  )
signal

fileLoaded is emitted whenever a file was to be loaded

Parameters
thecurrentl assigned operators
void MNEBrowseRawQt::RawModel::dataReloaded ( )
signal

dataReloaded is emitted when data reloading has finished in the background-thread

void MNEBrowseRawQt::RawModel::fileLoaded ( const FiffInfo )
signal

fileLoaded is emitted whenever a file was to be loaded

Parameters
FiffInfothe current loaded fiffinfo
qint32 MNEBrowseRawQt::RawModel::firstSample ( ) const
inline

firstSample

Returns
the first sample of the loaded Fiff file

Definition at line 512 of file rawmodel.h.

qint32 MNEBrowseRawQt::RawModel::lastSample ( ) const
inline

lastSample

Returns
the last sample of the loaded Fiff file

Definition at line 521 of file rawmodel.h.

bool RawModel::loadFiffData ( QFile *  qFile)

loadFiffData loads fiff data file.

Parameters
p_IODevicefiff data file to write

Definition at line 362 of file rawmodel.cpp.

void RawModel::markChBad ( QModelIndexList  chlist,
bool  status 
)
slot

markChBad marks the selected channels as bad/good in m_chInfolist

Parameters
chlistis the list of indices that are selected for marking
status,status=1-> mark as bad, status=0 -> mark as good

Definition at line 656 of file rawmodel.cpp.

qint32 MNEBrowseRawQt::RawModel::relFiffCursor ( ) const
inline

relFiffCursor

Returns
the relative cursor in the fiff file

Definition at line 540 of file rawmodel.h.

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

Reimplemented virtual functions

Definition at line 152 of file rawmodel.cpp.

qint32 MNEBrowseRawQt::RawModel::sizeOfFiffData ( )
inline

sizeOfFiffData

Returns
the size of the total data contained in the loaded Fiff file

Definition at line 503 of file rawmodel.h.

qint32 MNEBrowseRawQt::RawModel::sizeOfPreloadedData ( ) const
inline

sizeOfPreloadedData

Returns
size of loaded m_data

Definition at line 530 of file rawmodel.h.

void RawModel::undoFilter ( QModelIndexList  chlist,
const QSharedPointer< MNEOperator > &  filterPtr 
)
slot

undoFilter undoes the filtering operation for filter operations of the type

Parameters
chlistselects the channels to filter
typedetermines the filter type TPassType to choose for the undo operation

Definition at line 844 of file rawmodel.cpp.

void RawModel::undoFilter ( QModelIndexList  chlist)
slot

undoFilter undoes the filtering operation for all filter operations

Parameters
chlistselects the channels to filter

Definition at line 872 of file rawmodel.cpp.

void RawModel::undoFilter ( const QString &  chType)
slot

undoFilter undoes the filtering operation for all filter operations for channel which include chType in their channel name

Parameters
chTypechannel names which include this paramter in their channel name get undone

Definition at line 885 of file rawmodel.cpp.

void RawModel::undoFilter ( )
slot

undoFilter undoes the filtering operation for all filter operations for all channels

Definition at line 902 of file rawmodel.cpp.

void RawModel::updateOperators ( QModelIndex  chan)
slot

updateOperators updates all set operator to channels according to m_assignedOperators

Parameters
chanthe channel to which the operators shall be updated

Definition at line 784 of file rawmodel.cpp.

void RawModel::updateOperators ( QModelIndexList  chlist)
slot

updateOperators is an overloaded function to update the operators to a channel list

Parameters
chlist

Definition at line 808 of file rawmodel.cpp.

void RawModel::updateOperators ( )
slot

updateOperators is an overloaded function that updates all channels according to m_assignedOperators

Definition at line 836 of file rawmodel.cpp.

void RawModel::updateScrollPos ( int  value)
slot

updateScrollPos checks, whether the actual position of the QScrollBar demands for a fiff data reload (depending on m_reloadPos and m_iCurAbsScrollPos)

Parameters
valuethe position of QScrollBar

Definition at line 628 of file rawmodel.cpp.

bool RawModel::writeFiffData ( QIODevice *  p_IODevice)

writeFiffData writes a new fiff data file

Parameters
p_IODevicefiff data file to write
Returns

Definition at line 411 of file rawmodel.cpp.

Member Data Documentation

bool MNEBrowseRawQt::RawModel::m_bFileloaded

true when a Fiff file is loaded

Definition at line 179 of file rawmodel.h.

QList<FiffChInfo> MNEBrowseRawQt::RawModel::m_chInfolist

List of FiffChInfo objects that holds the corresponding channels information

Definition at line 180 of file rawmodel.h.

FiffInfo MNEBrowseRawQt::RawModel::m_fiffInfo

fiff info of whole fiff file

Definition at line 181 of file rawmodel.h.

QMap<QString,QSharedPointer<MNEOperator> > MNEBrowseRawQt::RawModel::m_Operators

generated MNEOperator types (FilterOperator,PCA etc.)

Definition at line 183 of file rawmodel.h.

QSharedPointer<FiffIO> MNEBrowseRawQt::RawModel::m_pfiffIO

FiffIO objects, which holds all the information of the fiff data (excluding the samples!)

Definition at line 182 of file rawmodel.h.


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