cloudflight
2024-05-06 71c956d53e25d73947ce14690fae74f3542da002
Hydraulic/Hydro.MapView/Common/MapDimensions.cs
@@ -11,6 +11,8 @@
    [Serializable]
    public class MapDimensions
    {
        [Category("4、视角")]
        [DisplayName("中心")]
        [Browsable(true)]
@@ -26,10 +28,24 @@
        [Browsable(true)]
        public double rotation { get; set; } = 0;
        private double _rotationF;
        [Category("4、视角")]
        [DisplayName("俯视角度")]
        [Browsable(true)]
        public double rotationF { get; set; } = 90;
        public double rotationF
        {
            get
            {
                if (Lock2DView) _rotationF = 90;
                return _rotationF;
            }
            set
            {
                _rotationF = value;
                if (Lock2DView) _rotationF = 90;
            }
        }
        [Category("4、视角")]
        [DisplayName("显示楼层")]
@@ -42,15 +58,32 @@
        public bool isShowPic { get; set; } = true;
        [Category("4、视角")]
        [DisplayName("最不利点")]
        [DisplayName("显示最不利点")]
        [Browsable(true)]
        public bool isShowUnfavor { get; set; } = true;
        [Browsable(false)]
        public int NodeColourIndex { get; set; } = 0;
        //[Browsable(false)]
        //public int NodeColourIndex { get; set; } = 0;
        [Browsable(false)]
        public int LinkColourIndex { get; set; } = 0;
        //[Browsable(false)]
        //public int LinkColourIndex { get; set; } = 0;
        [Category("4、视角")]
        [DisplayName("锁定平面视角")]
        [Browsable(true)]
        public bool Lock2DView { get; set; }=false;
        /// <summary>
        /// 正交模式
        /// </summary>
        public bool IsOrtho { get; set; } = true;
        /// <summary>
        /// 显示的颜色分级
        /// </summary>
        public ColourType ColourNode { get; set; } = ColourType.无;
        public ColourType ColourLink { get; set; } = ColourType.无;
        public MapDimensions Copy()
        {