b311480e |
1 | // Copyright (c) 1999-2012 OPEN CASCADE SAS |
2 | // |
3 | // The content of this file is subject to the Open CASCADE Technology Public |
4 | // License Version 6.5 (the "License"). You may not use the content of this file |
5 | // except in compliance with the License. Please obtain a copy of the License |
6 | // at http://www.opencascade.org and read it completely before using this file. |
7 | // |
8 | // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its |
9 | // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. |
10 | // |
11 | // The Original Code and all software distributed under the License is |
12 | // distributed on an "AS IS" basis, without warranty of any kind, and the |
13 | // Initial Developer hereby disclaims all such warranties, including without |
14 | // limitation, any warranties of merchantability, fitness for a particular |
15 | // purpose or non-infringement. Please see the License for the specific terms |
16 | // and conditions governing the rights and limitations under the License. |
17 | |
7fd59977 |
18 | inline void Prs2d_Dimension::SetText(const TCollection_ExtendedString& aText) |
19 | { |
20 | myText = aText; |
21 | } |
22 | |
23 | inline void Prs2d_Dimension::SetTextScale(const Standard_Real aTS) |
24 | { |
25 | myTextScale = aTS; |
26 | } |
27 | |
28 | inline void Prs2d_Dimension::SetTextFont(const Standard_Integer aTF) |
29 | { |
30 | myTextFont = aTF; |
31 | } |
32 | |
33 | inline void Prs2d_Dimension::SetFontOfSymb(const Standard_Integer aFS) |
34 | { |
35 | mySymbFont = aFS; |
36 | } |
37 | |
38 | inline void Prs2d_Dimension::SetArrowType(const Prs2d_TypeOfArrow anArrT) |
39 | { |
40 | myArrType = anArrT; |
41 | } |
42 | |
43 | inline void Prs2d_Dimension::SetArrowSides(const Prs2d_ArrowSide anArrS) |
44 | { |
45 | myArrow = anArrS; |
46 | } |
47 | |
48 | inline void Prs2d_Dimension::DrawSymbol(const Standard_Boolean isDraw ) |
49 | { |
50 | myIsSymbol = isDraw; |
51 | } |
52 | |
53 | inline void Prs2d_Dimension::SetSymbolCode( const Standard_Integer aCode ) |
54 | { |
55 | mySymbCode = aCode; |
56 | } |
57 | |
58 | inline void Prs2d_Dimension::SetTextAbsAngle(const Standard_Real Ap) |
59 | { |
60 | myAbsAngle=Ap; |
61 | CalcTxtPos(Standard_True); |
62 | } |
63 | |
64 | inline void Prs2d_Dimension::SetTextAbsPos(const Standard_Real Xp, |
65 | const Standard_Real Yp) |
66 | { |
67 | myAbsX=Xp; |
68 | myAbsY=Yp; |
69 | CalcTxtPos(Standard_True); |
70 | } |
71 | |
72 | inline void Prs2d_Dimension::SetTextRelPos(const Standard_Real Xp, |
73 | const Standard_Real Yp) |
74 | { |
75 | myTextPosH=Xp; |
76 | myTextPosV=Yp; |
77 | CalcTxtPos(); |
78 | } |
79 | |
80 | inline void Prs2d_Dimension::SetTextRelAngle(const Standard_Real Ap) |
81 | { |
82 | myTextAngle=Ap; |
83 | CalcTxtPos(); |
84 | } |
85 | |
86 | inline TCollection_ExtendedString Prs2d_Dimension::Text() const |
87 | { |
88 | return myText; |
89 | } |
90 | |
91 | inline Standard_Real Prs2d_Dimension::TextRelH() const |
92 | { |
93 | return myTextPosH; |
94 | } |
95 | |
96 | inline Standard_Real Prs2d_Dimension::TextRelV() const |
97 | { |
98 | return myTextPosV; |
99 | } |
100 | |
101 | inline Standard_Real Prs2d_Dimension::TextRelAngle() const |
102 | { |
103 | return myTextAngle; |
104 | } |
105 | |
106 | |
107 | inline Standard_Real Prs2d_Dimension::TextAbsAngle() const |
108 | { |
109 | return myAbsAngle; |
110 | } |
111 | |
112 | inline Standard_Real Prs2d_Dimension::TextAbsX() const |
113 | { |
114 | return myAbsX; |
115 | } |
116 | |
117 | inline Standard_Real Prs2d_Dimension::TextAbsY() const |
118 | { |
119 | return myAbsY; |
120 | } |
121 | |
122 | inline Standard_Real Prs2d_Dimension::TextScale() const |
123 | { |
124 | return myTextScale; |
125 | } |
126 | |
127 | inline Standard_Integer Prs2d_Dimension::TextFont() const |
128 | { |
129 | return myTextFont; |
130 | } |
131 | |
132 | inline Standard_Integer Prs2d_Dimension::FontOfSymb() const |
133 | { |
134 | return mySymbFont; |
135 | } |
136 | |
137 | inline Prs2d_TypeOfArrow Prs2d_Dimension::ArrowType() const |
138 | { |
139 | return myArrType; |
140 | } |
141 | |
142 | inline Prs2d_ArrowSide Prs2d_Dimension::ArrowSides() const |
143 | { |
144 | return myArrow; |
145 | } |
146 | |
147 | inline Standard_Real Prs2d_Dimension::ArrowAngle() const |
148 | { |
149 | return myArrowAng; |
150 | } |
151 | |
152 | inline Standard_Real Prs2d_Dimension::ArrowLength() const |
153 | { |
154 | return myArrowLen; |
155 | } |
156 | |
157 | inline Standard_Boolean Prs2d_Dimension::ArrowIsReversed() const |
158 | { |
159 | return myIsRevArr; |
160 | } |
161 | |
162 | inline Standard_Boolean Prs2d_Dimension::IsDrawSymbol() const |
163 | { |
164 | return myIsSymbol; |
165 | } |
166 | |
167 | inline Standard_Integer Prs2d_Dimension::SymbolCode() const |
168 | { |
169 | return mySymbCode; |
170 | } |
171 | |