CircularArc.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Xml.Serialization;
  6. namespace ViewROI.Config
  7. {
  8. [Serializable]
  9. class CircularArc
  10. {
  11. private double _row;
  12. private double _column;
  13. private double _radius;
  14. private double _startPhi;
  15. private double _extentPhi;
  16. [XmlElement(ElementName = "Row")]
  17. public double Row
  18. {
  19. get { return this._row; }
  20. set { this._row = value; }
  21. }
  22. [XmlElement(ElementName = "Column")]
  23. public double Column
  24. {
  25. get { return this._column; }
  26. set { this._column = value; }
  27. }
  28. [XmlElement(ElementName = "Radius")]
  29. public double Radius
  30. {
  31. get { return this._radius; }
  32. set { this._radius = value; }
  33. }
  34. [XmlElement(ElementName = "startPhi")]
  35. public double StartPhi
  36. {
  37. get { return this._startPhi; }
  38. set { this._startPhi = value; }
  39. }
  40. [XmlElement(ElementName = "ExtentPhi")]
  41. public double ExtentPhi
  42. {
  43. get { return this._extentPhi; }
  44. set { this._extentPhi = value; }
  45. }
  46. private string color = "blue";
  47. [XmlElement(ElementName = "Color")]
  48. public string Color
  49. {
  50. get { return this.color; }
  51. set { this.color = value; }
  52. }
  53. public CircularArc()
  54. {
  55. }
  56. public CircularArc(double row, double column, double radius,double startPhi, double extentPhi)
  57. {
  58. this._row = row;
  59. this._column = column;
  60. this._radius = radius;
  61. this._startPhi = startPhi;
  62. this._extentPhi = extentPhi;
  63. }
  64. }
  65. }