ROIElement: Remove toString()
This commit is contained in:
@@ -1,11 +1,8 @@
|
||||
// SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute <filip.leonarski@psi.ch>
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
#include <cmath>
|
||||
|
||||
#include "ROICircle.h"
|
||||
#include "JFJochException.h"
|
||||
#include "spdlog/fmt/bundled/format.h"
|
||||
|
||||
ROICircle::ROICircle(const std::string &name, float in_x, float in_y, float in_r_pxl)
|
||||
: ROIElement(name), center_x(in_x), center_y(in_y), r_pxl(in_r_pxl), r_pxl_2(in_r_pxl * in_r_pxl) {
|
||||
@@ -40,8 +37,3 @@ bool ROICircle::CheckROI(int64_t x, int64_t y, float resolution) const {
|
||||
float dist_from_center_sq = x_fl * x_fl + y_fl * y_fl;
|
||||
return (dist_from_center_sq <= r_pxl_2);
|
||||
}
|
||||
|
||||
std::string ROICircle::toString() const {
|
||||
return fmt::format("Circle x: {:.1f} y: {:.1f} r: {:.01f} pxl", center_x, center_y, r_pxl);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user