From 46e3091f9cdefc7e2ffbc69bcb9c39650b1c0587 Mon Sep 17 00:00:00 2001 From: cloudflight <cloudflight@126.com> Date: 星期六, 12 十月 2024 03:19:57 +0800 Subject: [PATCH] 1、修改用户输入的喷头流量系数为K系数,自动转换为EPA中的射流系数 --- WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/Map/Drawer.Model.cs | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/Map/Drawer.Model.cs b/WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/Map/Drawer.Model.cs index cc43938..6addf91 100644 --- a/WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/Map/Drawer.Model.cs +++ b/WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/Map/Drawer.Model.cs @@ -102,6 +102,7 @@ MouseState _mouseState = MouseState.鏃�; private NodeViewModel _OperaNode = null; + PointF _HookPoint = new PointF(-1, -1); public PointF mouseXY = new PointF(0, 0); PointF DragStartPos; @@ -306,20 +307,21 @@ private double Rotation0 = 0; [Browsable(false)] - public PointF MapCenter + public PointF3D MapCenter { get - { - return mapOption.Center; + { + if (mapOption?.Center == null) return new PointF3D(0, 0, 0); + return mapOption.Center; } set { //灏�$"{MapCenter.X.ToString("0.00")},{MapCenter.Y.ToString("0.00")}"閫氳繃CenterChanged浼犲嚭 CenterChanged?.Invoke(this, $"{MapCenter.X.ToString("0.00")},{MapCenter.Y.ToString("0.00")}"); - mapOption.Center = value; + mapOption.Center = value; } } - private PointF MapCenter0; + private PointF3D MapCenter0; private bool is3Dview = false; double 淇瑙掑害_start = 90; -- Gitblit v1.9.3