RobotPixelPoint.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. namespace TeamAAS.Robot.Models.Robot
  9. {
  10. /// <summary>
  11. /// 机器人与像素坐标
  12. /// </summary>
  13. public class RobotPixelPoint : TeamAAS.BindableBase
  14. {
  15. private int _Number;
  16. public int Number
  17. {
  18. get { return _Number; }
  19. set { SetProperty(ref _Number,value); }
  20. }
  21. private string _Description;
  22. public string Description
  23. {
  24. get { return _Description; }
  25. set { SetProperty(ref _Description, value); }
  26. }
  27. private PointF _Robot;
  28. /// <summary>
  29. /// 机器人坐标
  30. /// </summary>
  31. public PointF Robot
  32. {
  33. get { return _Robot; }
  34. set { SetProperty(ref _Robot,value); }
  35. }
  36. private PointF _Pixel;
  37. /// <summary>
  38. /// 像素坐标
  39. /// </summary>
  40. public PointF Pixel
  41. {
  42. get { return _Pixel; }
  43. set { SetProperty(ref _Pixel, value); }
  44. }
  45. public RobotPixelPoint Clone()
  46. {
  47. return new RobotPixelPoint()
  48. {
  49. Number = this.Number,
  50. Description = this.Description,
  51. Robot = new PointF(this.Robot.X, this.Robot.Y),
  52. Pixel = new PointF(this.Pixel.X, this.Pixel.Y)
  53. };
  54. }
  55. }
  56. }