using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IStation.Model.Map { /// /// 多边形 /// public class Polygon : JsonModel { /// /// /// public Polygon() { } /// /// /// 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; } /// /// 点列表 /// public List Points { get; set; } /// /// 边框宽度 /// public int BorderWidth { get; set; } /// /// 边框透明度 /// public double BorderOpacity { get; set; } /// /// 边框颜色 /// public string BorderColor { get; set; } /// /// 背景颜色 /// public string BackgroundColor { get; set; } /// /// 背景透明度 /// public double BackgroundOpacity { get; set; } /// /// 面积 /// public double? Area { get; set; } } }