MNE-CPP  0.1.9
A Framework for Electrophysiology
Public Types | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
DISPLIB::ChannelInfoModel Class Reference

#include <channelinfomodel.h>

Public Types

typedef QSharedPointer< ChannelInfoModelSPtr
 
typedef QSharedPointer< const ChannelInfoModelConstSPtr
 

Signals

void channelsMappedToLayout (const QStringList &mappedLayoutChNames)
 

Public Member Functions

 ChannelInfoModel (QSharedPointer< FIFFLIB::FiffInfo > &pFiffInfo, QObject *parent=0)
 
 ChannelInfoModel (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 setFiffInfo (QSharedPointer< FIFFLIB::FiffInfo > &pFiffInfo)
 
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)
 
QStringList getBadChannelList ()
 
void clearModel ()
 

Protected Member Functions

void mapLayoutToChannels ()
 

Protected Attributes

QSharedPointer< FIFFLIB::FiffInfom_pFiffInfo
 
QMap< int, QSharedPointer< MNEOperator > > m_assignedOperators
 
QMap< QString, QPointF > m_layoutMap
 
QStringList m_aliasNames
 
QStringList m_mappedLayoutChNames
 

Detailed Description

DECLARE CLASS ChannelInfoModel

Definition at line 100 of file channelinfomodel.h.

Inheritance diagram for DISPLIB::ChannelInfoModel:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

Const shared pointer type for ChannelInfoModel.

Definition at line 106 of file channelinfomodel.h.

◆ SPtr

Shared pointer type for ChannelInfoModel.

Definition at line 105 of file channelinfomodel.h.

Member Function Documentation

◆ assignedOperatorsChanged()

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

Updates the fiff info

Parameters
[in]assignedOperatorsthe filter operators which are currently active.

Definition at line 568 of file channelinfomodel.cpp.

◆ channelsMappedToLayout

void DISPLIB::ChannelInfoModel::channelsMappedToLayout ( const QStringList &  mappedLayoutChNames)
signal

Emit this signal whenever channels where mapped to a layout

◆ clearModel()

void ChannelInfoModel::clearModel ( )

clearModel clears all model's members

Definition at line 669 of file channelinfomodel.cpp.

◆ getBadChannelList()

QStringList ChannelInfoModel::getBadChannelList ( )

Returns bad channel list.

Returns
the bad channel list.

Definition at line 620 of file channelinfomodel.cpp.

◆ getIndexFromMappedChName()

int ChannelInfoModel::getIndexFromMappedChName ( QString  chName)

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

Parameters
[in]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 613 of file channelinfomodel.cpp.

◆ getIndexFromOrigChName()

int ChannelInfoModel::getIndexFromOrigChName ( QString  chName)

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

Parameters
[in]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 606 of file channelinfomodel.cpp.

◆ getMappedChannelsList()

const QStringList & ChannelInfoModel::getMappedChannelsList ( )

Updates the layout map

Returns
the current mapped channel list.

Definition at line 598 of file channelinfomodel.cpp.

◆ layoutChanged()

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

Updates the layout map

Parameters
[in]layoutMapthe layout map with the 2D positions.

Definition at line 581 of file channelinfomodel.cpp.

◆ mapLayoutToChannels()

void ChannelInfoModel::mapLayoutToChannels ( )
protected

Maps the currently loaded channels to the loaded layout file

Definition at line 627 of file channelinfomodel.cpp.

◆ rowCount()

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

Reimplemented virtual functions

Definition at line 85 of file channelinfomodel.cpp.

◆ setFiffInfo()

void ChannelInfoModel::setFiffInfo ( QSharedPointer< FIFFLIB::FiffInfo > &  pFiffInfo)

Updates the fiff info

Parameters
[in]fiffInfofiff info variabel.

Definition at line 551 of file channelinfomodel.cpp.

Member Data Documentation

◆ m_aliasNames

QStringList DISPLIB::ChannelInfoModel::m_aliasNames
protected

list of given channel aliases.

Definition at line 201 of file channelinfomodel.h.

◆ m_assignedOperators

QMap<int,QSharedPointer<MNEOperator> > DISPLIB::ChannelInfoModel::m_assignedOperators
protected

Map of MNEOperator types to channels.

Definition at line 198 of file channelinfomodel.h.

◆ m_layoutMap

QMap<QString,QPointF> DISPLIB::ChannelInfoModel::m_layoutMap
protected

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

Definition at line 199 of file channelinfomodel.h.

◆ m_mappedLayoutChNames

QStringList DISPLIB::ChannelInfoModel::m_mappedLayoutChNames
protected

list of the mapped layout channel names.

Definition at line 202 of file channelinfomodel.h.

◆ m_pFiffInfo

QSharedPointer<FIFFLIB::FiffInfo> DISPLIB::ChannelInfoModel::m_pFiffInfo
protected

The fiff info of the currently loaded fiff file.

Definition at line 196 of file channelinfomodel.h.


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