添加 MX-PD-盘古 项目文件
将 MX-PD-盘古 - new 目录下的所有文件添加到主仓库
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MainShell.EventArgsFolder
|
||||
{
|
||||
public class ChipAngleEventArgs
|
||||
{
|
||||
public double Angle { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
using MainShell.Hardware;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace MainShell.EventArgsFolder
|
||||
{
|
||||
public class DeviceIoChangedEventArgs : EventArgs
|
||||
{
|
||||
public DeviceIoChangedEventArgs(IReadOnlyList<DeviceIoPointState> changedPoints, IReadOnlyDictionary<string, DeviceIoPointState> allPoints)
|
||||
{
|
||||
ChangedPoints = changedPoints ?? new List<DeviceIoPointState>();
|
||||
AllPoints = allPoints ?? new Dictionary<string, DeviceIoPointState>();
|
||||
}
|
||||
|
||||
public IReadOnlyList<DeviceIoPointState> ChangedPoints { get; private set; }
|
||||
|
||||
public IReadOnlyDictionary<string, DeviceIoPointState> AllPoints { get; private set; }
|
||||
|
||||
public bool TryGetById(int id, out DeviceIoPointState point)
|
||||
{
|
||||
point = AllPoints.Values.FirstOrDefault(x => x.Id == id);
|
||||
return point != null;
|
||||
}
|
||||
|
||||
public bool TryGetByPointKey(string pointKey, out DeviceIoPointState point)
|
||||
{
|
||||
return AllPoints.TryGetValue(pointKey, out point);
|
||||
}
|
||||
|
||||
public DeviceIoPointState FindByName(string name)
|
||||
{
|
||||
return AllPoints.Values.FirstOrDefault(x => string.Equals(x.Name, name, StringComparison.OrdinalIgnoreCase));
|
||||
}
|
||||
|
||||
public IReadOnlyList<DeviceIoPointState> FindByModule(string module)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(module))
|
||||
{
|
||||
return new List<DeviceIoPointState>();
|
||||
}
|
||||
|
||||
return AllPoints.Values
|
||||
.Where(x => string.Equals(x.Module, module, StringComparison.OrdinalIgnoreCase))
|
||||
.ToList();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
|
||||
namespace MainShell.EventArgsFolder
|
||||
{
|
||||
public class DiastimeterSampleChangedEventArgs : EventArgs
|
||||
{
|
||||
public DiastimeterSampleChangedEventArgs(double distance, DateTime sampleTime, bool isValid, string message)
|
||||
{
|
||||
Distance = distance;
|
||||
SampleTime = sampleTime;
|
||||
IsValid = isValid;
|
||||
Message = message;
|
||||
}
|
||||
|
||||
public double Distance { get; private set; }
|
||||
|
||||
public DateTime SampleTime { get; private set; }
|
||||
|
||||
public bool IsValid { get; private set; }
|
||||
|
||||
public string Message { get; private set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using MainShell.Vision;
|
||||
using AppCameraType = MainShell.Common.CameraType;
|
||||
|
||||
namespace MainShell.EventArgsFolder
|
||||
{
|
||||
public class DisplayFindTemplateResultEventArgs
|
||||
{
|
||||
public AppCameraType CameraType { get; private set; }
|
||||
|
||||
public FindTemplateResult Result { get; private set; }
|
||||
|
||||
public bool ClearShapesBeforeDisplay { get; private set; }
|
||||
|
||||
public DisplayFindTemplateResultEventArgs(FindTemplateResult result)
|
||||
: this(AppCameraType.TopPositionCamera, result, true)
|
||||
{
|
||||
}
|
||||
|
||||
public DisplayFindTemplateResultEventArgs(AppCameraType cameraType, FindTemplateResult result)
|
||||
: this(cameraType, result, true)
|
||||
{
|
||||
}
|
||||
|
||||
public DisplayFindTemplateResultEventArgs(AppCameraType cameraType, FindTemplateResult result, bool clearShapesBeforeDisplay)
|
||||
{
|
||||
CameraType = cameraType;
|
||||
Result = result;
|
||||
ClearShapesBeforeDisplay = clearShapesBeforeDisplay;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
using MwFramework.Device.Model;
|
||||
using AppCameraType = MainShell.Common.CameraType;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MainShell.EventArgsFolder
|
||||
{
|
||||
public class DisplayImageEventArgs
|
||||
{
|
||||
public AppCameraType CameraType { get; }
|
||||
|
||||
public CameraData CameraData
|
||||
{
|
||||
get => _cameraData;
|
||||
set => _cameraData = value;
|
||||
}
|
||||
|
||||
private CameraData _cameraData;
|
||||
|
||||
public DisplayImageEventArgs(CameraData image)
|
||||
: this(AppCameraType.TopPositionCamera, image)
|
||||
{
|
||||
}
|
||||
|
||||
public DisplayImageEventArgs(AppCameraType cameraType, CameraData image)
|
||||
{
|
||||
CameraType = cameraType;
|
||||
_cameraData = image;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MainShell.EventArgsFolder
|
||||
{
|
||||
/// <summary>
|
||||
/// 对刀完保存数据通知测高重新计算事件
|
||||
/// </summary>
|
||||
public class NeedleCalibrationHeightTestEventArgs : EventArgs
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MainShell.EventArgsFolder
|
||||
{
|
||||
public class NeedleZCalibrationResultEventArgs : EventArgs
|
||||
{
|
||||
public double Result { get; set; }
|
||||
|
||||
public NeedleZCalibrationResultEventArgs(double result)
|
||||
{
|
||||
Result = result;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
|
||||
namespace MainShell.EventArgsFolder
|
||||
{
|
||||
public sealed class OriginCalibDataChangedEventArgs
|
||||
{
|
||||
public OriginCalibDataChangedEventArgs(IReadOnlyList<OriginCalibAxisOffsetChangedItem> axes)
|
||||
{
|
||||
Axes = new ReadOnlyCollection<OriginCalibAxisOffsetChangedItem>((axes ?? Array.Empty<OriginCalibAxisOffsetChangedItem>()).ToList());
|
||||
}
|
||||
|
||||
public IReadOnlyList<OriginCalibAxisOffsetChangedItem> Axes { get; private set; }
|
||||
}
|
||||
|
||||
public sealed class OriginCalibAxisOffsetChangedItem
|
||||
{
|
||||
public OriginCalibAxisOffsetChangedItem(string axisName, double offset)
|
||||
{
|
||||
AxisName = axisName ?? string.Empty;
|
||||
Offset = offset;
|
||||
}
|
||||
|
||||
public string AxisName { get; private set; }
|
||||
|
||||
public double Offset { get; private set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using MainShell.Common;
|
||||
|
||||
namespace MainShell.EventArgsFolder
|
||||
{
|
||||
public class ProcessFlowStateChangedEventArgs
|
||||
{
|
||||
public string WorkflowName { get; set; }
|
||||
public string ParentActivityName { get; set; }
|
||||
public string CurrentActivityName { get; set; }
|
||||
public ProcessExecutionStatus Status { get; set; }
|
||||
public string ErrorMessage { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MainShell
|
||||
{
|
||||
public class SubstrateNameChangedEventArgs : EventArgs
|
||||
{
|
||||
public string OldName { get; set; }
|
||||
public string NewName { get; set; }
|
||||
|
||||
}
|
||||
public class WaferNameChangedEventArgs : EventArgs
|
||||
{
|
||||
public string OldName { get; set; }
|
||||
public string NewName { get; set; }
|
||||
|
||||
}
|
||||
public class ProcessNameChangedEventArgs : EventArgs
|
||||
{
|
||||
public string OldName { get; set; }
|
||||
public string NewName { get; set; }
|
||||
|
||||
}
|
||||
public class SubstrateDeletedEventArgs : EventArgs
|
||||
{
|
||||
public string DeletedName { get; set; }
|
||||
}
|
||||
public class WaferDeletedEventArgs : EventArgs
|
||||
{
|
||||
public string DeletedName { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using MainShell.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MainShell.EventArgsFolder
|
||||
{
|
||||
public class SubstrateMarkFoundEventArgs
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public MPoint BasePose { get; set; }
|
||||
public MPoint ResultPose { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MainShell.EventArgsFolder
|
||||
{
|
||||
public class SubstrateProcessStartedEventArgs
|
||||
{
|
||||
public DateTime StartTime { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MainShell.EventArgsFolder
|
||||
{
|
||||
public class SubstrateResultEventArgs
|
||||
{
|
||||
public double Angle { get; set; }
|
||||
// 如果有其他最终结果(如 Offset),也可以放在这里
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user