QAbstractTableModel exposing per-channel FIFF metadata (name, type, unit, position, bad flag, mapping). More...
#include <channelinfomodel.h>
Public Types | |
| typedef QSharedPointer< ChannelInfoModel > | SPtr |
| typedef QSharedPointer< const ChannelInfoModel > | ConstSPtr |
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 QMultiMap< 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::FiffInfo > | m_pFiffInfo |
| QMultiMap< int, QSharedPointer< MNEOperator > > | m_assignedOperators |
| QMap< QString, QPointF > | m_layoutMap |
| QStringList | m_aliasNames |
| QStringList | m_mappedLayoutChNames |
QAbstractTableModel exposing per-channel FIFF metadata (name, type, unit, position, bad flag, mapping).
Each row maps a FIFF channel to its presentation attributes and listens for live edits from the channel-selection / mapping dialogs so the underlying FiffInfo is updated in place.
Definition at line 92 of file channelinfomodel.h.

| typedef QSharedPointer<const ChannelInfoModel> DISPLIB::ChannelInfoModel::ConstSPtr |
Const shared pointer type for ChannelInfoModel.
Definition at line 98 of file channelinfomodel.h.
| typedef QSharedPointer<ChannelInfoModel> DISPLIB::ChannelInfoModel::SPtr |
Shared pointer type for ChannelInfoModel.
Definition at line 97 of file channelinfomodel.h.
| DISPLIB::ChannelInfoModel::ChannelInfoModel | ( | QSharedPointer< FIFFLIB::FiffInfo > & | pFiffInfo, |
| QObject * | parent = 0 ) |
| ChannelInfoModel::ChannelInfoModel | ( | QObject * | parent = 0 | ) |
Definition at line 58 of file channelinfomodel.cpp.
| void ChannelInfoModel::assignedOperatorsChanged | ( | const QMultiMap< int, QSharedPointer< MNEOperator > > & | assignedOperators | ) |
Updates the fiff info
| [in] | assignedOperators | the filter operators which are currently active. |
Definition at line 549 of file channelinfomodel.cpp.
|
signal |
Emit this signal whenever channels where mapped to a layout
| void ChannelInfoModel::clearModel | ( | ) |
clearModel clears all model's members
Definition at line 650 of file channelinfomodel.cpp.
|
virtual |
Definition at line 77 of file channelinfomodel.cpp.
|
virtual |
Definition at line 165 of file channelinfomodel.cpp.
|
virtual |
Definition at line 513 of file channelinfomodel.cpp.
| QStringList ChannelInfoModel::getBadChannelList | ( | ) |
Returns bad channel list.
Definition at line 601 of file channelinfomodel.cpp.
| int ChannelInfoModel::getIndexFromMappedChName | ( | QString | chName | ) |
Returns the model index for the given input channel fro mthe mapped channel list
| [in] | chName | the channel name for which the model index is needed. |
Definition at line 594 of file channelinfomodel.cpp.
| int ChannelInfoModel::getIndexFromOrigChName | ( | QString | chName | ) |
Returns the model index for the given input channel fro mthe original channel list
| [in] | chName | the channel name for which the model index is needed. |
Definition at line 587 of file channelinfomodel.cpp.
| const QStringList & ChannelInfoModel::getMappedChannelsList | ( | ) |
Updates the layout map
Definition at line 579 of file channelinfomodel.cpp.
|
virtual |
Definition at line 84 of file channelinfomodel.cpp.
|
virtual |
Definition at line 491 of file channelinfomodel.cpp.
| void ChannelInfoModel::layoutChanged | ( | const QMap< QString, QPointF > & | layoutMap | ) |
Updates the layout map
| [in] | layoutMap | the layout map with the 2D positions. |
Definition at line 562 of file channelinfomodel.cpp.
|
protected |
Maps the currently loaded channels to the loaded layout file
Definition at line 608 of file channelinfomodel.cpp.
|
virtual |
Definition at line 502 of file channelinfomodel.cpp.
|
virtual |
Reimplemented virtual functions
Definition at line 66 of file channelinfomodel.cpp.
|
virtual |
Definition at line 521 of file channelinfomodel.cpp.
| void ChannelInfoModel::setFiffInfo | ( | QSharedPointer< FIFFLIB::FiffInfo > & | pFiffInfo | ) |
Updates the fiff info
| [in] | fiffInfo | fiff info variabel. |
Definition at line 532 of file channelinfomodel.cpp.
|
protected |
list of given channel aliases.
Definition at line 193 of file channelinfomodel.h.
|
protected |
Map of MNEOperator types to channels.
Definition at line 190 of file channelinfomodel.h.
|
protected |
The current layout map with a position for all MEG and EEG channels.
Definition at line 191 of file channelinfomodel.h.
|
protected |
list of the mapped layout channel names.
Definition at line 194 of file channelinfomodel.h.
|
protected |
The fiff info of the currently loaded fiff file.
Definition at line 188 of file channelinfomodel.h.