v2.0.0
Loading...
Searching...
No Matches
tfplot.h
Go to the documentation of this file.
1//=============================================================================================================
22
23#ifndef TFPLOT_H
24#define TFPLOT_H
25
26//=============================================================================================================
27// INCLUDES
28//=============================================================================================================
29
30#include "../disp_global.h"
31
32//=============================================================================================================
33// QT INCLUDES
34//=============================================================================================================
35
36#include <QWidget>
37
38//=============================================================================================================
39// EIGEN INCLUDES
40//=============================================================================================================
41
42#include <Eigen/Core>
43#include <Eigen/SparseCore>
44#include <unsupported/Eigen/FFT>
45
46//=============================================================================================================
47// FORWARD DECLARATIONS
48//=============================================================================================================
49
50//=============================================================================================================
51// DEFINE NAMESPACE DISPLIB
52//=============================================================================================================
53
54namespace DISPLIB
55{
56
57//=============================================================================================================
58// DISPLIB FORWARD DECLARATIONS
59//=============================================================================================================
60
70
71//=============================================================================================================
82class DISPSHARED_EXPORT TFplot : public QWidget
83{
84 Q_OBJECT
85
86public:
87 typedef QSharedPointer<TFplot> SPtr;
88 typedef QSharedPointer<const TFplot> ConstSPtr;
89
90 //=========================================================================================================
101 TFplot(Eigen::MatrixXd tf_matrix,
102 qreal sample_rate,
103 qreal lower_frq,
104 qreal upper_frq,
105 ColorMaps cmap);
106
107 //=========================================================================================================
116 TFplot(Eigen::MatrixXd tf_matrix,
117 qreal sample_rate,
118 ColorMaps cmap);
119
120protected:
121 //=========================================================================================================
132 void calc_plot(Eigen::MatrixXd tf_matrix,
133 qreal sample_rate,
134 ColorMaps cmap,
135 qreal lower_frq,
136 qreal upper_frq);
137
138 virtual void resizeEvent(QResizeEvent* event);
139};
140} // NAMESPACE
141
142#endif // TFPLOT_H
Export macros and build-info hooks for the DISPLIB shared library.
#define DISPSHARED_EXPORT
Definition disp_global.h:38
2-D display widgets and visualisation helpers (charts, topography, colour maps).
ColorMaps
Definition tfplot.h:62
@ Jet
Definition tfplot.h:66
@ RedBlue
Definition tfplot.h:68
@ HotNeg1
Definition tfplot.h:64
@ Hot
Definition tfplot.h:63
@ Bone
Definition tfplot.h:67
@ HotNeg2
Definition tfplot.h:65
void calc_plot(Eigen::MatrixXd tf_matrix, qreal sample_rate, ColorMaps cmap, qreal lower_frq, qreal upper_frq)
Definition tfplot.cpp:94
QSharedPointer< const TFplot > ConstSPtr
Definition tfplot.h:88
virtual void resizeEvent(QResizeEvent *event)
Definition tfplot.cpp:284
QSharedPointer< TFplot > SPtr
Definition tfplot.h:87
TFplot(Eigen::MatrixXd tf_matrix, qreal sample_rate, qreal lower_frq, qreal upper_frq, ColorMaps cmap)
Definition tfplot.cpp:46