You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.0 KiB
C#
55 lines
1.0 KiB
C#
using GeoSigmaDrawLib;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using UCDraw;
|
|
|
|
namespace KevServer
|
|
{
|
|
/// <summary>
|
|
/// 绘图工具基础类
|
|
/// </summary>
|
|
public class WebDrawTool
|
|
{
|
|
/// <summary>
|
|
/// 光标类型
|
|
/// </summary>
|
|
public CursorType ToolCursor
|
|
{
|
|
get; set;
|
|
} = CursorType.Default;
|
|
|
|
/// <summary>
|
|
/// 工具类型
|
|
/// </summary>
|
|
public DrawItemType ItemType { get; set; }
|
|
|
|
public GeoSigmaXY Geo
|
|
{
|
|
get; set;
|
|
} = null;
|
|
|
|
public WebDrawTool()
|
|
{
|
|
}
|
|
|
|
public WebDrawTool(GeoSigmaXY geo)
|
|
{
|
|
Geo = geo;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 开始进入工具状态
|
|
/// </summary>
|
|
public virtual void Start()
|
|
{
|
|
Geo.SetItem((int)ItemType);
|
|
}
|
|
|
|
public virtual void End()
|
|
{
|
|
}
|
|
}
|
|
} |