plotjuggler_app
transforms
absolute_transform.cpp
Go to the documentation of this file.
1
#include "
absolute_transform.h
"
2
#include <QFormLayout>
3
#include <QDoubleValidator>
4
5
std::optional<PlotData::Point>
AbsoluteTransform::calculateNextPoint
(
size_t
index)
6
{
7
const
auto
& p =
dataSource
()->
at
(index);
8
PlotData::Point
out = { p.x, std::abs(p.y) };
9
return
out;
10
}
AbsoluteTransform::calculateNextPoint
std::optional< PlotData::Point > calculateNextPoint(size_t index) override
Definition:
absolute_transform.cpp:5
absolute_transform.h
PJ::TimeseriesBase::Point
typename PlotDataBase< double, Value >::Point Point
Definition:
timeseries.h:23
PJ::TransformFunction_SISO::dataSource
const PlotData * dataSource() const
Definition:
transform_function.cpp:113
PJ::PlotDataBase::at
const Point & at(size_t index) const
Definition:
plotdatabase.h:193
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:43