From d12498504c279a0a85bbfb024f7903e34dbe07db Mon Sep 17 00:00:00 2001 From: Nikita Kostovsky Date: Fri, 21 Feb 2025 07:27:00 +0100 Subject: broken img calc; change dir struct --- src/profile.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/profile.h (limited to 'src/profile.h') diff --git a/src/profile.h b/src/profile.h new file mode 100644 index 0000000..0e2f839 --- /dev/null +++ b/src/profile.h @@ -0,0 +1,29 @@ +#pragma once + +#include +#include + +#include "calibration.h" +#include "pixels.h" + +class Profile +{ +public: + using PointsMm = std::array; + +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("")}}; +}; -- cgit v1.2.3-70-g09d2