The FrequencySpectrumModel class implements the data access model for a real-time multi sample array data stream.
More...
#include <frequencyspectrummodel.h>
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.
◆ ConstSPtr
◆ SPtr
◆ FrequencySpectrumModel()
| FrequencySpectrumModel::FrequencySpectrumModel |
( |
QObject * | parent = 0 | ) |
|
Constructs an real-time multi sample array table model for the given parent.
- Parameters
-
| [in] | parent | parent of the table model. |
Definition at line 64 of file frequencyspectrummodel.cpp.
◆ addData()
| void FrequencySpectrumModel::addData |
( |
const Eigen::MatrixXd & | data | ) |
|
◆ columnCount()
| int FrequencySpectrumModel::columnCount |
( |
const QModelIndex & | parent = QModelIndex() | ) |
const |
|
virtual |
Returns the number of columns for the children of the given parent.
- Parameters
-
- Returns
- number of columns.
Definition at line 88 of file frequencyspectrummodel.cpp.
◆ data()
| QVariant FrequencySpectrumModel::data |
( |
const QModelIndex & | index, |
|
|
int | role = Qt::DisplayRole ) const |
|
virtual |
Returns the data stored under the given role for the item referred to by the index.
- Parameters
-
| [in] | index | determines item location. |
| [in] | role | role to return. |
- Returns
- accessed data.
Definition at line 95 of file frequencyspectrummodel.cpp.
◆ getFreqScale()
| Eigen::RowVectorXd DISPLIB::FrequencySpectrumModel::getFreqScale |
( |
| ) |
const |
|
inline |
Returns the frequency scale of the x axis
- Returns
- the frequency scale of the x axis.
Definition at line 304 of file frequencyspectrummodel.h.
◆ getFreqScaleBound()
| Eigen::RowVectorXd DISPLIB::FrequencySpectrumModel::getFreqScaleBound |
( |
| ) |
const |
|
inline |
Returns the frequency scale scaled to boundaries of the x axis
- Returns
- the frequency scale of the x axis.
Definition at line 311 of file frequencyspectrummodel.h.
◆ getIdxSelMap()
| const QMap< qint32, qint32 > & DISPLIB::FrequencySpectrumModel::getIdxSelMap |
( |
| ) |
const |
|
inline |
Returns a map which conatins the channel idx and its corresponding selection status
- Returns
- the channel idx to selection status.
Definition at line 325 of file frequencyspectrummodel.h.
◆ getInfo()
| QSharedPointer< FIFFLIB::FiffInfo > DISPLIB::FrequencySpectrumModel::getInfo |
( |
| ) |
const |
|
inline |
◆ getLowerFrqBound()
| qint32 DISPLIB::FrequencySpectrumModel::getLowerFrqBound |
( |
| ) |
const |
|
inline |
◆ getNumStems()
| qint32 DISPLIB::FrequencySpectrumModel::getNumStems |
( |
| ) |
const |
|
inline |
◆ getUpperFrqBound()
| qint32 DISPLIB::FrequencySpectrumModel::getUpperFrqBound |
( |
| ) |
const |
|
inline |
◆ headerData()
| QVariant FrequencySpectrumModel::headerData |
( |
int | section, |
|
|
Qt::Orientation | orientation, |
|
|
int | role = Qt::DisplayRole ) const |
|
virtual |
Returns the data for the given role and section in the header with the specified orientation.
- Parameters
-
| [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. |
- Returns
- accessed eader data.
Definition at line 155 of file frequencyspectrummodel.cpp.
◆ isFreezed()
| bool DISPLIB::FrequencySpectrumModel::isFreezed |
( |
| ) |
const |
|
inline |
◆ newSelection
| void DISPLIB::FrequencySpectrumModel::newSelection |
( |
QList< qint32 > | selection | ) |
|
|
signal |
Emmited when new selcetion was made
- Parameters
-
| [in] | selection | list of all selected channels. |
◆ resetSelection()
| void FrequencySpectrumModel::resetSelection |
( |
| ) |
|
◆ rowCount()
| int FrequencySpectrumModel::rowCount |
( |
const QModelIndex & | parent = QModelIndex() | ) |
const |
|
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.
- Parameters
-
- Returns
- number of rows.
Definition at line 78 of file frequencyspectrummodel.cpp.
◆ selectRows()
| void FrequencySpectrumModel::selectRows |
( |
const QList< qint32 > & | selection | ) |
|
Selects the given list of channel indeces and unselect all other channels
- Parameters
-
| [in] | selection | channel index list to select. |
Definition at line 245 of file frequencyspectrummodel.cpp.
◆ setBoundaries()
| void FrequencySpectrumModel::setBoundaries |
( |
float | fLowerFrqBound, |
|
|
float | fUpperFrqBound ) |
Set plotting boundaries
- Parameters
-
| [in] | fLowerFrqBound | Lower frequency boudnary. |
| [in] | fUpperFrqBound | Upper frequency boudnary. |
Definition at line 300 of file frequencyspectrummodel.cpp.
◆ setInfo()
Sets corresponding fiff info
- Parameters
-
| [in] | inf | The corresponding fiff information object. |
Definition at line 187 of file frequencyspectrummodel.cpp.
◆ setScaleType()
| void FrequencySpectrumModel::setScaleType |
( |
qint8 | ScaleType | ) |
|
◆ toggleFreeze()
| void FrequencySpectrumModel::toggleFreeze |
( |
const QModelIndex & | index | ) |
|
Toggle freeze for all channels when a channel is double clicked
- Parameters
-
| [in] | index | of the channel which has been double clicked. |
Definition at line 282 of file frequencyspectrummodel.cpp.
The documentation for this class was generated from the following files: