diff options
Diffstat (limited to 'profile.h')
| -rw-r--r-- | profile.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/profile.h b/profile.h new file mode 100644 index 0000000..0e2f839 --- /dev/null +++ b/profile.h @@ -0,0 +1,29 @@ +#pragma once + +#include <QJsonObject> +#include <QPointF> + +#include "calibration.h" +#include "pixels.h" + +class Profile +{ +public: + using PointsMm = std::array<QPointF, img_width>; + +public: + // TODO: make private/protected + explicit Profile(const Pixels& pixels, + const CalibrationTablePtr calibrationTableZ, + const CalibrationTablePtr calibrationTableX); + +public: + const Counters& counters() const; + const PointsMm& pointsMm() const; + + operator const QJsonObject() const; + +private: + Counters m_counters{}; + PointsMm m_pointsMm{QPointF{std::nan(""), std::nan("")}}; +}; |
