2 #include "ui_outlier_removal.h" 6 , _widget(new QWidget())
8 , _ring_view(_buffer.begin(), _buffer.end())
12 connect(
ui->spinBoxFactor, qOverload<double>(&QDoubleSpinBox::valueChanged),
this,
13 [=](
int) { emit parametersChanged(); });
28 QDomElement& parent_element)
const 30 QDomElement widget_el = doc.createElement(
"options");
31 widget_el.setAttribute(
"value",
ui->spinBoxFactor->value());
32 parent_element.appendChild(widget_el);
38 QDomElement widget_el = parent_element.firstChildElement(
"options");
39 ui->spinBoxFactor->setValue(widget_el.attribute(
"value",
"100.0").toDouble());
58 double thresh =
ui->spinBoxFactor->value();
60 double jump = std::max(std::abs(d1), std::abs(d2));
61 if (jump / std::abs(d0) > thresh)
bool xmlSaveState(QDomDocument &doc, QDomElement &parent_element) const override
Override this method to save the status of the plugin to XML.
nonstd::ring_span_lite::ring_span< double > _ring_view
~OutlierRemovalFilter() override
const Point & at(size_t index) const
Ui::OutlierRemovalFilter * ui
std::optional< PlotData::Point > calculateNextPoint(size_t index) override
bool xmlLoadState(const QDomElement &parent_element) override
Override this method to load the status of the plugin from XML.
QWidget * optionsWidget() override
optionsWidget pointer to a persistent widget used to set the plugin options .
void push_back(value_type const &value)