| | |
| | | using Hydro.Core.Model; |
| | | using Yw.WinFrmUI.Q3D; |
| | | using Newtonsoft.Json; |
| | | using System; |
| | | using System.Collections.Generic; |
| | |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using static Hydro.MapView.MapViewEnum; |
| | | using static Yw.WinFrmUI.Q3D.MapViewEnum; |
| | | |
| | | namespace Hydro.MapView.Base |
| | | namespace Yw.WinFrmUI.Q3D |
| | | { |
| | | [Serializable] |
| | | public class Area : BaseModel, IBaseViewModel |
| | | public class Area : Q3DBaseModel, IBaseViewModel |
| | | { |
| | | public List<PointF> Points { get; set; } |
| | | |
| | |
| | | [Description("标高")] |
| | | [DisplayName("标高")] |
| | | [Browsable(true)] |
| | | public float Elev { get; set; } |
| | | public float Z { get; set; } |
| | | |
| | | [Category("其他参数")] |
| | | [Description("对象的等级")] |
| | |
| | | public string IDType => Type.ToString() + "\t" + ID; |
| | | |
| | | |
| | | [Category("其他参数")] |
| | | [Description("标签")] |
| | | [DisplayName("标签")] |
| | | [Editor(typeof(MyEditor), typeof(UITypeEditor))] |
| | | public TagList Tags { get; set; } = null; |
| | | //[Category("其他参数")] |
| | | //[Description("标签")] |
| | | //[DisplayName("标签")] |
| | | //[Editor(typeof(MyEditor), typeof(UITypeEditor))] |
| | | //public TagList Tags { get; set; } = null; |
| | | |
| | | |
| | | |
| | |
| | | if (this is TankViewModel) return MapObjectType.水池; |
| | | if (this is MeterViewModel) return MapObjectType.水表; |
| | | if (this is NozzleViewModel) return MapObjectType.喷头; |
| | | if (this is ValveNodeViewModel) return MapObjectType.阀门点; |
| | | |
| | | |
| | | |
| | | if (this is PipeViewModel) return MapObjectType.管线; |
| | | if (this is ValveViewModel) return MapObjectType.阀门; |
| | | if (this is RepeaterViewModel) return MapObjectType.重复器; |
| | | |
| | | if (this is PumpViewModel) return MapObjectType.水泵; |
| | | if (this is PumpNodeViewModel) return MapObjectType.水泵点; |
| | | |
| | | |
| | | return MapObjectType.节点; |
| | | } |