123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- using SmartCoalApplication.Annotation.Enum;
- using SmartCoalApplication.Base.SettingModel;
- using SmartCoalApplication.Core;
- using System;
- using System.Collections.Generic;
- using System.Drawing;
- using System.Drawing.Drawing2D;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace SmartCoalApplication
- {
- public interface IAppWorkspaceForSurfaceBox
- {
- /// <summary>
- /// 获取当前激活工具
- /// </summary>
- /// <returns></returns>
- DrawToolType GetDrawToolType();
- /// <summary>
- /// 设置当前激活工具
- /// </summary>
- /// <returns></returns>
- void SetDrawToolType(DrawToolType t);
- /// <summary>
- /// 获取测量单位对应的换算字典
- /// </summary>
- /// <returns></returns>
- Dictionary<MeasurementUnit, double> getMeasureInfo();
- /// <summary>
- /// 获取绘制属性
- /// </summary>
- void SetDrawNodes();
- /// <summary>
- /// 刷新测量列表
- /// </summary>
- void RefreshListView();
- /// <summary>
- /// 设置像素跟踪的数据
- /// </summary>
- /// <param name="location"></param>
- void SetImageAndData(System.Drawing.Point location);
- /// <summary>
- /// 获取系统当前选中单位及每单位像素值
- /// </summary>
- /// <returns>3位字符串数组,
- /// 0:系统选中单位枚举字符串
- /// 1:系统选中单位名称字符串
- /// 2:系统选中单位符号字符串
- /// 3:系统选中单位每单位像素长度</returns>
- string[] GetPxPerUnit();
- /// <summary>
- /// 获取测量样式
- /// </summary>
- /// <returns></returns>
- MeasureStyleModel GetMeasureStyleModel();
- /// <summary>
- /// 取消测量连续选中状态
- /// </summary>
- /// <returns></returns>
- void SetContinuousDrawingMeasure(bool value);
- /// <summary>
- /// 取消视场连续选中状态
- /// </summary>
- /// <returns></returns>
- void SetContinuousDrawingView(bool value);
- /// <summary>
- /// 获取当前DocumentWorkspace的视场行为
- /// </summary>
- /// <returns></returns>
- CombineMode GetCombineMode();
- RectangleF GetVisibleDocumentRectangleF();
- SizeF GetDocumentSize();
- /// <summary>
- /// 更新命名的延续数字
- /// </summary>
- void UpdateContinueNum();
- /// <summary>
- /// 获取测量区域样式
- /// </summary>
- /// <returns></returns>
- MeasureAreaModel GetMeasureAreaModel();
- /// <summary>
- /// 设置底部的放大缩小的进度条的值
- /// </summary>
- /// <param name="newValue"></param>
- void SetZoonTrackValue(ScaleFactor newValue);
- double getUnitNum();
- string getAliasName();
- int getDecimalPlaces();
- }
- }
|