The RealTimeMultiSampleArrayModel class implements the data access model for a real-time multi sample array data stream.
More...
#include <realtimemultisamplearraymodel.h>
The RealTimeMultiSampleArrayModel class implements the data access model for a real-time multi sample array data stream.
DECLARE CLASS RealTimeMultiSampleArrayModel
Definition at line 81 of file realtimemultisamplearraymodel.h.
RealTimeMultiSampleArrayModel::RealTimeMultiSampleArrayModel |
( |
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 13 of file realtimemultisamplearraymodel.cpp.
void RealTimeMultiSampleArrayModel::addData |
( |
const QVector< VectorXd > & |
data | ) |
|
Adds multiple time points (QVector) for a channel set (VectorXd)
- Parameters
-
[in] | data | data to add (Time points of channel samples) |
Definition at line 191 of file realtimemultisamplearraymodel.cpp.
int RealTimeMultiSampleArrayModel::columnCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
virtual |
QVariant RealTimeMultiSampleArrayModel::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 46 of file realtimemultisamplearraymodel.cpp.
fiff_int_t RealTimeMultiSampleArrayModel::getCoil |
( |
qint32 |
row | ) |
const |
Returns the coil type of a given channel number
- Parameters
-
[in] | row | row number which correspodns to a given channel |
- Returns
- coil type of given channel number
Definition at line 247 of file realtimemultisamplearraymodel.cpp.
const QMap< qint32, qint32 > & RealTimeMultiSampleArrayModel::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 291 of file realtimemultisamplearraymodel.h.
fiff_int_t RealTimeMultiSampleArrayModel::getKind |
( |
qint32 |
row | ) |
const |
Returns the kind of a given channel number
- Parameters
-
[in] | row | row number which correspodns to a given channel |
- Returns
- kind of given channel number
Definition at line 218 of file realtimemultisamplearraymodel.cpp.
qint32 RealTimeMultiSampleArrayModel::getMaxSamples |
( |
| ) |
const |
|
inline |
Returns the maximal number of samples of the downsampled data to display
- Returns
- the maximal number of samples
Definition at line 283 of file realtimemultisamplearraymodel.h.
fiff_int_t RealTimeMultiSampleArrayModel::getUnit |
( |
qint32 |
row | ) |
const |
Returns the unit of a given channel number
- Parameters
-
[in] | row | row number which correspodns to a given channel |
- Returns
- unit of given channel number
Definition at line 233 of file realtimemultisamplearraymodel.cpp.
QVariant RealTimeMultiSampleArrayModel::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 126 of file realtimemultisamplearraymodel.cpp.
bool RealTimeMultiSampleArrayModel::isFreezed |
( |
| ) |
const |
|
inline |
void RealTimeMultiSampleArrayModel::newSelection |
( |
QList< qint32 > |
selection | ) |
|
|
signal |
Emmited when new selcetion was made
- Parameters
-
[in] | selection | list of all selected channels |
qint32 RealTimeMultiSampleArrayModel::numVLines |
( |
| ) |
const |
|
inline |
void RealTimeMultiSampleArrayModel::resetSelection |
( |
| ) |
|
int RealTimeMultiSampleArrayModel::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 27 of file realtimemultisamplearraymodel.cpp.
void RealTimeMultiSampleArrayModel::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 261 of file realtimemultisamplearraymodel.cpp.
void RealTimeMultiSampleArrayModel::setSamplingInfo |
( |
float |
sps, |
|
|
int |
T, |
|
|
float |
dest_sps = 128.0f |
|
) |
| |
Sets the sampling information and calculates the resulting downsampling factor between actual sps and desired sps
- Parameters
-
[in] | sps | Samples per second of incomming data |
[in] | T | Time window length to display |
[in] | dest_sps | Desired samples per second -> resulting downsampling is calculated out of this. |
Definition at line 171 of file realtimemultisamplearraymodel.cpp.
void RealTimeMultiSampleArrayModel::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 300 of file realtimemultisamplearraymodel.cpp.
The documentation for this class was generated from the following files: