MNE-CPP
0.1.9
A Framework for Electrophysiology
|
The FrequencySpectrumModel class implements the data access model for a real-time multi sample array data stream. More...
#include <frequencyspectrummodel.h>
Public Types | |
typedef QSharedPointer< FrequencySpectrumModel > | SPtr |
typedef QSharedPointer< const FrequencySpectrumModel > | ConstSPtr |
Signals | |
void | newSelection (QList< qint32 > selection) |
Public Member Functions | |
FrequencySpectrumModel (QObject *parent=0) | |
virtual int | rowCount (const QModelIndex &parent=QModelIndex()) const |
virtual int | columnCount (const QModelIndex &parent=QModelIndex()) 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 | setInfo (QSharedPointer< FIFFLIB::FiffInfo > &info) |
void | setScaleType (qint8 ScaleType) |
void | addData (const Eigen::MatrixXd &data) |
QSharedPointer< FIFFLIB::FiffInfo > | getInfo () const |
Eigen::RowVectorXd | getFreqScale () const |
Eigen::RowVectorXd | getFreqScaleBound () const |
qint32 | getNumStems () const |
const QMap< qint32, qint32 > & | getIdxSelMap () const |
void | selectRows (const QList< qint32 > &selection) |
void | resetSelection () |
void | toggleFreeze (const QModelIndex &index) |
bool | isFreezed () const |
void | setBoundaries (float fLowerFrqBound, float fUpperFrqBound) |
qint32 | getLowerFrqBound () const |
qint32 | getUpperFrqBound () const |
The FrequencySpectrumModel class implements the data access model for a real-time multi sample array data stream.
DECLARE CLASS FrequencySpectrumModel
Definition at line 85 of file frequencyspectrummodel.h.
typedef QSharedPointer<const FrequencySpectrumModel> DISPLIB::FrequencySpectrumModel::ConstSPtr |
Const shared pointer type for FrequencySpectrumModel.
Definition at line 91 of file frequencyspectrummodel.h.
typedef QSharedPointer<FrequencySpectrumModel> DISPLIB::FrequencySpectrumModel::SPtr |
Shared pointer type for FrequencySpectrumModel.
Definition at line 90 of file frequencyspectrummodel.h.
FrequencySpectrumModel::FrequencySpectrumModel | ( | 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 64 of file frequencyspectrummodel.cpp.
void FrequencySpectrumModel::addData | ( | const Eigen::MatrixXd & | data | ) |
Adds the frequency estimation
[in] | data | the frequency estimation. |
Definition at line 205 of file frequencyspectrummodel.cpp.
|
virtual |
Returns the number of columns for the children of the given parent.
[in] | parent | not used. |
Definition at line 88 of file frequencyspectrummodel.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 95 of file frequencyspectrummodel.cpp.
|
inline |
Returns the frequency scale of the x axis
Definition at line 304 of file frequencyspectrummodel.h.
|
inline |
Returns the frequency scale scaled to boundaries of the x axis
Definition at line 311 of file frequencyspectrummodel.h.
|
inline |
Returns a map which conatins the channel idx and its corresponding selection status
Definition at line 325 of file frequencyspectrummodel.h.
|
inline |
Returns the fiff info
Definition at line 297 of file frequencyspectrummodel.h.
|
inline |
Returns the lower frequency boundary
Definition at line 339 of file frequencyspectrummodel.h.
|
inline |
Returns the number of stems
Definition at line 318 of file frequencyspectrummodel.h.
|
inline |
Returns the upper frequency boundary
Definition at line 346 of file frequencyspectrummodel.h.
|
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 155 of file frequencyspectrummodel.cpp.
|
inline |
Returns current freezing status
Definition at line 332 of file frequencyspectrummodel.h.
|
signal |
Emmited when new selcetion was made
[in] | selection | list of all selected channels. |
void FrequencySpectrumModel::resetSelection | ( | ) |
Resets the current selection (selects all channels)
Definition at line 268 of file frequencyspectrummodel.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 78 of file frequencyspectrummodel.cpp.
void FrequencySpectrumModel::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 245 of file frequencyspectrummodel.cpp.
void FrequencySpectrumModel::setBoundaries | ( | float | fLowerFrqBound, |
float | fUpperFrqBound | ||
) |
Set plotting boundaries
[in] | fLowerFrqBound | Lower frequency boudnary. |
[in] | fUpperFrqBound | Upper frequency boudnary. |
Definition at line 300 of file frequencyspectrummodel.cpp.
void FrequencySpectrumModel::setInfo | ( | QSharedPointer< FIFFLIB::FiffInfo > & | info | ) |
Sets corresponding fiff info
[in] | inf | The corresponding fiff information object. |
Definition at line 187 of file frequencyspectrummodel.cpp.
void FrequencySpectrumModel::setScaleType | ( | qint8 | ScaleType | ) |
Sets Scale type
[in] | ScaleType | The corresponding scale type. |
Definition at line 198 of file frequencyspectrummodel.cpp.
void FrequencySpectrumModel::toggleFreeze | ( | const QModelIndex & | index | ) |
Toggle freeze for all channels when a channel is double clicked
[in] | index | of the channel which has been double clicked. |
Definition at line 282 of file frequencyspectrummodel.cpp.