Pallet.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. using System;
  2. using System.Collections.ObjectModel;
  3. using Prism.Mvvm;
  4. namespace TeamAAS.Robot.Models
  5. {
  6. /// <summary>
  7. /// 托盘模型(简化版,从旧项目移植)
  8. /// </summary>
  9. public class Pallet : TeamAAS.BindableBase
  10. {
  11. private int _id;
  12. public int Id
  13. {
  14. get => _id;
  15. set => SetProperty(ref _id, value);
  16. }
  17. private string _name;
  18. public string Name
  19. {
  20. get => _name;
  21. set => SetProperty(ref _name, value);
  22. }
  23. private double _originX;
  24. public double OriginX
  25. {
  26. get => _originX;
  27. set => SetProperty(ref _originX, value);
  28. }
  29. private double _originY;
  30. public double OriginY
  31. {
  32. get => _originY;
  33. set => SetProperty(ref _originY, value);
  34. }
  35. private double _originZ;
  36. public double OriginZ
  37. {
  38. get => _originZ;
  39. set => SetProperty(ref _originZ, value);
  40. }
  41. private int _rows = 1;
  42. public int Rows
  43. {
  44. get => _rows;
  45. set => SetProperty(ref _rows, value);
  46. }
  47. private int _cols = 1;
  48. public int Cols
  49. {
  50. get => _cols;
  51. set => SetProperty(ref _cols, value);
  52. }
  53. private double _rowSpacing;
  54. public double RowSpacing
  55. {
  56. get => _rowSpacing;
  57. set => SetProperty(ref _rowSpacing, value);
  58. }
  59. private double _colSpacing;
  60. public double ColSpacing
  61. {
  62. get => _colSpacing;
  63. set => SetProperty(ref _colSpacing, value);
  64. }
  65. }
  66. }