using PaintDotNet.Annotation.Enum; using PaintDotNet.Base.SettingModel; using PaintDotNet.CustomControl; using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Drawing2D; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PaintDotNet { public interface IAppWorkspaceForSurfaceBox { /// /// 取消标注连续选中状态 /// /// void SetContinuousDrawingLable(bool value); /// /// 取消测量连续选中状态 /// /// void SetContinuousDrawingMeasure(bool value); /// /// 获取网格样式 /// /// GridModel GetGridModel(); /// /// 获取标注样式 /// /// LabelStyleModel GetLabelStyleModel(); /// /// 获取测量样式 /// /// MeasureStyleModel GetMeasureStyleModel(); /// /// 获取设置-常规设置-辅助线样式信息 /// /// GuideStyleModel GetGuideStyleModel(); /// /// 获取水印配置 /// /// WatermarkModel GetWatermarkModel(); /// /// 获取工字线样式配置 /// /// WorkTypeStyleModel GetWorkTypeStyleModel(); /// /// 获取标尺样式配置 /// /// RulerModel GetRulerStyleModel(); /// /// 刷新标注列表 /// void RefreshLabelListDialog(); /// /// 刷新测量列表 /// void RefreshListView(); /// /// 刷新直方图 /// void RefreshHistogram(); /// /// 获取绘制属性 /// void SetDrawNodes(); /// /// 刷新光密度画面 /// void RefreshOpticalDensity(); /* * PointF GetDocumentScrollPositionF(); void SetDocumentScrollPositionF(PointF newScrollPos); */ RectangleF GetVisibleDocumentRectangleF(); SizeF GetDocumentSize(); double GetRatio(); PointF DocumentToClient(PointF pointF); /// /// 获取系统当前选中单位及每单位像素值 /// /// 3位字符串数组, /// 0:系统选中单位枚举字符串 /// 1:系统选中单位名称字符串 /// 2:系统选中单位符号字符串 /// 3:系统选中单位每单位像素长度 string[] GetPxPerUnit(); /// /// 获取当前DocumentWorkspace的视场行为 /// /// CombineMode GetCombineMode(); /// /// 获取测量单位对应的换算字典 /// /// Dictionary getMeasureInfo(); /// /// 获取系统当前放大倍数 /// /// decimal GetGainMultiple(); /// /// 获取底部公共控件 /// /// PanelBottom GetPanelBottom(); /// /// 设置底部的放大缩小的进度条的值 /// /// void SetZoonTrackValue(ScaleFactor newValue); /// /// 更新命名的延续数字 /// void UpdateContinueNum(); void SetScriptRunning(Boolean value); void SetScriptStopping(Boolean value); bool GetScriptRunning(); bool GetScriptStopping(); /// /// 当前操作完成后继续执行脚本 /// void ResumeScriptRunning(); void CopyAndPasteByControlAndDoubleClick(); void RefreshMeasureListView(); } }