프로젝트

일반

사용자정보

통계
| 브랜치(Branch): | 개정판:

hytos / DTI_PID / BaseModel / Model / LineNumber.cs @ 20f3fb3a

이력 | 보기 | 이력해설 | 다운로드 (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 LineNumber
10
    {
11
        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
        private List<LineRun> _RUNS = new List<LineRun>();
19
        private List<Property> _PROPERTIES = new List<Property>();
20
        private List<Attribute> _ATTRIBUTES = new List<Attribute>();
21
        private SPPIDSymbolInfo _SPPID;
22
        public string UID { get => _UID; set => _UID = value; }
23
        public string TEXT { get => _TEXT; set => _TEXT = value; }
24
        public string LOCATION { get => _LOCATION; set => _LOCATION = value; }
25
        public string WIDTH { get => _WIDTH; set => _WIDTH = value; }
26
        public string HEIGHT { get => _HEIGHT; set => _HEIGHT = value; }
27
        public double ANGLE
28
        {
29
            get
30
            {
31
                return _ANGLE;
32
            }
33
            set
34
            {
35
                if (value == 1.57)
36
                    value = 90 * Math.PI / 180;
37
                else if (value == 3.14)
38
                    value = Math.PI;
39
                else if (value == 4.71)
40
                    value = 270 * Math.PI / 180;
41

    
42
                _ANGLE = value;
43
            }
44
        }
45
        public string AREA { get => _AREA; set => _AREA = value; }
46
        public List<LineRun> RUNS { get => _RUNS; set => _RUNS = value; }
47
        public List<Property> PROPERTIES { get => _PROPERTIES; set => _PROPERTIES = value; }
48
        public List<Attribute> ATTRIBUTES { get => _ATTRIBUTES; set => _ATTRIBUTES = value; }
49
        public SPPIDSymbolInfo SPPID { get => _SPPID; set => _SPPID = value; }
50
    }
51
}
클립보드 이미지 추가 (최대 크기: 500 MB)