130 lines
3.0 KiB
C#
130 lines
3.0 KiB
C#
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
|
||
/// </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 };
|
||
}
|
||
|
||
|
||
}
|
||
}
|