ChannelInfoModel
Namespace: DISPLIB · Library: Display Library
#include <disp/channelinfomodel.h>
class DISPLIB::ChannelInfoModel
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.
Inheritance
Public Methods
ChannelInfoModel(pFiffInfo, parent)
ChannelInfoModel(parent)
rowCount(parent)
Reimplemented virtual functions.
Parameters:
- parent : const QModelIndex & Parent index (unused; the model is a flat list).
Returns:
- int — Number of channels in the attached measurement info.
columnCount(parent)
headerData(section, orientation, role)
data(index, role)
setData(index, value, role)
flags(index)
insertRows(position, span, parent)
removeRows(position, span, parent)
setFiffInfo(pFiffInfo)
Updates the fiff info.
Parameters:
- pFiffInfo : QSharedPointer<FiffInfo> & fiff info variabel.
assignedOperatorsChanged(assignedOperators)
Updates the fiff info.
Parameters:
- assignedOperators : const QMultiMap< int, QSharedPointer<MNEOperator> > & the filter operators which are currently active.
layoutChanged(layoutMap)
Updates the layout map.
Parameters:
- layoutMap : const QMap< QString, QPointF > & the layout map with the 2D positions.
getMappedChannelsList()
Updates the layout map.
Returns:
- const QStringList & — the current mapped channel list.
getIndexFromOrigChName(chName)
Returns the model index for the given input channel fro mthe original channel list.
Parameters:
- chName : QString the channel name for which the model index is needed.
Returns:
- int — the index number. if channel was not found in the data this functions returns -1.
getIndexFromMappedChName(chName)
Returns the model index for the given input channel fro mthe mapped channel list.
Parameters:
- chName : QString the channel name for which the model index is needed.
Returns:
- int — the index number. if channel was not found in the data this functions returns -1.
getBadChannelList()
Returns bad channel list.
Returns:
- QStringList — the bad channel list.
clearModel()
clearModel clears all model's members
Authors of this file
- Lorenz Esch <lorenz.esch@tu-ilmenau.de>
- Gabriel Motta <gabrielbenmotta@gmail.com>
- Juan GPC <jgarciaprieto@mgh.harvard.edu>
- Christoph Dinh <christoph.dinh@mne-cpp.org>