moving_rms.h
Go to the documentation of this file.
1 #ifndef MOVING_RMS_H
2 #define MOVING_RMS_H
3 
4 #include <QSpinBox>
5 #include <QWidget>
8 
9 namespace Ui
10 {
11 class MovingRMS;
12 }
13 
15 {
16  Q_OBJECT
17 
18 public:
19  explicit MovingRMS();
20 
21  ~MovingRMS() override;
22 
23  void reset() override;
24 
25  static const char* transformName()
26  {
27  return "Moving Root Mean Squared";
28  }
29 
30  const char* name() const override
31  {
32  return transformName();
33  }
34 
35  QWidget* optionsWidget() override;
36 
37  bool xmlSaveState(QDomDocument& doc, QDomElement& parent_element) const override;
38 
39  bool xmlLoadState(const QDomElement& parent_element) override;
40 
41 private:
42  Ui::MovingRMS* ui;
43 
44  QWidget* _widget;
45  std::vector<PJ::PlotData::Point> _buffer;
47 
48  std::optional<PJ::PlotData::Point> calculateNextPoint(size_t index) override;
49 };
50 
51 #endif // MOVING_RMS_H
MovingRMS::name
const char * name() const override
Name of the plugin type, NOT the particular instance.
Definition: moving_rms.h:30
MovingRMS::_widget
QWidget * _widget
Definition: moving_rms.h:44
MovingRMS::~MovingRMS
~MovingRMS() override
Definition: moving_rms.cpp:16
transform_function.h
MovingRMS::transformName
static const char * transformName()
Definition: moving_rms.h:25
Ui
Definition: cheatsheet_dialog.h:6
PJ::TransformFunction_SISO
Simplified version with Single input and Single output.
Definition: transform_function.h:88
MovingRMS::MovingRMS
MovingRMS()
Definition: moving_rms.cpp:4
MovingRMS::xmlSaveState
bool xmlSaveState(QDomDocument &doc, QDomElement &parent_element) const override
Override this method to save the status of the plugin to XML.
Definition: moving_rms.cpp:33
MovingRMS::_buffer
std::vector< PJ::PlotData::Point > _buffer
Definition: moving_rms.h:45
MovingRMS::optionsWidget
QWidget * optionsWidget() override
optionsWidget pointer to a persistent widget used to set the plugin options .
Definition: moving_rms.cpp:28
ring_span.hpp
MovingRMS::calculateNextPoint
std::optional< PJ::PlotData::Point > calculateNextPoint(size_t index) override
Definition: moving_rms.cpp:52
MovingRMS::_ring_view
nonstd::ring_span_lite::ring_span< PJ::PlotData::Point > _ring_view
Definition: moving_rms.h:46
MovingRMS::xmlLoadState
bool xmlLoadState(const QDomElement &parent_element) override
Override this method to load the status of the plugin from XML.
Definition: moving_rms.cpp:41
MovingRMS
Definition: moving_rms.h:14
nonstd::ring_span_lite::ring_span< PJ::PlotData::Point >
MovingRMS::ui
Ui::MovingRMS * ui
Definition: moving_rms.h:42
MovingRMS::reset
void reset() override
Definition: moving_rms.cpp:22


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