using System;
namespace VisionCommon {
///
/// 얼라인 정위치(Reference Point) 설정을 위한 레시피
///
public class RefPointRecipe : ICloneCopy {
///
/// FOV의 중심 위치로부터의 오프셋 [mm]
///
public StaticPoint Offset { get; set; } = new StaticPoint();
///
/// RefPointRecipe를 깊은 복사한다.
///
///
public RefPointRecipe Clone() {
return ((ICloneable)this).Clone() as RefPointRecipe;
}
object ICloneable.Clone() {
var cloneObj = new RefPointRecipe();
CopyTo(cloneObj);
return cloneObj;
}
///
/// 데이터를 target에 복사한다.
///
/// 복사 대상
public void CopyTo(RefPointRecipe target) {
target.Offset = this.Offset.Clone() as StaticPoint;
}
}
}