samples_count.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <QWidget>
5 
6 using namespace PJ;
7 
8 namespace Ui
9 {
10 class SamplesCount;
11 }
12 
14 {
15 public:
16  explicit SamplesCountFilter();
17 
18  ~SamplesCountFilter() override;
19 
20  static const char* transformName()
21  {
22  return "Samples Counter";
23  }
24 
25  const char* name() const override
26  {
27  return transformName();
28  }
29 
30  QWidget* optionsWidget() override;
31 
32  bool xmlSaveState(QDomDocument& doc, QDomElement& parent_element) const override;
33 
34  bool xmlLoadState(const QDomElement& parent_element) override;
35 
36 private:
37  Ui::SamplesCount* ui;
38  QWidget* _widget;
39 
40  int count_ = 0;
41  double interval_end_ = 0;
42 
43  std::optional<PlotData::Point> calculateNextPoint(size_t index) override;
44 };
SamplesCountFilter::ui
Ui::SamplesCount * ui
Definition: samples_count.h:37
SamplesCountFilter::name
const char * name() const override
Name of the plugin type, NOT the particular instance.
Definition: samples_count.h:25
SamplesCountFilter::_widget
QWidget * _widget
Definition: samples_count.h:38
SamplesCountFilter::transformName
static const char * transformName()
Definition: samples_count.h:20
transform_function.h
Ui
Definition: cheatsheet_dialog.h:6
PJ::TransformFunction_SISO
Simplified version with Single input and Single output.
Definition: transform_function.h:88
SamplesCountFilter
Definition: samples_count.h:13
PJ
Definition: dataloader_base.h:16


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