IAppWorkspaceForSurfaceBox.cs 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. using SmartCoalApplication.Annotation.Enum;
  2. using SmartCoalApplication.Base.SettingModel;
  3. using SmartCoalApplication.Core;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Drawing;
  7. using System.Drawing.Drawing2D;
  8. using System.Linq;
  9. using System.Text;
  10. using System.Threading.Tasks;
  11. namespace SmartCoalApplication
  12. {
  13. public interface IAppWorkspaceForSurfaceBox
  14. {
  15. /// <summary>
  16. /// 获取当前激活工具
  17. /// </summary>
  18. /// <returns></returns>
  19. DrawToolType GetDrawToolType();
  20. /// <summary>
  21. /// 设置当前激活工具
  22. /// </summary>
  23. /// <returns></returns>
  24. void SetDrawToolType(DrawToolType t);
  25. /// <summary>
  26. /// 获取测量单位对应的换算字典
  27. /// </summary>
  28. /// <returns></returns>
  29. Dictionary<MeasurementUnit, double> getMeasureInfo();
  30. /// <summary>
  31. /// 获取绘制属性
  32. /// </summary>
  33. void SetDrawNodes();
  34. /// <summary>
  35. /// 刷新测量列表
  36. /// </summary>
  37. void RefreshListView();
  38. /// <summary>
  39. /// 设置像素跟踪的数据
  40. /// </summary>
  41. /// <param name="location"></param>
  42. void SetImageAndData(System.Drawing.Point location);
  43. /// <summary>
  44. /// 获取系统当前选中单位及每单位像素值
  45. /// </summary>
  46. /// <returns>3位字符串数组,
  47. /// 0:系统选中单位枚举字符串
  48. /// 1:系统选中单位名称字符串
  49. /// 2:系统选中单位符号字符串
  50. /// 3:系统选中单位每单位像素长度</returns>
  51. string[] GetPxPerUnit();
  52. /// <summary>
  53. /// 获取测量样式
  54. /// </summary>
  55. /// <returns></returns>
  56. MeasureStyleModel GetMeasureStyleModel();
  57. /// <summary>
  58. /// 取消测量连续选中状态
  59. /// </summary>
  60. /// <returns></returns>
  61. void SetContinuousDrawingMeasure(bool value);
  62. /// <summary>
  63. /// 取消视场连续选中状态
  64. /// </summary>
  65. /// <returns></returns>
  66. void SetContinuousDrawingView(bool value);
  67. /// <summary>
  68. /// 获取当前DocumentWorkspace的视场行为
  69. /// </summary>
  70. /// <returns></returns>
  71. CombineMode GetCombineMode();
  72. RectangleF GetVisibleDocumentRectangleF();
  73. SizeF GetDocumentSize();
  74. /// <summary>
  75. /// 更新命名的延续数字
  76. /// </summary>
  77. void UpdateContinueNum();
  78. /// <summary>
  79. /// 获取测量区域样式
  80. /// </summary>
  81. /// <returns></returns>
  82. MeasureAreaModel GetMeasureAreaModel();
  83. /// <summary>
  84. /// 设置底部的放大缩小的进度条的值
  85. /// </summary>
  86. /// <param name="newValue"></param>
  87. void SetZoonTrackValue(ScaleFactor newValue);
  88. double getUnitNum();
  89. string getAliasName();
  90. int getDecimalPlaces();
  91. }
  92. }