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

#include <chinfomodel.h>

Inheritance diagram for MNEBrowseRawQt::ChInfoModel:

Signals

void channelsMappedToLayout (const QStringList &mappedLayoutChNames)
 

Public Member Functions

 ChInfoModel (QObject *parent=0)
 
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())
 
void fiffInfoChanged (const FiffInfo &fiffInfo)
 
void assignedOperatorsChanged (const QMap< int, QSharedPointer< MNEOperator > > &assignedOperators)
 
void layoutChanged (const QMap< QString, QPointF > &layoutMap)
 
const QStringList & getMappedChannelsList ()
 
int getIndexFromOrigChName (QString chName)
 
int getIndexFromMappedChName (QString chName)
 

Protected Member Functions

void clearModel ()
 
void mapLayoutToChannels ()
 

Protected Attributes

FiffInfo m_fiffInfo
 
QMap< QString, QPointF > m_layoutMap
 
QStringList m_aliasNames
 
QStringList m_mappedLayoutChNames
 
QMap< int, QSharedPointer< MNEOperator > > m_assignedOperators
 

Detailed Description

DECLARE CLASS ChInfoModel

Definition at line 97 of file chinfomodel.h.

Member Function Documentation

void ChInfoModel::assignedOperatorsChanged ( const QMap< int, QSharedPointer< MNEOperator > > &  assignedOperators)

Updates the fiff info

Parameters
assignedOperatorsthe filter operators which are currently active.

Definition at line 502 of file chinfomodel.cpp.

void MNEBrowseRawQt::ChInfoModel::channelsMappedToLayout ( const QStringList &  mappedLayoutChNames)
signal

Emit this signal whenever channels where mapped to a layout

void ChInfoModel::clearModel ( )
protected

clearModel clears all model's members

Definition at line 614 of file chinfomodel.cpp.

void ChInfoModel::fiffInfoChanged ( const FiffInfo fiffInfo)

Updates the fiff info

Parameters
fiffInfofiff info variabel.

Definition at line 484 of file chinfomodel.cpp.

int ChInfoModel::getIndexFromMappedChName ( QString  chName)

Returns the model index for the given input channel fro mthe mapped channel list

Parameters
chNamethe channel name for which the model index is needed.
Returns
the index number. if channel was not found in the data this functions returns -1

Definition at line 551 of file chinfomodel.cpp.

int ChInfoModel::getIndexFromOrigChName ( QString  chName)

Returns the model index for the given input channel fro mthe original channel list

Parameters
chNamethe channel name for which the model index is needed.
Returns
the index number. if channel was not found in the data this functions returns -1

Definition at line 543 of file chinfomodel.cpp.

const QStringList & ChInfoModel::getMappedChannelsList ( )

Updates the layout map

Returns
the current mapped channel list

Definition at line 534 of file chinfomodel.cpp.

void ChInfoModel::layoutChanged ( const QMap< QString, QPointF > &  layoutMap)

Updates the layout map

Parameters
layoutMapthe layout map with the 2D positions.

Definition at line 516 of file chinfomodel.cpp.

void ChInfoModel::mapLayoutToChannels ( )
protected

Maps the currently loaded channels to the loaded layout file

Definition at line 559 of file chinfomodel.cpp.

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

Reimplemented virtual functions

Definition at line 67 of file chinfomodel.cpp.

Member Data Documentation

QStringList MNEBrowseRawQt::ChInfoModel::m_aliasNames
protected

list of given channel aliases.

Definition at line 192 of file chinfomodel.h.

QMap<int,QSharedPointer<MNEOperator> > MNEBrowseRawQt::ChInfoModel::m_assignedOperators
protected

Map of MNEOperator types to channels.

Definition at line 194 of file chinfomodel.h.

FiffInfo MNEBrowseRawQt::ChInfoModel::m_fiffInfo
protected

The fiff info of the currently loaded fiff file.

Definition at line 190 of file chinfomodel.h.

QMap<QString,QPointF> MNEBrowseRawQt::ChInfoModel::m_layoutMap
protected

The current layout map with a position for all MEG and EEG channels.

Definition at line 191 of file chinfomodel.h.

QStringList MNEBrowseRawQt::ChInfoModel::m_mappedLayoutChNames
protected

list of the mapped layout channel names.

Definition at line 193 of file chinfomodel.h.


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