ShowRender.cs 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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. namespace TeamAAS_VP.Models
  10. {
  11. public class ShowRender : BindableBase
  12. {
  13. private Guid _id;
  14. public Guid Id
  15. {
  16. get { return _id; }
  17. set { SetProperty(ref _id, value); }
  18. }
  19. private string _CameraName;
  20. public string CameraName
  21. {
  22. get { return _CameraName; }
  23. set { SetProperty(ref _CameraName, value); }
  24. }
  25. private Cognex.VisionPro.ICogImage _Image;
  26. public Cognex.VisionPro.ICogImage Image
  27. {
  28. get { return _Image; }
  29. set { SetProperty(ref _Image, value); }
  30. }
  31. private Cognex.VisionPro.CogGraphicCollection _Graphic;
  32. public Cognex.VisionPro.CogGraphicCollection Graphic
  33. {
  34. get { return _Graphic; }
  35. set { SetProperty(ref _Graphic,value); }
  36. }
  37. private Cognex.VisionPro.ICogRecord _Record;
  38. public Cognex.VisionPro.ICogRecord Record
  39. {
  40. get { return _Record; }
  41. set { SetProperty(ref _Record, value); }
  42. }
  43. private bool _result;
  44. public bool Result
  45. {
  46. get { return _result; }
  47. set { SetProperty(ref _result,value); }
  48. }
  49. private bool _IsShow;
  50. public bool IsShow
  51. {
  52. get { return _IsShow; }
  53. set { SetProperty(ref _IsShow,value); }
  54. }
  55. private bool _IsSaveImage;
  56. /// <summary>
  57. /// 保存图像
  58. /// </summary>
  59. public bool IsSaveImage
  60. {
  61. get { return _IsSaveImage; }
  62. set { SetProperty(ref _IsSaveImage, value); }
  63. }
  64. private ProcedureSaveImageModel _SaveImageModel;
  65. /// <summary>
  66. /// 存图模式
  67. /// </summary>
  68. public ProcedureSaveImageModel SaveImageModel
  69. {
  70. get { return _SaveImageModel; }
  71. set { SetProperty(ref _SaveImageModel, value); }
  72. }
  73. private ProcedureSaveImagePathModel _SaveImagePathModel;
  74. /// <summary>
  75. /// 存图路径模式
  76. /// </summary>
  77. public ProcedureSaveImagePathModel SaveImagePathModel
  78. {
  79. get { return _SaveImagePathModel; }
  80. set { SetProperty(ref _SaveImagePathModel, value); }
  81. }
  82. private string _SavePath;
  83. /// <summary>
  84. /// 存图路径
  85. /// </summary>
  86. public string SavePath
  87. {
  88. get { return _SavePath; }
  89. set { SetProperty(ref _SavePath, value); }
  90. }
  91. private bool _IsCompress;
  92. /// <summary>
  93. /// 是否压缩图片
  94. /// </summary>
  95. public bool IsCompress
  96. {
  97. get { return _IsCompress; }
  98. set { SetProperty(ref _IsCompress, value); }
  99. }
  100. private ImageParameters _ImgPara;
  101. /// <summary>
  102. /// 图片保存附加参数
  103. /// </summary>
  104. public ImageParameters ImgPara
  105. {
  106. get { return _ImgPara; }
  107. set { SetProperty(ref _ImgPara, value); }
  108. }
  109. }
  110. }