The SensorModel class implements a table model which holds the sensor model properties.
More...
#include <sensormodel.h>
The SensorModel class implements a table model which holds the sensor model properties.
DECLARE CLASS SensorModel
Definition at line 28 of file sensormodel.h.
SensorModel::SensorModel |
( |
QObject * |
parent = 0 | ) |
|
SensorModel::SensorModel |
( |
QIODevice * |
device, |
|
|
QObject * |
parent = 0 |
|
) |
| |
void SensorModel::applySensorGroup |
( |
int |
id | ) |
|
Apply a sensor selection group
- Parameters
-
[in] | id | id of the sensor group to apply |
Definition at line 198 of file sensormodel.cpp.
int SensorModel::columnCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
virtual |
Number of columns for the given model index parent
- Parameters
-
[in] | parent | the parent of the model index |
- Returns
- the number of columns
Definition at line 99 of file sensormodel.cpp.
QVariant SensorModel::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 217 of file sensormodel.h.
QVariant SensorModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
virtual |
Data for the given index and given display role
- Parameters
-
[in] | index | index row |
[in] | role | display role to access |
- Returns
- the accessed data
Definition at line 108 of file sensormodel.cpp.
qint32 SensorModel::getCurrentLayout |
( |
| ) |
const |
|
inline |
Index of the current layout
- Returns
- the index of the current layout
Definition at line 249 of file sensormodel.h.
const QMap< QString, qint32 > & SensorModel::getNameIdMap |
( |
| ) |
const |
|
inline |
The channel name to the overall channel number map
- Returns
- a reference to channel name to the overall channel number map
Definition at line 257 of file sensormodel.h.
qint32 SensorModel::getNumLayouts |
( |
| ) |
const |
|
inline |
The number of loaded sensor layouts
- Returns
- the number of loaded sensor layouts
Definition at line 233 of file sensormodel.h.
const QList< SensorGroup > & SensorModel::getSensorGroups |
( |
| ) |
const |
|
inline |
Get available sensor groups
- Returns
- list of available sensor groups
Definition at line 241 of file sensormodel.h.
const QList< SensorLayout > & SensorModel::getSensorLayouts |
( |
| ) |
const |
|
inline |
The loaded sensor layouts
- Returns
- the loaded sensor layouts
Definition at line 225 of file sensormodel.h.
Channel info to map layouts to
- Parameters
-
[in] | chInfoList | channel info to map layouts to |
Definition at line 227 of file sensormodel.cpp.
void SensorModel::newLayout |
( |
| ) |
|
|
signal |
Signal emitted when new layout is selected
void SensorModel::newSelection |
( |
QList< qint32 > |
selection | ) |
|
|
signal |
Signal emitted when selection changed
- Parameters
-
[in] | selection | list of channels which should be selected |
int SensorModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
virtual |
Number of rows for the given model index parent
- Parameters
-
[in] | parent | the parent of the model index |
- Returns
- the number of rows
Definition at line 87 of file sensormodel.cpp.
void SensorModel::setCurrentLayout |
( |
int |
id | ) |
|
Set the current layout to display
- Parameters
-
[in] | id | id of the sensor layout to display |
Definition at line 209 of file sensormodel.cpp.
void SensorModel::silentUpdateSelection |
( |
const QList< qint32 > & |
selection | ) |
|
Change selction without emitting newSelection signal
- Parameters
-
[in] | selection | list of channels which should be selected |
Definition at line 250 of file sensormodel.cpp.
void SensorModel::updateChannelState |
( |
SensorItem * |
item | ) |
|
Update channel selection state of item
- Parameters
-
[in] | item | sensor item which changed selection state |
Definition at line 241 of file sensormodel.cpp.
The documentation for this class was generated from the following files:
- D:/GitHub/mne-cpp/applications/mne_x_libs/xDisp/helpers/sensormodel.h
- D:/GitHub/mne-cpp/applications/mne_x_libs/xDisp/helpers/sensormodel.cpp