using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Hydro.MapView { [Serializable] public class MapDimensions { [Category("4、视角")] [DisplayName("中心")] [Browsable(true)] public PointF Center { get; set; } [Category("4、视角")] [DisplayName("缩放")] [Browsable(true)] public float zoom { get; set; } = 0.1f; [Category("4、视角")] [DisplayName("旋转角度")] [Browsable(true)] public double rotation { get; set; } = 0; [Category("4、视角")] [DisplayName("俯视角度")] [Browsable(true)] public double rotationF { get; set; } = 90; [Category("4、视角")] [DisplayName("显示楼层")] [Browsable(true)] public int ShowFloor { get; set; } = int.MinValue; [Category("4、视角")] [DisplayName("显示背景")] [Browsable(true)] public bool isShowPic { get; set; } = true; public MapDimensions Copy() { MapDimensions mv = new MapDimensions(); mv.Center = Center; mv.zoom = zoom; mv.rotation = rotation; mv.rotationF = rotationF; mv.ShowFloor = ShowFloor; return mv; } } }