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

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

#include <frequencyspectrummodel.h>

Inheritance diagram for XDISPLIB::FrequencySpectrumModel:

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 (FiffInfo::SPtr &info)
 
void setScaleType (qint8 ScaleType)
 
void addData (const MatrixXd &data)
 
FiffInfo::SPtr getInfo () const
 
RowVectorXd getFreqScale () const
 
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 89 of file frequencyspectrummodel.h.

Constructor & Destructor Documentation

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 57 of file frequencyspectrummodel.cpp.

Member Function Documentation

void FrequencySpectrumModel::addData ( const MatrixXd &  data)

Adds the frequency estimation

Parameters
[in]datathe frequency estimation

Definition at line 205 of file frequencyspectrummodel.cpp.

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 83 of file frequencyspectrummodel.cpp.

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 91 of file frequencyspectrummodel.cpp.

RowVectorXd XDISPLIB::FrequencySpectrumModel::getFreqScale ( ) const
inline

Returns the frequency scale of the x axis

Returns
the frequency scale of the x axis

Definition at line 315 of file frequencyspectrummodel.h.

RowVectorXd XDISPLIB::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 323 of file frequencyspectrummodel.h.

const QMap< qint32, qint32 > & XDISPLIB::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 339 of file frequencyspectrummodel.h.

FiffInfo::SPtr XDISPLIB::FrequencySpectrumModel::getInfo ( ) const
inline

Returns the fiff info

Returns
the fiff info

Definition at line 307 of file frequencyspectrummodel.h.

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

Returns the lower frequency boundary

Returns
the lower frequency boundary

Definition at line 355 of file frequencyspectrummodel.h.

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

Returns the number of stems

Returns
the number of stems

Definition at line 331 of file frequencyspectrummodel.h.

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

Returns the upper frequency boundary

Returns
the upper frequency boundary

Definition at line 363 of file frequencyspectrummodel.h.

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 153 of file frequencyspectrummodel.cpp.

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

Returns current freezing status

Returns
the current freezing status

Definition at line 347 of file frequencyspectrummodel.h.

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

Emmited when new selcetion was made

Parameters
[in]selectionlist of all selected channels
void FrequencySpectrumModel::resetSelection ( )

Resets the current selection (selects all channels)

Definition at line 271 of file frequencyspectrummodel.cpp.

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 72 of file frequencyspectrummodel.cpp.

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 247 of file frequencyspectrummodel.cpp.

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

Set plotting boundaries

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

Definition at line 303 of file frequencyspectrummodel.cpp.

void FrequencySpectrumModel::setInfo ( FiffInfo::SPtr info)

Sets corresponding fiff info

Parameters
[in]infThe corresponding fiff information object

Definition at line 186 of file frequencyspectrummodel.cpp.

void FrequencySpectrumModel::setScaleType ( qint8  ScaleType)

Sets Scale type

Parameters
[in]ScaleTypeThe corresponding scale type

Definition at line 198 of file frequencyspectrummodel.cpp.

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 286 of file frequencyspectrummodel.cpp.


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