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 { public class MapView { [Category("4、视角")] [DisplayName("中心")] [Browsable(true)] public PointF Center { get; set; } [Category("4、视角")] [DisplayName("缩放")] [Browsable(true)] public float zoom { get; set; } [Category("4、视角")] [DisplayName("旋转角度")] [Browsable(true)] public double rotation { get; set; } [Category("4、视角")] [DisplayName("俯视角度")] [Browsable(true)] public double rotationF { get; set; } [Category("4、视角")] [DisplayName("显示楼层")] [Browsable(true)] public int ShowFloor { get; set; } = int.MinValue; [Category("4、视角")] [DisplayName("显示背景")] [Browsable(true)] public bool isShowPic { get; set; } = true; public MapView Copy() { MapView mv = new MapView(); mv.Center = Center; mv.zoom = zoom; mv.rotation = rotation; mv.rotationF = rotationF; mv.ShowFloor = ShowFloor; return mv; } } }