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

Vector plot. More...

#include <tfplot.h>

Public Types

typedef QSharedPointer< TFplotSPtr
 
typedef QSharedPointer< const TFplotConstSPtr
 

Public Member Functions

 TFplot (Eigen::MatrixXd tf_matrix, qreal sample_rate, qreal lower_frq, qreal upper_frq, ColorMaps cmap)
 
 TFplot (Eigen::MatrixXd tf_matrix, qreal sample_rate, ColorMaps cmap)
 

Protected Member Functions

void calc_plot (Eigen::MatrixXd tf_matrix, qreal sample_rate, ColorMaps cmap, qreal lower_frq, qreal upper_frq)
 
virtual void resizeEvent (QResizeEvent *event)
 

Detailed Description

Vector plot.

Plots vector data, similiar to MATLABs plot

Definition at line 87 of file tfplot.h.

Inheritance diagram for DISPLIB::TFplot:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

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

Const shared pointer type for TFplot class.

Definition at line 93 of file tfplot.h.

◆ SPtr

typedef QSharedPointer<TFplot> DISPLIB::TFplot::SPtr

Shared pointer type for TFplot class.

Definition at line 92 of file tfplot.h.

Constructor & Destructor Documentation

◆ TFplot() [1/2]

TFplot::TFplot ( Eigen::MatrixXd  tf_matrix,
qreal  sample_rate,
qreal  lower_frq,
qreal  upper_frq,
ColorMaps  cmap = Jet 
)

Constructs TFplot class

Parameters
[in]tf_matrixgiven spectrogram.
[in]sample_rategiven sample rate of signal related to th spectrogram.
[in]lower_frqlower bound frequency, that should be plotted.
[in]upper_frqupper bound frequency, that should be plotted.
[in]cmapcolormap used to plot the spectrogram.

Definition at line 65 of file tfplot.cpp.

◆ TFplot() [2/2]

TFplot::TFplot ( Eigen::MatrixXd  tf_matrix,
qreal  sample_rate,
ColorMaps  cmap = Jet 
)

Constructs TFplot class

Parameters
[in]tf_matrixgiven spectrogram.
[in]sample_rategiven sample rate of signal related to th spectrogram.
[in]cmapcolormap used to plot the spectrogram.

Definition at line 102 of file tfplot.cpp.

Member Function Documentation

◆ calc_plot()

void TFplot::calc_plot ( Eigen::MatrixXd  tf_matrix,
qreal  sample_rate,
ColorMaps  cmap,
qreal  lower_frq = 0,
qreal  upper_frq = 0 
)
protected

Calculates a image to plot the tf_matrix

Parameters
[in]tf_matrixgiven spectrogram.
[in]sample_rategiven sample rate of signal related to th spectrogram.
[in]cmapcolormap used to plot the spectrogram.
[in]lower_frqlower bound frequency, that should be plotted.
[in]upper_frqupper bound frequency, that should be plotted.

Definition at line 111 of file tfplot.cpp.


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