cloudflight
2023-12-26 5fa6947054206e2e781eadd4effdcdf52eda28c4
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
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;
        }
 
    }
}