v2.0.0
Loading...
Searching...
No Matches
tfplot.h
Go to the documentation of this file.
1//=============================================================================================================
33
34#ifndef TFPLOT_H
35#define TFPLOT_H
36
37//=============================================================================================================
38// INCLUDES
39//=============================================================================================================
40
41#include "../disp_global.h"
42
43//=============================================================================================================
44// QT INCLUDES
45//=============================================================================================================
46
47#include <QWidget>
48
49//=============================================================================================================
50// EIGEN INCLUDES
51//=============================================================================================================
52
53#include <Eigen/Core>
54#include <Eigen/SparseCore>
55#include <unsupported/Eigen/FFT>
56
57//=============================================================================================================
58// FORWARD DECLARATIONS
59//=============================================================================================================
60
61//=============================================================================================================
62// DEFINE NAMESPACE DISPLIB
63//=============================================================================================================
64
65namespace DISPLIB
66{
67
68//=============================================================================================================
69// DISPLIB FORWARD DECLARATIONS
70//=============================================================================================================
71
80
81//=============================================================================================================
87class DISPSHARED_EXPORT TFplot : public QWidget
88{
89 Q_OBJECT
90
91public:
92 typedef QSharedPointer<TFplot> SPtr;
93 typedef QSharedPointer<const TFplot> ConstSPtr;
94
95 //=========================================================================================================
106 TFplot(Eigen::MatrixXd tf_matrix,
107 qreal sample_rate,
108 qreal lower_frq,
109 qreal upper_frq,
110 ColorMaps cmap);
111
112 //=========================================================================================================
121 TFplot(Eigen::MatrixXd tf_matrix,
122 qreal sample_rate,
123 ColorMaps cmap);
124
125protected:
126 //=========================================================================================================
137 void calc_plot(Eigen::MatrixXd tf_matrix,
138 qreal sample_rate,
139 ColorMaps cmap,
140 qreal lower_frq,
141 qreal upper_frq);
142
143 virtual void resizeEvent(QResizeEvent *event);
144};
145} // NAMESPACE
146
147#endif // TFPLOT_H
disp library export/import macros.
#define DISPSHARED_EXPORT
Definition disp_global.h:51
2-D display widgets and visualisation helpers (charts, topography, colour maps).
ColorMaps
Definition tfplot.h:72
@ Jet
Definition tfplot.h:76
@ RedBlue
Definition tfplot.h:78
@ HotNeg1
Definition tfplot.h:74
@ Hot
Definition tfplot.h:73
@ Bone
Definition tfplot.h:77
@ HotNeg2
Definition tfplot.h:75
void calc_plot(Eigen::MatrixXd tf_matrix, qreal sample_rate, ColorMaps cmap, qreal lower_frq, qreal upper_frq)
Definition tfplot.cpp:111
QSharedPointer< const TFplot > ConstSPtr
Definition tfplot.h:93
virtual void resizeEvent(QResizeEvent *event)
Definition tfplot.cpp:304
QSharedPointer< TFplot > SPtr
Definition tfplot.h:92
TFplot(Eigen::MatrixXd tf_matrix, qreal sample_rate, qreal lower_frq, qreal upper_frq, ColorMaps cmap)
Definition tfplot.cpp:65