2026-01-26 14:51:28 +09:00

40 lines
1.2 KiB
C#

/*
* Copyright (c) 2025 LG Electronics Inc.
* SPDX-License-Identifier: LicenseRef-LGE-Proprietary
*/
using System;
namespace VisionCommon {
/// <summary>
/// 얼라인 정위치(Reference Point) 설정을 위한 레시피
/// </summary>
public class RefPointRecipe : ICloneCopy<RefPointRecipe> {
/// <summary>
/// FOV의 중심 위치로부터의 오프셋 [mm]
/// </summary>
public StaticPoint Offset { get; set; } = new StaticPoint();
/// <summary>
/// RefPointRecipe를 깊은 복사한다.
/// </summary>
/// <returns></returns>
public RefPointRecipe Clone() {
return ((ICloneable)this).Clone() as RefPointRecipe;
}
object ICloneable.Clone() {
var cloneObj = new RefPointRecipe();
CopyTo(cloneObj);
return cloneObj;
}
/// <summary>
/// 데이터를 target에 복사한다.
/// </summary>
/// <param name="target">복사 대상</param>
public void CopyTo(RefPointRecipe target) {
target.Offset = this.Offset.Clone() as StaticPoint;
}
}
}