개정판 6503fec8
dev issue #1229 : text, note modeling
Change-Id: Ided03f2e3c8fac466df60d746cb4f4ea78d37662
DTI_PID/APIDConverter/Model/PlantItem/Note.cs | ||
---|---|---|
54 | 54 |
{ |
55 | 55 |
double gap = 0.05; |
56 | 56 |
if (value < gap) |
57 |
{ |
|
57 | 58 |
value = 0; |
59 |
TextAngle = TextAngle.Degree0; |
|
60 |
} |
|
58 | 61 |
else if (1.57 - gap < value && value < 1.57 + gap) |
62 |
{ |
|
59 | 63 |
value = 90 * Math.PI / 180; |
64 |
TextAngle = TextAngle.Degree90; |
|
65 |
} |
|
60 | 66 |
else if (3.14 - gap < value && value < 3.14 + gap) |
67 |
{ |
|
61 | 68 |
value = Math.PI; |
69 |
TextAngle = TextAngle.Degree180; |
|
70 |
} |
|
62 | 71 |
else if (4.71 - gap < value && value < 4.71 + gap) |
72 |
{ |
|
63 | 73 |
value = 270 * Math.PI / 180; |
74 |
TextAngle = TextAngle.Degree270; |
|
75 |
} |
|
64 | 76 |
|
65 | 77 |
_ANGLE = value; |
66 | 78 |
} |
... | ... | |
89 | 101 |
public double Y1 { get; set; } |
90 | 102 |
public double Y2 { get; set; } |
91 | 103 |
public string OWNER { get => _OWNER; set => _OWNER = value; } |
104 |
public AvevaLabelInfo Aveva { get; set; } |
|
105 |
public TextAngle TextAngle { get; set; } |
|
92 | 106 |
} |
93 | 107 |
} |
내보내기 Unified diff