PathPoint.cs
1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace XingYe_ACS.BaseStruct
{
public class PathPoint : IComparable
{
/// <summary>
/// 路径所在区域
/// </summary>
public string areaType { get; set; }
/// <summary>
/// 路径对应的子任务号
/// </summary>
public int intSonTaskNo;
/// <summary>
/// 路径点序号
/// </summary>
public int intSerialNo { get; set; }
/// <summary>
/// 路径点方向
/// </summary>
public EnumMsg.OriType pathDirection { get; set; }
/// <summary>
/// 路径点信息
/// </summary>
public Point point { get; set;}
/// <summary>
/// 是否为拐点
/// </summary>
public bool isCorner { get; set; }
/// <summary>
/// 路径点的点属性
/// </summary>
public EnumMsg.PointType pathPointType { get; set; }
/// <summary>
/// 排序
/// </summary>
/// <param name="obj"></param>
/// <returns></returns>
public int CompareTo(object obj)
{
PathPoint pathPoint = obj as PathPoint;
if (pathPoint == null)
throw new NotImplementedException();
return intSerialNo.CompareTo(pathPoint.intSerialNo);
}
public Dictionary<string, int> keyValuePairs = new Dictionary<string, int>();// { get; set; }
}
}