RobotTool.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. using Prism.Mvvm;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace TeamAAS_VP.Models
  8. {
  9. /// <summary>
  10. /// 机器人工具坐标
  11. /// </summary>
  12. public class RobotTool:BindableBase
  13. {
  14. private int _Number;
  15. /// <summary>
  16. /// 编号
  17. /// </summary>
  18. public int Number
  19. {
  20. get { return _Number; }
  21. set { SetProperty(ref _Number,value); }
  22. }
  23. private double _X;
  24. /// <summary>
  25. /// X坐标
  26. /// </summary>
  27. public double X
  28. {
  29. get { return _X; }
  30. set { SetProperty(ref _X, value); }
  31. }
  32. private double _Y;
  33. /// <summary>
  34. /// Y坐标
  35. /// </summary>
  36. public double Y
  37. {
  38. get { return _Y; }
  39. set { SetProperty(ref _Y, value); }
  40. }
  41. private double _Z;
  42. /// <summary>
  43. /// Z坐标
  44. /// </summary>
  45. public double Z
  46. {
  47. get { return _Z; }
  48. set { SetProperty(ref _Z, value); }
  49. }
  50. public RobotTool Copy()
  51. {
  52. RobotTool newTool = new RobotTool();
  53. newTool.Number = this.Number;
  54. newTool.X = this.X;
  55. newTool.Y = this.Y;
  56. newTool.Z = this.Z;
  57. return newTool;
  58. }
  59. }
  60. }