MNE-CPP  0.1.9
A Framework for Electrophysiology
Public Types | Signals | Public Member Functions | List of all members
DISPLIB::FrequencySpectrumModel Class Reference

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

#include <frequencyspectrummodel.h>

Public Types

typedef QSharedPointer< FrequencySpectrumModelSPtr
 
typedef QSharedPointer< const FrequencySpectrumModelConstSPtr
 

Signals

void newSelection (QList< qint32 > selection)
 

Public Member Functions

 FrequencySpectrumModel (QObject *parent=0)
 
virtual int rowCount (const QModelIndex &parent=QModelIndex()) const
 
virtual int columnCount (const QModelIndex &parent=QModelIndex()) 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 setInfo (QSharedPointer< FIFFLIB::FiffInfo > &info)
 
void setScaleType (qint8 ScaleType)
 
void addData (const Eigen::MatrixXd &data)
 
QSharedPointer< FIFFLIB::FiffInfogetInfo () const
 
Eigen::RowVectorXd getFreqScale () const
 
Eigen::RowVectorXd getFreqScaleBound () const
 
qint32 getNumStems () const
 
const QMap< qint32, qint32 > & getIdxSelMap () const
 
void selectRows (const QList< qint32 > &selection)
 
void resetSelection ()
 
void toggleFreeze (const QModelIndex &index)
 
bool isFreezed () const
 
void setBoundaries (float fLowerFrqBound, float fUpperFrqBound)
 
qint32 getLowerFrqBound () const
 
qint32 getUpperFrqBound () const
 

Detailed Description

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

DECLARE CLASS FrequencySpectrumModel

Definition at line 85 of file frequencyspectrummodel.h.

Inheritance diagram for DISPLIB::FrequencySpectrumModel:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

Const shared pointer type for FrequencySpectrumModel.

Definition at line 91 of file frequencyspectrummodel.h.

◆ SPtr

Shared pointer type for FrequencySpectrumModel.

Definition at line 90 of file frequencyspectrummodel.h.

Constructor & Destructor Documentation

◆ FrequencySpectrumModel()

FrequencySpectrumModel::FrequencySpectrumModel ( 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 64 of file frequencyspectrummodel.cpp.

Member Function Documentation

◆ addData()

void FrequencySpectrumModel::addData ( const Eigen::MatrixXd &  data)

Adds the frequency estimation

Parameters
[in]datathe frequency estimation.

Definition at line 205 of file frequencyspectrummodel.cpp.

◆ columnCount()

int FrequencySpectrumModel::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 88 of file frequencyspectrummodel.cpp.

◆ data()

QVariant FrequencySpectrumModel::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 95 of file frequencyspectrummodel.cpp.

◆ getFreqScale()

Eigen::RowVectorXd DISPLIB::FrequencySpectrumModel::getFreqScale ( ) const
inline

Returns the frequency scale of the x axis

Returns
the frequency scale of the x axis.

Definition at line 304 of file frequencyspectrummodel.h.

◆ getFreqScaleBound()

Eigen::RowVectorXd DISPLIB::FrequencySpectrumModel::getFreqScaleBound ( ) const
inline

Returns the frequency scale scaled to boundaries of the x axis

Returns
the frequency scale of the x axis.

Definition at line 311 of file frequencyspectrummodel.h.

◆ getIdxSelMap()

const QMap< qint32, qint32 > & DISPLIB::FrequencySpectrumModel::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 325 of file frequencyspectrummodel.h.

◆ getInfo()

QSharedPointer< FIFFLIB::FiffInfo > DISPLIB::FrequencySpectrumModel::getInfo ( ) const
inline

Returns the fiff info

Returns
the fiff info.

Definition at line 297 of file frequencyspectrummodel.h.

◆ getLowerFrqBound()

qint32 DISPLIB::FrequencySpectrumModel::getLowerFrqBound ( ) const
inline

Returns the lower frequency boundary

Returns
the lower frequency boundary.

Definition at line 339 of file frequencyspectrummodel.h.

◆ getNumStems()

qint32 DISPLIB::FrequencySpectrumModel::getNumStems ( ) const
inline

Returns the number of stems

Returns
the number of stems.

Definition at line 318 of file frequencyspectrummodel.h.

◆ getUpperFrqBound()

qint32 DISPLIB::FrequencySpectrumModel::getUpperFrqBound ( ) const
inline

Returns the upper frequency boundary

Returns
the upper frequency boundary.

Definition at line 346 of file frequencyspectrummodel.h.

◆ headerData()

QVariant FrequencySpectrumModel::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 155 of file frequencyspectrummodel.cpp.

◆ isFreezed()

bool DISPLIB::FrequencySpectrumModel::isFreezed ( ) const
inline

Returns current freezing status

Returns
the current freezing status.

Definition at line 332 of file frequencyspectrummodel.h.

◆ newSelection

void DISPLIB::FrequencySpectrumModel::newSelection ( QList< qint32 >  selection)
signal

Emmited when new selcetion was made

Parameters
[in]selectionlist of all selected channels.

◆ resetSelection()

void FrequencySpectrumModel::resetSelection ( )

Resets the current selection (selects all channels)

Definition at line 268 of file frequencyspectrummodel.cpp.

◆ rowCount()

int FrequencySpectrumModel::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 78 of file frequencyspectrummodel.cpp.

◆ selectRows()

void FrequencySpectrumModel::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 245 of file frequencyspectrummodel.cpp.

◆ setBoundaries()

void FrequencySpectrumModel::setBoundaries ( float  fLowerFrqBound,
float  fUpperFrqBound 
)

Set plotting boundaries

Parameters
[in]fLowerFrqBoundLower frequency boudnary.
[in]fUpperFrqBoundUpper frequency boudnary.

Definition at line 300 of file frequencyspectrummodel.cpp.

◆ setInfo()

void FrequencySpectrumModel::setInfo ( QSharedPointer< FIFFLIB::FiffInfo > &  info)

Sets corresponding fiff info

Parameters
[in]infThe corresponding fiff information object.

Definition at line 187 of file frequencyspectrummodel.cpp.

◆ setScaleType()

void FrequencySpectrumModel::setScaleType ( qint8  ScaleType)

Sets Scale type

Parameters
[in]ScaleTypeThe corresponding scale type.

Definition at line 198 of file frequencyspectrummodel.cpp.

◆ toggleFreeze()

void FrequencySpectrumModel::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 282 of file frequencyspectrummodel.cpp.


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