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
69
70//=============================================================================================================
79class DISPSHARED_EXPORT TFplot : public QWidget
80{
81 Q_OBJECT
82
83public:
84 typedef QSharedPointer<TFplot> SPtr;
85 typedef QSharedPointer<const TFplot> ConstSPtr;
86
87 //=========================================================================================================
98 TFplot(Eigen::MatrixXd tf_matrix,
99 qreal sample_rate,
100 qreal lower_frq,
101 qreal upper_frq,
102 ColorMaps cmap);
103
104 //=========================================================================================================
113 TFplot(Eigen::MatrixXd tf_matrix,
114 qreal sample_rate,
115 ColorMaps cmap);
116
117protected:
118 //=========================================================================================================
129 void calc_plot(Eigen::MatrixXd tf_matrix,
130 qreal sample_rate,
131 ColorMaps cmap,
132 qreal lower_frq,
133 qreal upper_frq);
134
135 virtual void resizeEvent(QResizeEvent *event);
136};
137} // NAMESPACE
138
139#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:61
@ Jet
Definition tfplot.h:65
@ RedBlue
Definition tfplot.h:67
@ HotNeg1
Definition tfplot.h:63
@ Hot
Definition tfplot.h:62
@ Bone
Definition tfplot.h:66
@ HotNeg2
Definition tfplot.h:64
void calc_plot(Eigen::MatrixXd tf_matrix, qreal sample_rate, ColorMaps cmap, qreal lower_frq, qreal upper_frq)
Definition tfplot.cpp:92
QSharedPointer< const TFplot > ConstSPtr
Definition tfplot.h:85
virtual void resizeEvent(QResizeEvent *event)
Definition tfplot.cpp:285
QSharedPointer< TFplot > SPtr
Definition tfplot.h:84
TFplot(Eigen::MatrixXd tf_matrix, qreal sample_rate, qreal lower_frq, qreal upper_frq, ColorMaps cmap)
Definition tfplot.cpp:46