using Aurora.Api.Devices; using Newtonsoft.Json; using PropertyTools.DataAnnotations; using System; namespace VisionCommon { public class CenterTuningRecipe : ICloneCopy { public int MaxCnt { get; set; } = 20; public Position Spec { get; set; } = new Position(); // 센터 기준 스펙 (X, Y, T) public CenterTuningRecipe Clone() { return ((ICloneable)this).Clone() as CenterTuningRecipe; } object ICloneable.Clone() { var cloneObj = new CenterTuningRecipe(); CopyTo(cloneObj); return cloneObj; } public void CopyTo(CenterTuningRecipe target) { target.MaxCnt = this.MaxCnt; target.Spec = new Position() { X = this.Spec.X, Y = this.Spec.Y, Z = this.Spec.Z, T = this.Spec.T }; } } }