MNE-CPP 0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
tfplot.h
Go to the documentation of this file.
1//=============================================================================================================
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
72enum ColorMaps {
73 Hot,
74 HotNeg1,
75 HotNeg2,
76 Jet,
77 Bone,
78 RedBlue
79};
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;
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
#define DISPSHARED_EXPORT
Definition disp_global.h:55
Vector plot.
Definition tfplot.h:88
QSharedPointer< const TFplot > ConstSPtr
Definition tfplot.h:93
QSharedPointer< TFplot > SPtr
Definition tfplot.h:92