From 05f0938a65c4f8c330791097680e1e094260bb60 Mon Sep 17 00:00:00 2001 From: Nikita Kostovsky Date: Fri, 6 Mar 2026 20:40:29 +0100 Subject: refactoring --- src/iscanner.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/iscanner.h') diff --git a/src/iscanner.h b/src/iscanner.h index 75300e1..e09197e 100644 --- a/src/iscanner.h +++ b/src/iscanner.h @@ -4,12 +4,16 @@ #include #include +// TODO: remove this include +#include "calibration.h" + class IProtocol; class ICamera; class IScanner { public: + // TODO: get rid of constructor or rename class explicit IScanner(std::shared_ptr camera, std::vector> protocols); virtual ~IScanner() = default; @@ -18,6 +22,13 @@ public: virtual bool startAllProtocols() = 0; virtual void stopAllProtocols() = 0; + // TODO: think about more flexible calibration interface + virtual CalibrationTablePtr calibrationTableX() const = 0; + virtual CalibrationTablePtr calibrationTableZ() const = 0; + + // TODO: add nullptr check everywhere where this function is used + std::shared_ptr camera() const; + protected: std::shared_ptr m_camera; std::vector> m_protocols; -- cgit v1.3