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

35 lines
1.0 KiB
C#

/*
* Copyright (c) 2025 LG Electronics Inc.
* SPDX-License-Identifier: LicenseRef-LGE-Proprietary
*/
using Aurora.Api.Devices;
using Newtonsoft.Json;
using PropertyTools.DataAnnotations;
using System;
namespace VisionCommon {
public class CenterTuningRecipe : ICloneCopy<CenterTuningRecipe> {
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
};
}
}
}