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 89 of file frequencyspectrummodel.h.
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 57 of file frequencyspectrummodel.cpp.
void FrequencySpectrumModel::addData |
( |
const MatrixXd & |
data | ) |
|
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 83 of file frequencyspectrummodel.cpp.
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 91 of file frequencyspectrummodel.cpp.
RowVectorXd XDISPLIB::FrequencySpectrumModel::getFreqScale |
( |
| ) |
const |
|
inline |
Returns the frequency scale of the x axis
- Returns
- the frequency scale of the x axis
Definition at line 315 of file frequencyspectrummodel.h.
RowVectorXd XDISPLIB::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 323 of file frequencyspectrummodel.h.
const QMap< qint32, qint32 > & XDISPLIB::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 339 of file frequencyspectrummodel.h.
qint32 XDISPLIB::FrequencySpectrumModel::getLowerFrqBound |
( |
| ) |
const |
|
inline |
qint32 XDISPLIB::FrequencySpectrumModel::getNumStems |
( |
| ) |
const |
|
inline |
qint32 XDISPLIB::FrequencySpectrumModel::getUpperFrqBound |
( |
| ) |
const |
|
inline |
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 153 of file frequencyspectrummodel.cpp.
bool XDISPLIB::FrequencySpectrumModel::isFreezed |
( |
| ) |
const |
|
inline |
void XDISPLIB::FrequencySpectrumModel::newSelection |
( |
QList< qint32 > |
selection | ) |
|
|
signal |
Emmited when new selcetion was made
- Parameters
-
[in] | selection | list of all selected channels |
void FrequencySpectrumModel::resetSelection |
( |
| ) |
|
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 72 of file frequencyspectrummodel.cpp.
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 247 of file frequencyspectrummodel.cpp.
void FrequencySpectrumModel::setBoundaries |
( |
float |
fLowerFrqBound, |
|
|
float |
fUpperFrqBound |
|
) |
| |
Set plotting boundaries
- Parameters
-
[in] | fLowerFrqBound | Lower frequency boudnary |
[in] | fUpperFrqBound | Upper frequency boudnary |
Definition at line 303 of file frequencyspectrummodel.cpp.
Sets corresponding fiff info
- Parameters
-
[in] | inf | The corresponding fiff information object |
Definition at line 186 of file frequencyspectrummodel.cpp.
void FrequencySpectrumModel::setScaleType |
( |
qint8 |
ScaleType | ) |
|
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 286 of file frequencyspectrummodel.cpp.
The documentation for this class was generated from the following files: