프로젝트

일반

사용자정보

통계
| 개정판:

hytos / DTI_PID / APIDConverter / Model / PlantItem / Symbol.cs @ 9c79ce3c

이력 | 보기 | 이력해설 | 다운로드 (3.64 KB)

1 4e320fcb gaqhf
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Threading.Tasks;
6
7
namespace AVEVA.PID.CustomizationUtility.Model
8
{
9
    public class Symbol : PlantItem
10
    {
11 5aec7e24 gaqhf
        private string _DBUID;
12
        private string _NAME;
13
        private List<Association> _ASSOCIATIONS = new List<Association>();
14
        private string _TYPE;
15
        private string _OWNER;
16
        private string _ORIGINALPOINT;
17
        private List<Connector> _CONNECTOR = new List<Connector>();
18
        private string _CONNECTIONPOINT;
19
        private string _LOCATION;
20
        private string _SIZE;
21
        private double _ANGLE;
22
        private string _PARENT;
23
        private string _CHILD;
24
        private string _HASINSTRUMENTLABEL;
25
        private string _AREA;
26
        private int _FLIP;
27
        private List<Property> _PROPERTIES = new List<Property>();
28
        private List<Attribute> _ATTRIBUTES = new List<Attribute>();
29
        private int _CURRENTPOINTMODEINDEX;
30
        private List<ChildSymbol> _ChildSymbols = new List<ChildSymbol>();
31 4e320fcb gaqhf
32 5aec7e24 gaqhf
        public string NAME { get => _NAME; set => _NAME = value; }
33
        public List<Association> ASSOCIATIONS { get => _ASSOCIATIONS; set => _ASSOCIATIONS = value; }
34
        public string TYPE { get => _TYPE; set => _TYPE = value; }
35
        public string OWNER { get => _OWNER; set => _OWNER = value; }
36 b90890eb gaqhf
        public string ORIGINALPOINT
37
        {
38
            get
39
            {
40
                return _ORIGINALPOINT;
41
            }
42
            set
43
            {
44
                _ORIGINALPOINT = value;
45
                double x = 0, y = 0;
46
                APIDUtils.ConvertPointBystring(_ORIGINALPOINT, ref x, ref y);
47
                X = x;
48
                Y = y;
49
            }
50
        }
51 5aec7e24 gaqhf
        public List<Connector> CONNECTORS { get => _CONNECTOR; set => _CONNECTOR = value; }
52
        public string CONNECTIONPOINT { get => _CONNECTIONPOINT; set => _CONNECTIONPOINT = value; }
53
        public string LOCATION { get => _LOCATION; set => _LOCATION = value; }
54
        public string SIZE { get => _SIZE; set => _SIZE = value; }
55
        public double ANGLE
56
        {
57
            get
58
            {
59
                return _ANGLE;
60
            }
61
            set
62
            {
63
                double gap = 0.05;
64
                if (value < gap)
65
                    value = 0;
66
                else if (1.57 - gap < value && value < 1.57 + gap)
67
                    value = 90 * Math.PI / 180;
68
                else if (3.14 - gap < value && value < 3.14 + gap)
69
                    value = Math.PI;
70
                else if (4.71 - gap < value && value < 4.71 + gap)
71
                    value = 270 * Math.PI / 180;
72
73
                _ANGLE = value;
74
            }
75
        }
76
        public string PARENT { get => _PARENT; set => _PARENT = value; }
77
        public string CHILD { get => _CHILD; set => _CHILD = value; }
78
        public string HASINSTRUMENTLABEL { get => _HASINSTRUMENTLABEL; set => _HASINSTRUMENTLABEL = value; }
79
        public string AREA { get => _AREA; set => _AREA = value; }
80
        public int FLIP { get => _FLIP; set => _FLIP = value; }
81
        public List<Property> PROPERTIES { get => _PROPERTIES; set => _PROPERTIES = value; }
82
        public List<Attribute> ATTRIBUTES { get => _ATTRIBUTES; set => _ATTRIBUTES = value; }
83
        public int CURRENTPOINTMODEINDEX { get => _CURRENTPOINTMODEINDEX; set => _CURRENTPOINTMODEINDEX = value; }
84
        public List<ChildSymbol> ChildSymbols { get => _ChildSymbols; set => _ChildSymbols = value; }
85
        public string DBUID { get => _DBUID; set => _DBUID = value; }
86 b90890eb gaqhf
        public double X { get; set; }
87
        public double Y { get; set; }
88
        public AvevaSymbolInfo Aveva { get; set; }
89 4e320fcb gaqhf
    }
90
}
클립보드 이미지 추가 (최대 크기: 500 MB)