MNE-CPP
0.1.9
A Framework for Electrophysiology
|
The EvokedSetModel class implements the data access model for evoked set data. More...
#include <evokedsetmodel.h>
Public Types | |
typedef QSharedPointer< EvokedSetModel > | SPtr |
typedef QSharedPointer< const EvokedSetModel > | ConstSPtr |
Signals | |
void | newSelection (QList< qint32 > selection) |
void | newAverageColorMap (const QSharedPointer< QMap< QString, QColor > > qMapAverageColor) |
void | newAverageActivationMap (const QSharedPointer< QMap< QString, bool > > qMapAverageActivation) |
Public Member Functions | |
EvokedSetModel (QObject *parent=0) | |
bool | isInit () const |
qint32 | getNumSamples () const |
virtual int | rowCount (const QModelIndex &parent=QModelIndex()) const |
virtual int | columnCount (const QModelIndex &parent=QModelIndex()) const |
QVariant | data (int row, int column, int role=Qt::DisplayRole) 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 |
void | init () |
void | setEvokedSet (QSharedPointer< FIFFLIB::FiffEvokedSet > pEvokedSet) |
QSharedPointer< FIFFLIB::FiffEvokedSet > | getEvokedSet () |
void | updateData () |
QSharedPointer< QMap< QString, QColor > > | getAverageColor () const |
QSharedPointer< QMap< QString, bool > > | getAverageActivation () const |
void | setAverageColor (const QSharedPointer< QMap< QString, QColor > > qMapAverageColor) |
void | setAverageActivation (const QSharedPointer< QMap< QString, bool > > qMapAverageActivation) |
FIFFLIB::fiff_int_t | getKind (qint32 row) const |
bool | getIsChannelBad (qint32 row) const |
FIFFLIB::fiff_int_t | getUnit (qint32 row) const |
FIFFLIB::fiff_int_t | getCoil (qint32 row) const |
const QMap< qint32, qint32 > & | getIdxSelMap () const |
int | getNumberOfTimeSpacers () const |
QPair< QVariant, QVariant > | getBaselineInfo () const |
int | getNumAverages () const |
qint32 | getNumPreStimSamples () const |
float | getSamplingFrequency () const |
void | selectRows (const QList< qint32 > &selection) |
void | resetSelection () |
qint32 | numVLines () const |
bool | isFreezed () const |
void | updateProjection (const QList< FIFFLIB::FiffProj > &projs) |
void | updateCompensator (int to) |
void | toggleFreeze () |
The EvokedSetModel class implements the data access model for evoked set data.
DECLARE CLASS EvokedSetModel
Definition at line 101 of file evokedsetmodel.h.
typedef QSharedPointer<const EvokedSetModel> DISPLIB::EvokedSetModel::ConstSPtr |
Const shared pointer type for EvokedSetModel.
Definition at line 107 of file evokedsetmodel.h.
typedef QSharedPointer<EvokedSetModel> DISPLIB::EvokedSetModel::SPtr |
Shared pointer type for EvokedSetModel.
Definition at line 106 of file evokedsetmodel.h.
EvokedSetModel::EvokedSetModel | ( | QObject * | parent = 0 | ) |
Constructs an real-time multi sample array table model for the given parent.
[in] | parent | parent of the table model. |
Definition at line 70 of file evokedsetmodel.cpp.
|
virtual |
Returns the number of columns for the children of the given parent.
[in] | parent | not used. |
Definition at line 103 of file evokedsetmodel.cpp.
|
virtual |
Returns the data stored under the given role for the item referred to by the index.
[in] | index | determines item location. |
[in] | role | role to return. |
Definition at line 110 of file evokedsetmodel.cpp.
QVariant EvokedSetModel::data | ( | int | row, |
int | column, | ||
int | role = Qt::DisplayRole |
||
) | const |
Data for the row and column and given display role
[in] | row | index row. |
[in] | column | index column. |
[in] | role | display role to access. |
Definition at line 506 of file evokedsetmodel.cpp.
QSharedPointer< QMap< QString, bool > > EvokedSetModel::getAverageActivation | ( | ) | const |
Get the current average activations
Definition at line 415 of file evokedsetmodel.cpp.
QSharedPointer< QMap< QString, QColor > > EvokedSetModel::getAverageColor | ( | ) | const |
Get the current average colors
Definition at line 408 of file evokedsetmodel.cpp.
QPair< QVariant, QVariant > EvokedSetModel::getBaselineInfo | ( | ) | const |
Returns the current baseline information
Definition at line 587 of file evokedsetmodel.cpp.
fiff_int_t EvokedSetModel::getCoil | ( | qint32 | row | ) | const |
Returns the coil type of a given channel number
[in] | row | row number which correspodns to a given channel. |
Definition at line 474 of file evokedsetmodel.cpp.
const QMap< qint32, qint32 > & EvokedSetModel::getIdxSelMap | ( | ) | const |
Returns a map which conatins the channel idx and its corresponding selection status
Definition at line 513 of file evokedsetmodel.cpp.
bool EvokedSetModel::getIsChannelBad | ( | qint32 | row | ) | const |
Returns true or fals whether the provided channel is bad.
[in] | row | row number which correspodns to a given channel. |
Definition at line 448 of file evokedsetmodel.cpp.
fiff_int_t EvokedSetModel::getKind | ( | qint32 | row | ) | const |
Returns the kind of a given channel number
[in] | row | row number which correspodns to a given channel. |
Definition at line 436 of file evokedsetmodel.cpp.
int EvokedSetModel::getNumAverages | ( | ) | const |
Returns the current number of stored averages
Definition at line 595 of file evokedsetmodel.cpp.
int EvokedSetModel::getNumberOfTimeSpacers | ( | ) | const |
Returns the current number for the time spacers
Definition at line 573 of file evokedsetmodel.cpp.
qint32 EvokedSetModel::getNumPreStimSamples | ( | ) | const |
Returns the number of pre-stimulus samples
Definition at line 533 of file evokedsetmodel.cpp.
qint32 EvokedSetModel::getNumSamples | ( | ) | const |
Returns the number of samples.
Definition at line 493 of file evokedsetmodel.cpp.
float EvokedSetModel::getSamplingFrequency | ( | ) | const |
Returns the current sampling frequency
Definition at line 559 of file evokedsetmodel.cpp.
fiff_int_t EvokedSetModel::getUnit | ( | qint32 | row | ) | const |
Returns the unit of a given channel number
[in] | row | row number which correspodns to a given channel. |
Definition at line 462 of file evokedsetmodel.cpp.
|
virtual |
Returns the data for the given role and section in the header with the specified orientation.
[in] | section | For horizontal headers, the section number corresponds to the column number. Similarly, for vertical headers, the section number corresponds to the row number. |
[in] | orientation | Qt::Horizontal or Qt::Vertical. |
[in] | role | role to show. |
Definition at line 214 of file evokedsetmodel.cpp.
bool EvokedSetModel::isFreezed | ( | ) | const |
Returns current freezing status
Definition at line 566 of file evokedsetmodel.cpp.
bool EvokedSetModel::isInit | ( | ) | const |
Returns whether this class is initalized.
Definition at line 486 of file evokedsetmodel.cpp.
|
signal |
Emmited when new average activation is available
[in] | qMapAverageActivation | the average activation map. |
|
signal |
Emmited when new average color is available
[in] | qMapAverageColor | the average color map. |
|
signal |
Emmited when new selcetion was made
[in] | selection | list of all selected channels. |
qint32 EvokedSetModel::numVLines | ( | ) | const |
Returns the number of vertical lines (one per second)
Definition at line 520 of file evokedsetmodel.cpp.
void EvokedSetModel::resetSelection | ( | ) |
Resets the current selection (selects all channels)
Definition at line 627 of file evokedsetmodel.cpp.
|
virtual |
Returns the number of rows under the given parent. When the parent is valid it means that rowCount is returning the number of children of parent.
[in] | parent | not used. |
Definition at line 92 of file evokedsetmodel.cpp.
void EvokedSetModel::selectRows | ( | const QList< qint32 > & | selection | ) |
Selects the given list of channel indeces and unselect all other channels
[in] | selection | channel index list to select. |
Definition at line 602 of file evokedsetmodel.cpp.
void EvokedSetModel::setAverageActivation | ( | const QSharedPointer< QMap< QString, bool > > | qMapAverageActivation | ) |
Set the average activations
[in] | qMapAverageActivation | Pointer to the new average activations. |
Definition at line 429 of file evokedsetmodel.cpp.
void EvokedSetModel::setAverageColor | ( | const QSharedPointer< QMap< QString, QColor > > | qMapAverageColor | ) |
Set the average colors
[in] | qMapAverageColor | Pointer to the new average colors. |
Definition at line 422 of file evokedsetmodel.cpp.
void EvokedSetModel::setEvokedSet | ( | QSharedPointer< FIFFLIB::FiffEvokedSet > | pEvokedSet | ) |
Sets corresponding evoked set
[in] | pEvokedSet | The evoked set. |
Definition at line 247 of file evokedsetmodel.cpp.
void EvokedSetModel::toggleFreeze | ( | ) |
Toggle freeze for all channels when a channel is double clicked
Definition at line 774 of file evokedsetmodel.cpp.
void EvokedSetModel::updateCompensator | ( | int | to | ) |
Update the compensator
[in] | to | Compensator to use in fiff constant format FiffCtfComp.kind (NOT FiffCtfComp.ctfkind). |
Definition at line 715 of file evokedsetmodel.cpp.
void EvokedSetModel::updateData | ( | ) |
Update stored data
Definition at line 308 of file evokedsetmodel.cpp.
void EvokedSetModel::updateProjection | ( | const QList< FIFFLIB::FiffProj > & | projs | ) |
Update projections
Definition at line 646 of file evokedsetmodel.cpp.