The RealTimeEvokedModel class implements the data access model for a real-time multi sample array data stream.
More...
#include <realtimeevokedmodel.h>
The RealTimeEvokedModel class implements the data access model for a real-time multi sample array data stream.
DECLARE CLASS RealTimeEvokedModel
Definition at line 91 of file realtimeevokedmodel.h.
RealTimeEvokedModel::RealTimeEvokedModel |
( |
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 56 of file realtimeevokedmodel.cpp.
int RealTimeEvokedModel::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 80 of file realtimeevokedmodel.cpp.
QVariant XDISPLIB::RealTimeEvokedModel::data |
( |
int |
row, |
|
|
int |
column, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
inline |
Data for the row and column and given display role
- Parameters
-
[in] | row | index row |
[in] | column | index column |
[in] | role | display role to access |
- Returns
- the accessed data
Definition at line 319 of file realtimeevokedmodel.h.
QVariant RealTimeEvokedModel::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 88 of file realtimeevokedmodel.cpp.
fiff_int_t RealTimeEvokedModel::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 252 of file realtimeevokedmodel.cpp.
QColor RealTimeEvokedModel::getColor |
( |
qint32 |
row | ) |
const |
Returns the color of a given channel number
- Parameters
-
[in] | row | row number which correspodns to a given channel |
- Returns
- color of given channel number
Definition at line 210 of file realtimeevokedmodel.cpp.
const QMap< qint32, qint32 > & XDISPLIB::RealTimeEvokedModel::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 327 of file realtimeevokedmodel.h.
fiff_int_t RealTimeEvokedModel::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 224 of file realtimeevokedmodel.cpp.
qint32 XDISPLIB::RealTimeEvokedModel::getNumPreStimSamples |
( |
| ) |
const |
|
inline |
Returns the number of pre-stimulus samples
- Returns
- the number of pre-stimulus samples
Definition at line 343 of file realtimeevokedmodel.h.
fiff_int_t RealTimeEvokedModel::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 238 of file realtimeevokedmodel.cpp.
QVariant RealTimeEvokedModel::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 150 of file realtimeevokedmodel.cpp.
bool XDISPLIB::RealTimeEvokedModel::isFreezed |
( |
| ) |
const |
|
inline |
Returns current freezing status
- Returns
- the current freezing status
Definition at line 351 of file realtimeevokedmodel.h.
void XDISPLIB::RealTimeEvokedModel::newSelection |
( |
QList< qint32 > |
selection | ) |
|
|
signal |
Emmited when new selcetion was made
- Parameters
-
[in] | selection | list of all selected channels |
qint32 XDISPLIB::RealTimeEvokedModel::numVLines |
( |
| ) |
const |
|
inline |
Returns the number of vertical lines (one per second)
- Returns
- number of vertical lines
Definition at line 335 of file realtimeevokedmodel.h.
void RealTimeEvokedModel::resetSelection |
( |
| ) |
|
int RealTimeEvokedModel::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 69 of file realtimeevokedmodel.cpp.
void RealTimeEvokedModel::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 266 of file realtimeevokedmodel.cpp.
void RealTimeEvokedModel::setRTE |
( |
QSharedPointer< RealTimeEvoked > & |
pRTE | ) |
|
Sets corresponding real-time evoked
- Parameters
-
[in] | pRTE | The real-time evoked |
Definition at line 183 of file realtimeevokedmodel.cpp.
void RealTimeEvokedModel::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 305 of file realtimeevokedmodel.cpp.
void RealTimeEvokedModel::updateData |
( |
| ) |
|
The documentation for this class was generated from the following files: