toolbox_FFT.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <QtPlugin>
4 #include <thread>
7 
8 namespace Ui
9 {
10 class toolbox_fft;
11 }
12 
14 {
15  Q_OBJECT
16  Q_PLUGIN_METADATA(IID "facontidavide.PlotJuggler3.Toolbox")
17  Q_INTERFACES(PJ::ToolboxPlugin)
18 
19 public:
20  ToolboxFFT();
21 
22  ~ToolboxFFT() override;
23 
24  const char* name() const override
25  {
26  return "Fast Fourier Transform";
27  }
28 
29  void init(PJ::PlotDataMapRef& src_data, PJ::TransformsMap& transform_map) override;
30 
31  std::pair<QWidget*, WidgetType> providedWidget() const override;
32 
33 public slots:
34 
35  bool onShowWidget() override;
36 
37 private:
38  QWidget* _widget;
39  Ui::toolbox_fft* ui;
40 
41  // bool eventFilter(QObject *obj, QEvent *event) override;
42 
43  QStringList _dragging_curves;
44 
47 
50 
52 
54 
55  std::vector<std::string> _curve_names;
56 
57 private slots:
58 
59  void onDragEnterEvent(QDragEnterEvent* event);
60  void onDropEvent(QDropEvent* event);
61  void onViewResized(const QRectF& rect);
62  void onSaveCurve();
63  void calculateCurveFFT();
64  void onClearCurves();
65 };
ToolboxFFT::~ToolboxFFT
~ToolboxFFT() override
Definition: toolbox_FFT.cpp:32
ToolboxFFT::_widget
QWidget * _widget
Definition: toolbox_FFT.h:38
ToolboxFFT::onSaveCurve
void onSaveCurve()
Definition: toolbox_FFT.cpp:256
ToolboxFFT::_plot_widget_B
PJ::PlotWidgetBase * _plot_widget_B
Definition: toolbox_FFT.h:46
ToolboxFFT::name
const char * name() const override
Name of the plugin type, NOT the particular instance.
Definition: toolbox_FFT.h:24
ToolboxFFT::_local_data
PJ::PlotDataMapRef _local_data
Definition: toolbox_FFT.h:51
ToolboxFFT
Definition: toolbox_FFT.h:13
ToolboxFFT::providedWidget
std::pair< QWidget *, WidgetType > providedWidget() const override
Definition: toolbox_FFT.cpp:63
ToolboxFFT::_plot_widget_A
PJ::PlotWidgetBase * _plot_widget_A
Definition: toolbox_FFT.h:45
PJ::TransformsMap
std::unordered_map< std::string, std::shared_ptr< TransformFunction > > TransformsMap
Definition: transform_function.h:85
ToolboxFFT::_curve_names
std::vector< std::string > _curve_names
Definition: toolbox_FFT.h:55
plotwidget_base.h
ToolboxFFT::calculateCurveFFT
void calculateCurveFFT()
Definition: toolbox_FFT.cpp:77
Ui
Definition: cheatsheet_dialog.h:6
ToolboxFFT::init
void init(PJ::PlotDataMapRef &src_data, PJ::TransformsMap &transform_map) override
Definition: toolbox_FFT.cpp:37
ToolboxFFT::onClearCurves
void onClearCurves()
Definition: toolbox_FFT.cpp:179
ToolboxFFT::_zoom_range
Range _zoom_range
Definition: toolbox_FFT.h:53
ToolboxFFT::ToolboxFFT
ToolboxFFT()
Definition: toolbox_FFT.cpp:15
ToolboxFFT::onShowWidget
bool onShowWidget() override
Definition: toolbox_FFT.cpp:68
ToolboxFFT::_transforms
PJ::TransformsMap * _transforms
Definition: toolbox_FFT.h:49
PJ::Range
Definition: plotdatabase.h:24
ToolboxFFT::onViewResized
void onViewResized(const QRectF &rect)
Definition: toolbox_FFT.cpp:250
ToolboxFFT::_plot_data
PJ::PlotDataMapRef * _plot_data
Definition: toolbox_FFT.h:48
ToolboxFFT::onDropEvent
void onDropEvent(QDropEvent *event)
Definition: toolbox_FFT.cpp:226
ToolboxFFT::ui
Ui::toolbox_fft * ui
Definition: toolbox_FFT.h:39
PJ::ToolboxPlugin
Definition: toolbox_base.h:20
ToolboxFFT::onDragEnterEvent
void onDragEnterEvent(QDragEnterEvent *event)
Definition: toolbox_FFT.cpp:196
ToolboxFFT::_dragging_curves
QStringList _dragging_curves
Definition: toolbox_FFT.h:43
PJ::PlotDataMapRef
Definition: plotdata.h:34
toolbox_base.h
PJ::PlotWidgetBase
Definition: plotwidget_base.h:25


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:47