hytos / DTI_PID / SPPIDConverter / BaseModel / LineNumber.cs @ a31a512e
이력 | 보기 | 이력해설 | 다운로드 (2.59 KB)
1 | 96a2080c | gaqhf | using System; |
---|---|---|---|
2 | using System.Collections.Generic; |
||
3 | using System.Linq; |
||
4 | using System.Text; |
||
5 | using System.Threading.Tasks; |
||
6 | |||
7 | namespace Converter.BaseModel |
||
8 | { |
||
9 | aadf6821 | gaqhf | public class LineNumber |
10 | 96a2080c | gaqhf | { |
11 | 60244a8b | gaqhf | private string _UID; |
12 | private string _TEXT; |
||
13 | private string _LOCATION; |
||
14 | private string _WIDTH; |
||
15 | private string _HEIGHT; |
||
16 | private double _ANGLE; |
||
17 | private string _AREA; |
||
18 | f4880c6a | gaqhf | private string _CONNLINE; |
19 | 1a3a74a8 | gaqhf | private string _SCENE; |
20 | 8aa6f2db | gaqhf | private List<LineRun> _RUNS = new List<LineRun>(); |
21 | 60244a8b | gaqhf | private List<Property> _PROPERTIES = new List<Property>(); |
22 | private List<Attribute> _ATTRIBUTES = new List<Attribute>(); |
||
23 | 10872260 | gaqhf | private SPPIDSymbolInfo _SPPID; |
24 | 60244a8b | gaqhf | public string UID { get => _UID; set => _UID = value; } |
25 | public string TEXT { get => _TEXT; set => _TEXT = value; } |
||
26 | public string LOCATION { get => _LOCATION; set => _LOCATION = value; } |
||
27 | public string WIDTH { get => _WIDTH; set => _WIDTH = value; } |
||
28 | public string HEIGHT { get => _HEIGHT; set => _HEIGHT = value; } |
||
29 | 20f3fb3a | gaqhf | public double ANGLE |
30 | { |
||
31 | get |
||
32 | { |
||
33 | return _ANGLE; |
||
34 | } |
||
35 | set |
||
36 | { |
||
37 | if (value == 1.57) |
||
38 | value = 90 * Math.PI / 180; |
||
39 | else if (value == 3.14) |
||
40 | value = Math.PI; |
||
41 | else if (value == 4.71) |
||
42 | value = 270 * Math.PI / 180; |
||
43 | |||
44 | _ANGLE = value; |
||
45 | } |
||
46 | } |
||
47 | 60244a8b | gaqhf | public string AREA { get => _AREA; set => _AREA = value; } |
48 | 8aa6f2db | gaqhf | public List<LineRun> RUNS { get => _RUNS; set => _RUNS = value; } |
49 | 60244a8b | gaqhf | public List<Property> PROPERTIES { get => _PROPERTIES; set => _PROPERTIES = value; } |
50 | public List<Attribute> ATTRIBUTES { get => _ATTRIBUTES; set => _ATTRIBUTES = value; } |
||
51 | 10872260 | gaqhf | public SPPIDSymbolInfo SPPID { get => _SPPID; set => _SPPID = value; } |
52 | f4880c6a | gaqhf | public string CONNLINE { get => _CONNLINE; set => _CONNLINE = value; } |
53 | 1a3a74a8 | gaqhf | |
54 | public string SCENE |
||
55 | { |
||
56 | get |
||
57 | { |
||
58 | return _SCENE; |
||
59 | } |
||
60 | set |
||
61 | { |
||
62 | string[] split = value.Split(','); |
||
63 | X1 = Convert.ToDouble(split[0]); |
||
64 | Y1 = Convert.ToDouble(split[1]); |
||
65 | X2 = X1 + Convert.ToDouble(split[2]); |
||
66 | Y2 = Y1 + Convert.ToDouble(split[3]); |
||
67 | } |
||
68 | } |
||
69 | public double X1 { get; set; } |
||
70 | public double X2 { get; set; } |
||
71 | public double Y1 { get; set; } |
||
72 | public double Y2 { get; set; } |
||
73 | |||
74 | public SPPIDLabelLocationInfo SPPIDLabelLocation { get; set; } |
||
75 | 96a2080c | gaqhf | } |
76 | } |