IAppWorkspaceForSurfaceBox.cs 4.7 KB

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