PathPoint.cs 1.54 KB
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; }
    }
}