管道基础大数据平台系统开发-【CS】-ExportMap
OK
13693261870
2024-09-27 566e0d21293a5fe6423fd7a16541bce00eeb2e38
JiangSu/Models/Img.cs
@@ -9,6 +9,31 @@
    {
        public Img() { }
        public Img(string name, string path, string json)
        {
            this.name = name;
            this.path = path;
            this.json = json;
        }
        public Img(string name, string path, string json, double x, double y, double z)
        {
            this.name = name;
            this.path = path;
            this.json = json;
            this.x = x;
            this.y = y;
            this.z = z;
        }
        public void SetXYZ(string x, string y, string z)
        {
            double val = 0;
            if (double.TryParse(x, out val)) this.x = val;
            if (double.TryParse(y, out val)) this.y = val;
            if (double.TryParse(z, out val)) this.z = val;
        }
        public long id { set; get; }
        public string name { set; get; }