管道基础大数据平台系统开发-【CS】-ExportMap
OK
13693261870
2024-09-27 566e0d21293a5fe6423fd7a16541bce00eeb2e38
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
51
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
 
namespace JiangSu.Models
{
    public class Img
    {
        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; }
 
        public string path { set; get; }
 
        public string json { set; get; }
 
        public double x { set; get; }
 
        public double y { set; get; }
 
        public double z { set; get; }
    }
}