Blame view

OS.Spin/OS.Spin.ViewModle/Flaw/MFlawSnapView.cs 1.92 KB
8ca6e89d   Tuo Wenbo   20211021
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
  using OpenCvSharp;
  using System.Windows.Media.Imaging;
  
  namespace OS.Spin.ViewModle.Flaw
  {
      public class MFlawSnapView : BasePropertyChanged
      {
          private string _flawName = string.Empty;            
  
          public string FlawName
          {
              get { return _flawName; }
              set
              {
                  _flawName = value;
                  OnPropertyChanged("FlawName");
              }
          }
  
          private string _score;
          public string Score
          {
              get { return _score; }
              set
              {
                  _score = value;
                  OnPropertyChanged("Score");
              }
          }
  
          private string _id = string.Empty;
  
          public string Id
          {
              get { return _id; }
              set
              {
                  _id = value;
                  OnPropertyChanged("Id");
              }
          }
  
          private double _centerX = 0;
          public double CenterX
          {
              get { return _centerX; }
              set
              {
                  _centerX = value;
                  OnPropertyChanged("CenterX");
              }
          }
  
          private double _centerY = 0;
  
          public double CenterY
          {
              get { return _centerY; }
              set
              {
                  _centerY = value;
                  OnPropertyChanged("CenterY");
              }
          }
  
          private BitmapSource _snapInfo = null;
          public BitmapSource SnapInfo
          {
              get
              {
                  return _snapInfo;
              }
              set
              {
                  _snapInfo = value;
                  OnPropertyChanged("SnapInfo");
              }
          }
  
          private Mat _snapMat;
  
          public Mat SnapMat
          {
              get { return _snapMat; }
              set
              {
                  _snapMat = value;
                  OnPropertyChanged("SnapMat");
              }
          }
      }    
  }