PolygonMode.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace FastReport.Export.Hpgl.Commands
  6. {
  7. /// <summary>
  8. /// Polygon Type
  9. /// </summary>
  10. public enum PolygonType
  11. {
  12. /// <summary>
  13. /// Polygon buffer is cleared and it is made polygon definition mode.
  14. /// </summary>
  15. Cleared = 0,
  16. /// <summary>
  17. /// Polygon under definition is closed.
  18. /// </summary>
  19. Closed = 1,
  20. /// <summary>
  21. /// Polygon under definition is closed and polygon definition mode is canceled.
  22. /// </summary>
  23. ClosedAndCanceled = 2
  24. }
  25. /// <summary>
  26. /// PM command
  27. /// It is made polygon definition mode. PM command is used with
  28. /// PA/PR, PU/PD, AA/AR, CI, and CT command, and can define polygon.
  29. /// </summary>
  30. public class PolygonMode : CommandBase<float>
  31. {
  32. public PolygonMode(PolygonType n) : base()
  33. {
  34. Name = "PM";
  35. Parameters.Add((int)n);
  36. }
  37. }
  38. }