lixiaojun
2023-04-12 2be5d90e96f163c67101571f6865b17effcb0f3f
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
61
62
63
64
65
66
67
68
69
70
71
72
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace IStation.Model.Map
{
    /// <summary>
    /// 多边形
    /// </summary>
    public class Polygon : JsonModel<Polygon> 
    {
        /// <summary>
        /// 
        /// </summary>
        public Polygon() { }
 
        /// <summary>
        /// 
        /// </summary>
        public Polygon(Polygon rhs)
        {
            this.Points = rhs.Points?.Select(x => new Point(x)).ToList();
            this.BorderWidth = rhs.BorderWidth;
            this.BorderOpacity = rhs.BorderOpacity;
            this.BorderColor = rhs.BorderColor;
            this.BackgroundColor = rhs.BackgroundColor;
            this.BackgroundOpacity = rhs.BackgroundOpacity;
            this.Area = rhs.Area;
        }
 
        /// <summary>
        /// 点列表
        /// </summary>
        public List<Point> Points { get; set; }
 
        /// <summary>
        /// 边框宽度
        /// </summary>
        public int BorderWidth { get; set; }
 
        /// <summary>
        /// 边框透明度
        /// </summary>
        public double BorderOpacity { get; set; }
 
        /// <summary>
        /// 边框颜色
        /// </summary>
        public string BorderColor { get; set; }
 
        /// <summary>
        /// 背景颜色
        /// </summary>
        public string BackgroundColor { get; set; }
 
        /// <summary>
        /// 背景透明度
        /// </summary>
        public double BackgroundOpacity { get; set; }
 
        /// <summary>
        /// 面积
        /// </summary>
        public double? Area { get; set; }
 
 
 
    }
}