15#include <peak_icv_c/algorithms/calibration/peak_icv_calibration_plate.h>
92 friend peak::common::detail::BackendAccessor<CalibrationPlate>;
94 PEAK_ICV_NO_DISCARD peak_icv_calibration_plate_handle GetHandle()
const override;
96 peak_icv_calibration_plate_handle m_handle{};
102 return PEAK_ICV_C_ABI_PREFIX peak_icv_Calibration_Plate_CreateFromFile(&m_handle, filePath.c_str());
107 : m_handle(other.m_handle)
110 return PEAK_ICV_C_ABI_PREFIX peak_icv_Calibration_Plate_IncreaseUseCount(other.m_handle);
116 m_handle = std::exchange(other.m_handle,
nullptr);
121 if (m_handle != other.m_handle)
123 if (m_handle !=
nullptr)
126 return PEAK_ICV_C_ABI_PREFIX peak_icv_Calibration_Plate_Destroy(m_handle);
131 return PEAK_ICV_C_ABI_PREFIX peak_icv_Calibration_Plate_IncreaseUseCount(other.m_handle);
133 m_handle = other.m_handle;
140 if (m_handle != other.m_handle)
142 if (m_handle !=
nullptr)
145 return PEAK_ICV_C_ABI_PREFIX peak_icv_Calibration_Plate_Destroy(m_handle);
149 m_handle = std::exchange(other.m_handle,
nullptr);
157 if (m_handle !=
nullptr)
159 PEAK_ICV_C_ABI_PREFIX peak_icv_Calibration_Plate_Destroy(m_handle);
163inline 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)