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; }
|
|
|
|
}
|
}
|