TFLH/Model/Vision/VisualEngineeringItems.cs
2026-08-06 09:50:46 +08:00

130 lines
3.1 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Community;
namespace Model.Vision
{
/// <summary>
/// 视觉工程项目类型
/// </summary>
public class VisualEngineeringItems : NotificationObject
{
private int id;
/// <summary>
/// ID
/// </summary>
public int ID
{
get { return id; }
set { id = value;
this.RaisePropertyChanged("ID");
}
}
/// <summary>
/// 视觉工程ID
/// </summary>
public int VisualEngineeringID { get; set; }
private int handleType;
/// <summary>
/// 视觉处理类型 1扫码,2定位,3检查,4测量,5OCR ,23抓螺柱
/// </summary>
public int HandleType
{
get { return handleType; }
set
{
handleType = value;
this.RaisePropertyChanged("HandleType");
}
}
private string vEIname;
/// <summary>
/// 视觉功能名称
/// </summary>
public string VEIname
{
get { return vEIname; }
set
{
vEIname = value;
this.RaisePropertyChanged("VEIname");
}
}
private bool enable;
/// <summary>
/// 启用
/// </summary>
public bool Enable
{
get { return enable; }
set
{
enable = value;
this.RaisePropertyChanged("Enable");
}
}
private string notes;
/// <summary>
/// 备注
/// </summary>
public string Notes
{
get { return notes; }
set
{
notes = value;
this.RaisePropertyChanged("Notes");
}
}
#region 我的区域模型
private V_RectangleModel myRectangleModel;
/// <summary>
/// 我的区域模型
/// </summary>
public V_RectangleModel MyRectangleModel
{
get { return myRectangleModel; }
set
{
myRectangleModel = value;
this.RaisePropertyChanged("MyRectangleModel");
}
}
#endregion
#region 图像校正区域
private V_RectangleModel imageCorrectionRM;
/// <summary>
/// 图像校正区域
/// </summary>
public V_RectangleModel ImageCorrectionRM
{
get { return imageCorrectionRM; }
set
{
imageCorrectionRM = value;
this.RaisePropertyChanged("ImageCorrectionRM");
}
}
#endregion
public VisualEngineeringItems()
{
MyRectangleModel = new V_RectangleModel() { AreaType = 1 };
ImageCorrectionRM = new V_RectangleModel() { AreaType = 2 };
}
}
}