IAppWorkspaceForSurfaceBox.cs 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. using PaintDotNet.Annotation.Enum;
  2. using PaintDotNet.Base.SettingModel;
  3. using PaintDotNet.CustomControl;
  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 PaintDotNet
  12. {
  13. public interface IAppWorkspaceForSurfaceBox
  14. {
  15. /// <summary>
  16. /// 取消标注连续选中状态
  17. /// </summary>
  18. /// <returns></returns>
  19. void SetContinuousDrawingLable(bool value);
  20. /// <summary>
  21. /// 取消测量连续选中状态
  22. /// </summary>
  23. /// <returns></returns>
  24. void SetContinuousDrawingMeasure(bool value);
  25. /// <summary>
  26. /// 获取网格样式
  27. /// </summary>
  28. /// <returns></returns>
  29. GridModel GetGridModel();
  30. /// <summary>
  31. /// 获取标注样式
  32. /// </summary>
  33. /// <returns></returns>
  34. LabelStyleModel GetLabelStyleModel();
  35. /// <summary>
  36. /// 获取测量样式
  37. /// </summary>
  38. /// <returns></returns>
  39. MeasureStyleModel GetMeasureStyleModel();
  40. /// <summary>
  41. /// 获取设置-常规设置-辅助线样式信息
  42. /// </summary>
  43. /// <returns></returns>
  44. GuideStyleModel GetGuideStyleModel();
  45. /// <summary>
  46. /// 获取水印配置
  47. /// </summary>
  48. /// <returns></returns>
  49. WatermarkModel GetWatermarkModel();
  50. /// <summary>
  51. /// 获取工字线样式配置
  52. /// </summary>
  53. /// <returns></returns>
  54. WorkTypeStyleModel GetWorkTypeStyleModel();
  55. /// <summary>
  56. /// 获取标尺样式配置
  57. /// </summary>
  58. /// <returns></returns>
  59. RulerModel GetRulerStyleModel();
  60. /// <summary>
  61. /// 刷新标注列表
  62. /// </summary>
  63. void RefreshLabelListDialog();
  64. /// <summary>
  65. /// 刷新测量列表
  66. /// </summary>
  67. void RefreshListView();
  68. /// <summary>
  69. /// 刷新直方图
  70. /// </summary>
  71. void RefreshHistogram();
  72. /// <summary>
  73. /// 获取绘制属性
  74. /// </summary>
  75. void SetDrawNodes();
  76. /// <summary>
  77. /// 刷新光密度画面
  78. /// </summary>
  79. void RefreshOpticalDensity();
  80. /*
  81. * PointF GetDocumentScrollPositionF();
  82. void SetDocumentScrollPositionF(PointF newScrollPos);
  83. */
  84. RectangleF GetVisibleDocumentRectangleF();
  85. SizeF GetDocumentSize();
  86. double GetRatio();
  87. PointF DocumentToClient(PointF pointF);
  88. /// <summary>
  89. /// 获取系统当前选中单位及每单位像素值
  90. /// </summary>
  91. /// <returns>3位字符串数组,
  92. /// 0:系统选中单位枚举字符串
  93. /// 1:系统选中单位名称字符串
  94. /// 2:系统选中单位符号字符串
  95. /// 3:系统选中单位每单位像素长度</returns>
  96. string[] GetPxPerUnit();
  97. /// <summary>
  98. /// 获取当前DocumentWorkspace的视场行为
  99. /// </summary>
  100. /// <returns></returns>
  101. CombineMode GetCombineMode();
  102. /// <summary>
  103. /// 获取测量单位对应的换算字典
  104. /// </summary>
  105. /// <returns></returns>
  106. Dictionary<MeasurementUnit, double> getMeasureInfo();
  107. /// <summary>
  108. /// 获取系统当前放大倍数
  109. /// </summary>
  110. /// <returns></returns>
  111. decimal GetGainMultiple();
  112. /// <summary>
  113. /// 获取底部公共控件
  114. /// </summary>
  115. /// <returns></returns>
  116. PanelBottom GetPanelBottom();
  117. /// <summary>
  118. /// 设置底部的放大缩小的进度条的值
  119. /// </summary>
  120. /// <param name="newValue"></param>
  121. void SetZoonTrackValue(ScaleFactor newValue);
  122. /// <summary>
  123. /// 更新命名的延续数字
  124. /// </summary>
  125. void UpdateContinueNum();
  126. void SetScriptRunning(Boolean value);
  127. void SetScriptStopping(Boolean value);
  128. bool GetScriptRunning();
  129. bool GetScriptStopping();
  130. /// <summary>
  131. /// 当前操作完成后继续执行脚本
  132. /// </summary>
  133. void ResumeScriptRunning();
  134. void CopyAndPasteByControlAndDoubleClick();
  135. void RefreshMeasureListView();
  136. }
  137. }