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