36 lines
1.0 KiB
C#
36 lines
1.0 KiB
C#
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;
|
|
}
|
|
}
|
|
}
|