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

The SpectrumView class provides a spectrum view. More...

#include <spectrumview.h>

Public Types

typedef QSharedPointer< SpectrumViewSPtr
 
typedef QSharedPointer< const SpectrumViewConstSPtr
 
- Public Types inherited from DISPLIB::AbstractView
enum  StyleMode { Default, Dark }
 
enum  GuiMode { Clinical, Research }
 
enum  ProcessingMode { RealTime, Offline }
 
typedef QSharedPointer< AbstractViewSPtr
 
typedef QSharedPointer< const AbstractViewConstSPtr
 

Signals

void sendMouseLoc (int row, int x, int y, QRect visRect)
 
- Signals inherited from DISPLIB::AbstractView
void guiStyleChanged (DISPLIB::AbstractView::StyleMode style)
 

Public Member Functions

 SpectrumView (const QString &sSettingsPath="", QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
 
 ~SpectrumView ()
 
void init (QSharedPointer< FIFFLIB::FiffInfo > &info, int iScaleType)
 
void addData (const Eigen::MatrixXd &data)
 
void setBoundaries (int iLower, int iUpper)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
void saveSettings ()
 
void loadSettings ()
 
void clearView ()
 
- Public Member Functions inherited from DISPLIB::AbstractView
 AbstractView (QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
 
virtual void setGuiMode (GuiMode mode)
 
virtual void setProcessingMode (ProcessingMode mode)
 

Protected Member Functions

void updateGuiMode (GuiMode mode)
 
void updateProcessingMode (ProcessingMode mode)
 

Protected Attributes

QPointer< QTableView > m_pTableView
 
QPointer< DISPLIB::FrequencySpectrumDelegatem_pFSDelegate
 
QPointer< DISPLIB::FrequencySpectrumModelm_pFSModel
 
- Protected Attributes inherited from DISPLIB::AbstractView
bool m_bResearchModeIsActive
 
bool m_bOfflineModeIsActive
 
QString m_sSettingsPath
 

Detailed Description

The SpectrumView class provides a spectrum view.

DECLARE CLASS SpectrumView

Definition at line 87 of file spectrumview.h.

Inheritance diagram for DISPLIB::SpectrumView:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

typedef QSharedPointer<const SpectrumView> DISPLIB::SpectrumView::ConstSPtr

Const shared pointer type for SpectrumView.

Definition at line 93 of file spectrumview.h.

◆ SPtr

typedef QSharedPointer<SpectrumView> DISPLIB::SpectrumView::SPtr

Shared pointer type for SpectrumView.

Definition at line 92 of file spectrumview.h.

Constructor & Destructor Documentation

◆ SpectrumView()

SpectrumView::SpectrumView ( const QString &  sSettingsPath = "",
QWidget *  parent = 0,
Qt::WindowFlags  f = Qt::Widget 
)

Constructs a SpectrumView which is a child of parent.

Parameters
[in]parentparent of widget.

Definition at line 69 of file spectrumview.cpp.

◆ ~SpectrumView()

SpectrumView::~SpectrumView ( )

Destroys the ArtifactSettingsView.

Definition at line 93 of file spectrumview.cpp.

Member Function Documentation

◆ addData()

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

Adds data to the underlying model.

Parameters
[in]dataThe new data.

Definition at line 144 of file spectrumview.cpp.

◆ clearView()

void SpectrumView::clearView ( )
virtual

Clears the view

Implements DISPLIB::AbstractView.

Definition at line 229 of file spectrumview.cpp.

◆ eventFilter()

bool SpectrumView::eventFilter ( QObject *  watched,
QEvent *  event 
)
virtual

The event filter

Parameters
[in]watched.
[in]event.

Definition at line 159 of file spectrumview.cpp.

◆ init()

void SpectrumView::init ( QSharedPointer< FIFFLIB::FiffInfo > &  info,
int  iScaleType 
)

Initializes the view based on the FiffInfo and scale type.

Parameters
[in]infoThe FiffInfo.
[in]iScaleTypeThe scale type.

Definition at line 100 of file spectrumview.cpp.

◆ loadSettings()

void SpectrumView::loadSettings ( )
virtual

Loads and inits all important settings of this view via QSettings.

Implements DISPLIB::AbstractView.

Definition at line 193 of file spectrumview.cpp.

◆ saveSettings()

void SpectrumView::saveSettings ( )
virtual

Saves all important settings of this view via QSettings.

Implements DISPLIB::AbstractView.

Definition at line 181 of file spectrumview.cpp.

◆ sendMouseLoc

void DISPLIB::SpectrumView::sendMouseLoc ( int  row,
int  x,
int  y,
QRect  visRect 
)
signal

Signals for sending the mouse location to the delegate

◆ setBoundaries()

void SpectrumView::setBoundaries ( int  iLower,
int  iUpper 
)

Sets the boundaries.

Parameters
[in]iLowerThe lower boundary.
[in]iUpperThe upper boundary.

Definition at line 151 of file spectrumview.cpp.

◆ updateGuiMode()

void SpectrumView::updateGuiMode ( GuiMode  mode)
protectedvirtual

Update the views GUI based on the set GuiMode (Clinical=0, Research=1).

Parameters
[in]modeThe new mode (Clinical=0, Research=1).

Implements DISPLIB::AbstractView.

Definition at line 205 of file spectrumview.cpp.

◆ updateProcessingMode()

void SpectrumView::updateProcessingMode ( ProcessingMode  mode)
protectedvirtual

Update the views GUI based on the set ProcessingMode (RealTime=0, Offline=1).

Parameters
[in]modeThe new mode (RealTime=0, Offline=1).

Implements DISPLIB::AbstractView.

Definition at line 217 of file spectrumview.cpp.

Member Data Documentation

◆ m_pFSDelegate

QPointer<DISPLIB::FrequencySpectrumDelegate> DISPLIB::SpectrumView::m_pFSDelegate
protected

Frequency spectrum delegate.

Definition at line 185 of file spectrumview.h.

◆ m_pFSModel

QPointer<DISPLIB::FrequencySpectrumModel> DISPLIB::SpectrumView::m_pFSModel
protected

Frequency spectrum model.

Definition at line 186 of file spectrumview.h.

◆ m_pTableView

QPointer<QTableView> DISPLIB::SpectrumView::m_pTableView
protected

The QTableView being part of the model/view framework of Qt.

Definition at line 184 of file spectrumview.h.


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