cloudflight
2023-12-02 d67418d0cfd4ad37e56523a1628333b4388c2733
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace Hydro.Core.Model
{
    public class NodeModel : BaseModel
    {
        public NodeModel() { }
 
        public NodeModel(NodeModel model) : base(model)
        {
            this.X = model.X;
            this.Y = model.Y;
            this.Elev = model.Elev;
        }
        public virtual float X { get; set; }
 
        public virtual float Y { get; set; }
 
 
        /// <summary>
        /// 标高
        /// </summary>
        public virtual float Elev { get; set; }
 
 
 
        public virtual string ToCoorString()
        {
            return $"{ID}\t{X}\t{Y}";
        }
    }
    public class NodeCalcModel : NodeModel
    {
        public NodeCalcModel() { }
 
        public NodeCalcModel(NodeCalcModel model) : base(model)
        {
            this.X = model.X;
            this.Y = model.Y;
            this.Elev = model.Elev;
        }
        public List<LinkCalcModel> Links;
 
 
    }
}