ShowRender.cs 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. using Prism.Mvvm;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Drawing;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using TeamAAS_VP.Enums;
  9. using TeamAAS_VP.Models.Product;
  10. namespace TeamAAS_VP.Models
  11. {
  12. public class ShowRender : BindableBase
  13. {
  14. private Guid _id;
  15. public Guid Id
  16. {
  17. get { return _id; }
  18. set { SetProperty(ref _id, value); }
  19. }
  20. private Cognex.VisionPro.ICogImage _Image;
  21. public Cognex.VisionPro.ICogImage Image
  22. {
  23. get { return _Image; }
  24. set { SetProperty(ref _Image, value); }
  25. }
  26. private Cognex.VisionPro.CogGraphicCollection _Graphic;
  27. public Cognex.VisionPro.CogGraphicCollection Graphic
  28. {
  29. get { return _Graphic; }
  30. set { SetProperty(ref _Graphic, value); }
  31. }
  32. private Cognex.VisionPro.ICogRecord _Record;
  33. public Cognex.VisionPro.ICogRecord Record
  34. {
  35. get { return _Record; }
  36. set { SetProperty(ref _Record, value); }
  37. }
  38. private bool _result;
  39. public bool Result
  40. {
  41. get { return _result; }
  42. set { SetProperty(ref _result, value); }
  43. }
  44. private bool _IsShow;
  45. public bool IsShow
  46. {
  47. get { return _IsShow; }
  48. set { SetProperty(ref _IsShow, value); }
  49. }
  50. private bool _IsSaveImage;
  51. /// <summary>
  52. /// 保存图像
  53. /// </summary>
  54. public bool IsSaveImage
  55. {
  56. get { return _IsSaveImage; }
  57. set { SetProperty(ref _IsSaveImage, value); }
  58. }
  59. private ProcedureSaveImageModel _SaveImageModel;
  60. /// <summary>
  61. /// 存图模式
  62. /// </summary>
  63. public ProcedureSaveImageModel SaveImageModel
  64. {
  65. get { return _SaveImageModel; }
  66. set { SetProperty(ref _SaveImageModel, value); }
  67. }
  68. private ProcedureSaveImagePathModel _SaveImagePathModel;
  69. /// <summary>
  70. /// 存图路径模式
  71. /// </summary>
  72. public ProcedureSaveImagePathModel SaveImagePathModel
  73. {
  74. get { return _SaveImagePathModel; }
  75. set { SetProperty(ref _SaveImagePathModel, value); }
  76. }
  77. private string _SavePath;
  78. /// <summary>
  79. /// 存图路径
  80. /// </summary>
  81. public string SavePath
  82. {
  83. get { return _SavePath; }
  84. set { SetProperty(ref _SavePath, value); }
  85. }
  86. //用户定义的图片文件名
  87. private string _ImageFileName;
  88. /// <summary>
  89. /// 用户定义的图片文件名
  90. /// </summary>
  91. public string ImageFileName
  92. {
  93. get { return _ImageFileName; }
  94. set { SetProperty(ref _ImageFileName, value); }
  95. }
  96. private bool _IsCompress;
  97. /// <summary>
  98. /// 是否压缩图片
  99. /// </summary>
  100. public bool IsCompress
  101. {
  102. get { return _IsCompress; }
  103. set { SetProperty(ref _IsCompress, value); }
  104. }
  105. private bool _IsDelaySaveImage;
  106. /// <summary>
  107. /// 是否延迟保存图片
  108. /// </summary>
  109. public bool IsDelaySaveImage
  110. {
  111. get { return _IsDelaySaveImage; }
  112. set { SetProperty(ref _IsDelaySaveImage, value); }
  113. }
  114. private ImageParameters _ImgPara;
  115. /// <summary>
  116. /// 图片保存附加参数
  117. /// </summary>
  118. public ImageParameters ImgPara
  119. {
  120. get { return _ImgPara; }
  121. set { SetProperty(ref _ImgPara, value); }
  122. }
  123. private string _ProceductName;
  124. public string ProceductName
  125. {
  126. get { return _ProceductName; }
  127. set { _ProceductName = value; }
  128. }
  129. }
  130. }