15#include <peak_icv_c/algorithms/calibration/peak_icv_calibration_plate.h>
90 friend peak::common::detail::BackendAccessor<CalibrationPlate>;
92 PEAK_COMMON_NO_DISCARD peak_icv_calibration_plate_handle GetHandle()
const override;
94 peak_icv_calibration_plate_handle m_handle{};
100 return PEAK_ICV_C_ABI_PREFIX peak_icv_Calibration_Plate_CreateFromFile(&m_handle, filePath.c_str());
105 : m_handle(other.m_handle)
108 return PEAK_ICV_C_ABI_PREFIX peak_icv_Calibration_Plate_IncreaseUseCount(other.m_handle);
114 m_handle = std::exchange(other.m_handle,
nullptr);
119 if (m_handle != other.m_handle)
121 if (m_handle !=
nullptr)
124 return PEAK_ICV_C_ABI_PREFIX peak_icv_Calibration_Plate_Destroy(m_handle);
129 return PEAK_ICV_C_ABI_PREFIX peak_icv_Calibration_Plate_IncreaseUseCount(other.m_handle);
131 m_handle = other.m_handle;
138 if (m_handle != other.m_handle)
140 if (m_handle !=
nullptr)
143 return PEAK_ICV_C_ABI_PREFIX peak_icv_Calibration_Plate_Destroy(m_handle);
147 m_handle = std::exchange(other.m_handle,
nullptr);
155 if (m_handle !=
nullptr)
157 std::ignore = PEAK_ICV_C_ABI_PREFIX peak_icv_Calibration_Plate_Destroy(m_handle);
161inline peak_icv_calibration_plate_handle CalibrationPlate::GetHandle()
const
Calibration plate representation holding the world coordinates of the reference points on a calibrati...
CalibrationPlate(const std::string &filePath)
Initializes the object by loading world coordinates from a description file.
CalibrationPlate & operator=(const CalibrationPlate &other)
~CalibrationPlate() override
void ExecuteAndMapReturnCodes(const CallableType &callableObject)