Files
Jungfraujoch/common/ROIElement.h
2025-05-28 18:49:27 +02:00

28 lines
848 B
C++

// SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute <filip.leonarski@psi.ch>
// SPDX-License-Identifier: GPL-3.0-only
#ifndef JUNGFRAUJOCH_ROIELEMENT_H
#define JUNGFRAUJOCH_ROIELEMENT_H
#include <string>
#include <vector>
#include <cstdint>
#include "JFJochMessages.h"
class ROIElement {
protected:
std::string name;
explicit ROIElement(const std::string &name);
public:
virtual ~ROIElement() = default;
[[nodiscard]] std::string GetName() const;
[[nodiscard]] virtual ROIConfig ExportMetadata() const = 0;
[[nodiscard]] virtual bool CheckROI(int64_t x, int64_t y, float resolution) const = 0;
void MarkROI(std::vector<uint16_t> &v, uint16_t value_to_mark, int64_t xpixel, int64_t ypixel,
const std::vector<float> &resolution_map) const;
};
#endif //JUNGFRAUJOCH_ROIELEMENT_H