| | |
| | | using Yw.WinFrmUI.Q3d; |
| | | |
| | | using Newtonsoft.Json; |
| | | using Newtonsoft.Json; |
| | | using System; |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | |
| | | using System.Threading; |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | using static Yw.WinFrmUI.Q3d.MapViewEnum; |
| | | using Yw.WinFrmUI.Q3d; |
| | | using Yw.WinFrmUI.Q3d; |
| | | using Yw.WinFrmUI.Q3d; |
| | | using static System.Net.Mime.MediaTypeNames; |
| | | using static System.Windows.Forms.AxHost; |
| | | using static System.Windows.Forms.LinkLabel; |
| | | using static System.Windows.Forms.VisualStyles.VisualStyleElement.Button; |
| | | using static System.Windows.Forms.VisualStyles.VisualStyleElement.TrackBar; |
| | | using static Yw.WinFrmUI.Q3d.MapViewEnum; |
| | | using Cursor = System.Windows.Forms.Cursor; |
| | | using Yw.WinFrmUI.Q3d; |
| | | using Yw.WinFrmUI.Q3d; |
| | | |
| | | namespace Yw.WinFrmUI.Q3d |
| | | { |
| | |
| | | |
| | | InitializeComponent(); |
| | | this.DoubleBuffered = true; |
| | | MapCenter =new PointF3D(0, 0, 0); |
| | | MapCenter = new PointF3D(0, 0, 0); |
| | | zoom = 1.0f; |
| | | |
| | | SetStyle(ControlStyles.SupportsTransparentBackColor, true); |
| | | BackColor = Color.Transparent; |
| | | |
| | | |
| | | |
| | | } |
| | | public void SetDefaultView() |
| | |
| | | return projectedPoints; |
| | | } |
| | | |
| | | public void SetSelectObj(List<string> ids) |
| | | { |
| | | //构造两个字典,一个是节点,一个是管道 |
| | | var dict_nodes = _Nodes.ToDictionary(o => o.ID); |
| | | var dict_links = _Links.ToDictionary(o => o.ID); |
| | | //遍历所有的id,找到对应的对象 |
| | | foreach (var id in ids) |
| | | { |
| | | if (dict_nodes.ContainsKey(id)) |
| | | { |
| | | dict_nodes[id].Selected = true; |
| | | selectedObjs.Add(dict_nodes[id]); |
| | | } |
| | | else if (dict_links.ContainsKey(id)) |
| | | { |
| | | dict_links[id].Selected = true; |
| | | selectedObjs.Add(dict_links[id]); |
| | | } |
| | | } |
| | | } |
| | | |
| | | bool _isSettingBackGroundPictur = false; |
| | | |
| | | |