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 92 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 58 of file realtimemultisamplearraymodel.cpp.
void RealTimeMultiSampleArrayModel::addData |
( |
const QList< MatrixXd > & |
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 266 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 92 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 384 of file realtimemultisamplearraymodel.cpp.
const QMap< qint32, qint32 > & XDISPLIB::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 339 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 355 of file realtimemultisamplearraymodel.cpp.
qint32 XDISPLIB::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 331 of file realtimemultisamplearraymodel.h.
const QMap< qint32, float > & XDISPLIB::RealTimeMultiSampleArrayModel::getScaling |
( |
| ) |
const |
|
inline |
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 370 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 172 of file realtimemultisamplearraymodel.cpp.
bool XDISPLIB::RealTimeMultiSampleArrayModel::isFreezed |
( |
| ) |
const |
|
inline |
void XDISPLIB::RealTimeMultiSampleArrayModel::newSelection |
( |
QList< qint32 > |
selection | ) |
|
|
signal |
Emmited when new selcetion was made
- Parameters
-
[in] | selection | list of all selected channels |
qint32 XDISPLIB::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 73 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 398 of file realtimemultisamplearraymodel.cpp.
ToDo: Obsolete Sets corresponding channel information
- Parameters
-
[in] | chInfo | The corresponding channel information list |
Definition at line 205 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 246 of file realtimemultisamplearraymodel.cpp.
void RealTimeMultiSampleArrayModel::setScaling |
( |
const QMap< qint32, float > & |
p_qMapChScaling | ) |
|
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 437 of file realtimemultisamplearraymodel.cpp.
void RealTimeMultiSampleArrayModel::updateProjection |
( |
| ) |
|
The documentation for this class was generated from the following files: