| | |
| | | using Yw.WinFrmUI.Q3D; |
| | | using Newtonsoft.Json; |
| | | using Newtonsoft.Json; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using static Yw.WinFrmUI.Q3D.MapViewEnum; |
| | | using Yw.WinFrmUI.Q3d; |
| | | using static Yw.WinFrmUI.Q3d.MapViewEnum; |
| | | |
| | | namespace Yw.WinFrmUI.Q3D |
| | | namespace Yw.WinFrmUI.Q3d |
| | | { |
| | | [Serializable] |
| | | public class Area : BaseModel, IBaseViewModel |
| | | public class Area : Q3DBaseModel, IBaseViewModel |
| | | { |
| | | public List<PointF> Points { get; set; } |
| | | |
| | |
| | | //[Editor(typeof(MyEditor), typeof(UITypeEditor))] |
| | | //public TagList Tags { get; set; } = null; |
| | | |
| | | |
| | | |
| | | |
| | | public MapObjectType GetTypeString() |
| | | { |
| | |
| | | if (this is TankViewModel) return MapObjectType.水池; |
| | | if (this is MeterViewModel) return MapObjectType.水表; |
| | | if (this is NozzleViewModel) return MapObjectType.喷头; |
| | | |
| | | |
| | | |
| | | if (this is PipeViewModel) return MapObjectType.管线; |
| | | if (this is ValveViewModel) return MapObjectType.阀门; |
| | | |
| | | |
| | | if (this is PumpViewModel) return MapObjectType.水泵; |
| | | |
| | | |
| | | |
| | | return MapObjectType.节点; |
| | | } |