ningshuxia
2025-03-26 6171f94b5ca6c804ac2892d214943ff0ac400d26
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
namespace HydroUI
{
    [Serializable]
    public class MapDimensions
    {
 
        [Category("视角")]
        [DisplayName("中心")]
        [Browsable(true)]
        public PointF Center { get; set; }
 
        [Category("视角")]
        [DisplayName("缩放")]
        [Browsable(true)]
        public float zoom { get; set; } = 0.1f;
 
        [Category("视角")]
        [DisplayName("旋转角度")]
        [Browsable(true)]
        public double rotation { get; set; } = 0;
 
 
        private double _rotationF;
        [Category("视角")]
        [DisplayName("俯视角度")]
        [Browsable(true)]
        public double rotationF
        {
            get
            {
                if (Lock2DView) _rotationF = 90;
                return _rotationF;
            }
            set
            {
                _rotationF = value;
                if (Lock2DView) _rotationF = 90;
            }
        }
 
        [Category("视角")]
        [DisplayName("显示楼层")]
        [Browsable(true)]
        public int ShowFloor { get; set; } = int.MinValue;
 
        [Category("视角")]
        [DisplayName("显示背景")]
        [Browsable(true)]
        public bool isShowPic { get; set; } = true;
 
 
 
        public bool isAutoBackgroundImage = false;
 
 
        [Category("视角")]
        [DisplayName("显示最不利点")]
        [Browsable(true)]
        public bool isShowUnfavor { get; set; } = true;
         
 
        [Category("视角")]
        [DisplayName("锁定平面视角")]
        [Browsable(true)]
        public bool Lock2DView { get; set; } = false;
 
 
        /// 编辑模式true,浏览模式false;默认值:true;浏览模式下,不能编辑模型
        public bool isEditMode { get; set; } = true;
 
 
 
        /// 正交模式
        public bool IsOrtho { get; set; } = true;
 
 
        /// 显示的颜色分级
        public ColourType ColourNode { get; set; } = ColourType.无;
        public ColourType ColourLink { get; set; } = ColourType.无;
 
        public MapDimensions Copy()
        {
            MapDimensions mv = new MapDimensions();
            mv.Center = Center;
            mv.zoom = zoom;
            mv.rotation = rotation;
            mv.rotationF = rotationF;
            mv.ShowFloor = ShowFloor;
            return mv;
        }
 
    }
}