36 lines
1.2 KiB
C#
36 lines
1.2 KiB
C#
/*
|
|
* Copyright (c) 2025 LG Electronics Inc.
|
|
* SPDX-License-Identifier: LicenseRef-LGE-Proprietary
|
|
*/
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Media;
|
|
|
|
namespace VisionCommon {
|
|
public class TrainOriginInfo {
|
|
public PatternInfo PaternInfo { get; set; }
|
|
public ImagePoint OriginPoint { get; set; } = new ImagePoint();
|
|
public Angle T { get; set; } = new Angle();
|
|
public ImagePoint OriginOffset { get; set; } = new ImagePoint();
|
|
public Angle TOffset { get; set; } = new Angle();
|
|
|
|
public SolidColorBrush Color { get; set; }
|
|
|
|
public TrainOriginInfo(PatternInfo paternInfo, SolidColorBrush color) {
|
|
PaternInfo = paternInfo;
|
|
Color = color;
|
|
}
|
|
|
|
public TrainOriginInfo Clone() {
|
|
return new TrainOriginInfo(PaternInfo.Clone() as PatternInfo, Color) {
|
|
OriginPoint = OriginPoint.Clone() as ImagePoint,
|
|
T = T.Clone() as Angle,
|
|
OriginOffset = OriginOffset.Clone() as ImagePoint,
|
|
TOffset = TOffset.Clone() as Angle
|
|
};
|
|
}
|
|
}
|
|
} |