MNE-CPP  beta 1.0
Signals | Public Member Functions | List of all members
XDISPLIB::RealTimeEvokedModel Class Reference

The RealTimeEvokedModel class implements the data access model for a real-time multi sample array data stream. More...

#include <realtimeevokedmodel.h>

Inheritance diagram for XDISPLIB::RealTimeEvokedModel:

Signals

void newSelection (QList< qint32 > selection)
 

Public Member Functions

 RealTimeEvokedModel (QObject *parent=0)
 
bool isInit () const
 
qint32 getNumSamples () const
 
virtual int rowCount (const QModelIndex &parent=QModelIndex()) const
 
virtual int columnCount (const QModelIndex &parent=QModelIndex()) const
 
QVariant data (int row, int column, int role=Qt::DisplayRole) const
 
virtual QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 
virtual QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
 
void setRTE (QSharedPointer< RealTimeEvoked > &pRTE)
 
void updateData ()
 
QColor getColor (qint32 row) const
 
fiff_int_t getKind (qint32 row) const
 
fiff_int_t getUnit (qint32 row) const
 
fiff_int_t getCoil (qint32 row) const
 
const QMap< qint32, qint32 > & getIdxSelMap () const
 
qint32 getNumPreStimSamples () const
 
void selectRows (const QList< qint32 > &selection)
 
void resetSelection ()
 
qint32 numVLines () const
 
void toggleFreeze (const QModelIndex &index)
 
bool isFreezed () const
 

Detailed Description

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.

Constructor & Destructor Documentation

RealTimeEvokedModel::RealTimeEvokedModel ( QObject *  parent = 0)

Constructs an real-time multi sample array table model for the given parent.

Parameters
[in]parentparent of the table model

Definition at line 56 of file realtimeevokedmodel.cpp.

Member Function Documentation

int RealTimeEvokedModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const
virtual

Returns the number of columns for the children of the given parent.

Parameters
[in]parentnot used
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]rowindex row
[in]columnindex column
[in]roledisplay 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]indexdetermines item location
[in]rolerole 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]rowrow 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]rowrow 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]rowrow 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]rowrow 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]sectionFor horizontal headers, the section number corresponds to the column number. Similarly, for vertical headers, the section number corresponds to the row number.
[in]orientationQt::Horizontal or Qt::Vertical
[in]rolerole 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]selectionlist 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 ( )

Resets the current selection (selects all channels)

Definition at line 290 of file realtimeevokedmodel.cpp.

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
[in]parentnot used
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]selectionchannel 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]pRTEThe 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]indexof the channel which has been double clicked

Definition at line 305 of file realtimeevokedmodel.cpp.

void RealTimeEvokedModel::updateData ( )

Update stored data

Definition at line 195 of file realtimeevokedmodel.cpp.


The documentation for this class was generated from the following files: