cloudflight
2024-06-04 e2f45c6bce38ee2ffca13510fdf67b00100814cd
Hydraulic/Hydro.MapView/Common/MapDimensions.cs
@@ -11,53 +11,58 @@
    [Serializable]
    public class MapDimensions
    {
        [Category("视角")]
        [Category("4、视角")]
        [DisplayName("中心")]
        [Browsable(true)]
        public PointF Center { get; set; }
        [Category("视角")]
        [Category("4、视角")]
        [DisplayName("缩放")]
        [Browsable(true)]
        public float zoom { get; set; } = 0.1f;
        [Category("视角")]
        [Category("4、视角")]
        [DisplayName("旋转角度")]
        [Browsable(true)]
        public double rotation { get; set; } = 0;
        private double _rotationF;
        [Category("视角")]
        [Category("4、视角")]
        [DisplayName("俯视角度")]
        [Browsable(true)]
        public double rotationF
        public double rotationF
        {
            get
            get
            {
                if (Lock2DView) _rotationF = 90;
                return _rotationF;
            }
            set
            {
            set
            {
                _rotationF = value;
                if (Lock2DView) _rotationF = 90;
            }
            }
        }
        [Category("视角")]
        [Category("4、视角")]
        [DisplayName("显示楼层")]
        [Browsable(true)]
        public int ShowFloor { get; set; } = int.MinValue;
        [Category("视角")]
        [Category("4、视角")]
        [DisplayName("显示背景")]
        [Browsable(true)]
        public bool isShowPic { get; set; } = true;
        [Category("视角")]
        public bool isAutoBackgroundImage = false;
        [Category("4、视角")]
        [DisplayName("显示最不利点")]
        [Browsable(true)]
        public bool isShowUnfavor { get; set; } = true;
@@ -68,10 +73,10 @@
        //[Browsable(false)]
        //public int LinkColourIndex { get; set; } = 0;
        [Category("视角")]
        [Category("4、视角")]
        [DisplayName("锁定平面视角")]
        [Browsable(true)]
        public bool Lock2DView { get; set; }=false;
        public bool Lock2DView { get; set; } = false;
        /// <summary>
        /// 编辑模式true,浏览模式false;默认值:true;浏览模式下,不能编辑模型