hytos / DTI_PID / SPPIDConverter / BaseModel / Symbol.cs @ a3d79d30
이력 | 보기 | 이력해설 | 다운로드 (3.44 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 Symbol |
10 | 96a2080c | gaqhf | { |
11 | 60244a8b | gaqhf | private string _UID; |
12 | 30d2cfcc | gaqhf | private string _DBUID; |
13 | 60244a8b | gaqhf | private string _NAME; |
14 | private List<Association> _ASSOCIATIONS = new List<Association>(); |
||
15 | private string _TYPE; |
||
16 | private string _OWNER; |
||
17 | private string _ORIGINALPOINT; |
||
18 | private List<Connector> _CONNECTOR = new List<Connector>(); |
||
19 | private string _CONNECTIONPOINT; |
||
20 | private string _LOCATION; |
||
21 | private string _SIZE; |
||
22 | private double _ANGLE; |
||
23 | private string _PARENT; |
||
24 | private string _CHILD; |
||
25 | private string _HASINSTRUMENTLABEL; |
||
26 | private string _AREA; |
||
27 | private int _FLIP; |
||
28 | private List<Property> _PROPERTIES = new List<Property>(); |
||
29 | private List<Attribute> _ATTRIBUTES = new List<Attribute>(); |
||
30 | private int _CURRENTPOINTMODEINDEX; |
||
31 | aadf6821 | gaqhf | private List<ChildSymbol> _ChildSymbols = new List<ChildSymbol>(); |
32 | 39a2a688 | gaqhf | private SPPIDSymbolInfo _SPPID; |
33 | 60244a8b | gaqhf | |
34 | public string UID { get => _UID; set => _UID = value; } |
||
35 | public string NAME { get => _NAME; set => _NAME = value; } |
||
36 | public List<Association> ASSOCIATIONS { get => _ASSOCIATIONS; set => _ASSOCIATIONS = value; } |
||
37 | public string TYPE { get => _TYPE; set => _TYPE = value; } |
||
38 | public string OWNER { get => _OWNER; set => _OWNER = value; } |
||
39 | public string ORIGINALPOINT { get => _ORIGINALPOINT; set => _ORIGINALPOINT = value; } |
||
40 | public List<Connector> CONNECTORS { get => _CONNECTOR; set => _CONNECTOR = value; } |
||
41 | public string CONNECTIONPOINT { get => _CONNECTIONPOINT; set => _CONNECTIONPOINT = value; } |
||
42 | public string LOCATION { get => _LOCATION; set => _LOCATION = value; } |
||
43 | public string SIZE { get => _SIZE; set => _SIZE = value; } |
||
44 | 20f3fb3a | gaqhf | public double ANGLE |
45 | { |
||
46 | get |
||
47 | { |
||
48 | return _ANGLE; |
||
49 | } |
||
50 | set |
||
51 | { |
||
52 | 912a05b0 | gaqhf | double gap = 0.05; |
53 | if (value < gap) |
||
54 | value = 0; |
||
55 | else if (1.57 - gap < value && value < 1.57 + gap) |
||
56 | da0d704e | gaqhf | value = 90 * Math.PI / 180; |
57 | 912a05b0 | gaqhf | else if (3.14 - gap < value && value < 3.14 + gap) |
58 | 20f3fb3a | gaqhf | value = Math.PI; |
59 | 912a05b0 | gaqhf | else if (4.71 - gap < value && value < 4.71 + gap) |
60 | da0d704e | gaqhf | value = 270 * Math.PI / 180; |
61 | 20f3fb3a | gaqhf | |
62 | da0d704e | gaqhf | value = -1 * value; |
63 | 20f3fb3a | gaqhf | _ANGLE = value; |
64 | } |
||
65 | } |
||
66 | 60244a8b | gaqhf | public string PARENT { get => _PARENT; set => _PARENT = value; } |
67 | public string CHILD { get => _CHILD; set => _CHILD = value; } |
||
68 | public string HASINSTRUMENTLABEL { get => _HASINSTRUMENTLABEL; set => _HASINSTRUMENTLABEL = value; } |
||
69 | public string AREA { get => _AREA; set => _AREA = value; } |
||
70 | public int FLIP { get => _FLIP; set => _FLIP = value; } |
||
71 | public List<Property> PROPERTIES { get => _PROPERTIES; set => _PROPERTIES = value; } |
||
72 | public List<Attribute> ATTRIBUTES { get => _ATTRIBUTES; set => _ATTRIBUTES = value; } |
||
73 | public int CURRENTPOINTMODEINDEX { get => _CURRENTPOINTMODEINDEX; set => _CURRENTPOINTMODEINDEX = value; } |
||
74 | aadf6821 | gaqhf | public List<ChildSymbol> ChildSymbols { get => _ChildSymbols; set => _ChildSymbols = value; } |
75 | 30d2cfcc | gaqhf | public string DBUID { get => _DBUID; set => _DBUID = value; } |
76 | 39a2a688 | gaqhf | public SPPIDSymbolInfo SPPID { get => _SPPID; set => _SPPID = value; } |
77 | 96a2080c | gaqhf | } |
78 | } |