ShowRender.cs 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using Prism.Mvvm;
  7. namespace LampInspectionMachine.Model
  8. {
  9. public class ShowRender : BindableBase
  10. {
  11. private Guid _id;
  12. public Guid Id
  13. {
  14. get { return _id; }
  15. set { SetProperty(ref _id, value); }
  16. }
  17. private string _CameraName;
  18. public string CameraName
  19. {
  20. get { return _CameraName; }
  21. set { SetProperty(ref _CameraName, value); }
  22. }
  23. private Cognex.VisionPro.ICogImage _Image;
  24. public Cognex.VisionPro.ICogImage Image
  25. {
  26. get { return _Image; }
  27. set { SetProperty(ref _Image, value); }
  28. }
  29. private Cognex.VisionPro.CogGraphicCollection _Graphic;
  30. public Cognex.VisionPro.CogGraphicCollection Graphic
  31. {
  32. get { return _Graphic; }
  33. set { SetProperty(ref _Graphic, value); }
  34. }
  35. private Cognex.VisionPro.ICogRecord _Record;
  36. public Cognex.VisionPro.ICogRecord Record
  37. {
  38. get { return _Record; }
  39. set { SetProperty(ref _Record, value); }
  40. }
  41. private bool _result;
  42. public bool Result
  43. {
  44. get { return _result; }
  45. set { SetProperty(ref _result, value); }
  46. }
  47. private bool _IsShow;
  48. public bool IsShow
  49. {
  50. get { return _IsShow; }
  51. set { SetProperty(ref _IsShow, value); }
  52. }
  53. private bool _IsSaveImage;
  54. /// <summary>
  55. /// 保存图像
  56. /// </summary>
  57. public bool IsSaveImage
  58. {
  59. get { return _IsSaveImage; }
  60. set { SetProperty(ref _IsSaveImage, value); }
  61. }
  62. //private ProcedureSaveImageModel _SaveImageModel;
  63. ///// <summary>
  64. ///// 存图模式
  65. ///// </summary>
  66. //public ProcedureSaveImageModel SaveImageModel
  67. //{
  68. // get { return _SaveImageModel; }
  69. // set { SetProperty(ref _SaveImageModel, value); }
  70. //}
  71. //private ProcedureSaveImagePathModel _SaveImagePathModel;
  72. ///// <summary>
  73. ///// 存图路径模式
  74. ///// </summary>
  75. //public ProcedureSaveImagePathModel SaveImagePathModel
  76. //{
  77. // get { return _SaveImagePathModel; }
  78. // set { SetProperty(ref _SaveImagePathModel, value); }
  79. //}
  80. private string _SavePath;
  81. /// <summary>
  82. /// 存图路径
  83. /// </summary>
  84. public string SavePath
  85. {
  86. get { return _SavePath; }
  87. set { SetProperty(ref _SavePath, value); }
  88. }
  89. private bool _IsCompress;
  90. /// <summary>
  91. /// 是否压缩图片
  92. /// </summary>
  93. public bool IsCompress
  94. {
  95. get { return _IsCompress; }
  96. set { SetProperty(ref _IsCompress, value); }
  97. }
  98. }
  99. }