hytos / DTI_PID / BaseModel / Model / Text.cs @ ea80efaa
이력 | 보기 | 이력해설 | 다운로드 (1.81 KB)
1 |
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 |
public class Text |
10 |
{ |
11 |
private string _UID; |
12 |
private string _OWNER; |
13 |
private string _ATTRIBUTEVALUE; |
14 |
private string _NAME; |
15 |
private string _LOCATION; |
16 |
private string _VALUE; |
17 |
private double _ANGLE; |
18 |
private string _WIDTH; |
19 |
private string _HEIGHT; |
20 |
private string _AREA; |
21 |
private SPPIDSymbolInfo _SPPID; |
22 |
private bool _ASSOCIATION; |
23 |
|
24 |
public string UID { get => _UID; set => _UID = value; } |
25 |
public string ATTRIBUTEVALUE { get => _ATTRIBUTEVALUE; set => _ATTRIBUTEVALUE = value; } |
26 |
public string NAME { get => _NAME; set => _NAME = value; } |
27 |
public string LOCATION { get => _LOCATION; set => _LOCATION = value; } |
28 |
public string VALUE { get => _VALUE; set => _VALUE = value; } |
29 |
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 |
public string WIDTH { get => _WIDTH; set => _WIDTH = value; } |
48 |
public string HEIGHT { get => _HEIGHT; set => _HEIGHT = value; } |
49 |
public string AREA { get => _AREA; set => _AREA = value; } |
50 |
public SPPIDSymbolInfo SPPID { get => _SPPID; set => _SPPID = value; } |
51 |
public bool ASSOCIATION { get => _ASSOCIATION; set => _ASSOCIATION = value; } |
52 |
public string OWNER { get => _OWNER; set => _OWNER = value; } |
53 |
} |
54 |
} |