b311480e |
1 | // Created on: 1998-02-16 |
2 | // Created by: Jing Cheng MEI |
3 | // Copyright (c) 1998-1999 Matra Datavision |
973c2be1 |
4 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
5 | // |
973c2be1 |
6 | // This file is part of Open CASCADE Technology software library. |
b311480e |
7 | // |
973c2be1 |
8 | // This library is free software; you can redistribute it and / or modify it |
9 | // under the terms of the GNU Lesser General Public version 2.1 as published |
10 | // by the Free Software Foundation, with special exception defined in the file |
11 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
12 | // distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
13 | // |
973c2be1 |
14 | // Alternatively, this file may be used under the terms of Open CASCADE |
15 | // commercial license or contractual agreement. |
b311480e |
16 | |
7fd59977 |
17 | // modified Sergey Zaritchny |
18 | |
19 | //======================================================================= |
20 | //function : Signature |
21 | //purpose : |
22 | //======================================================================= |
23 | |
24 | inline void PDataXtd_PatternStd::Signature(const Standard_Integer signature) |
25 | { |
26 | mySignature = signature; |
27 | } |
28 | |
29 | //======================================================================= |
30 | //function : Axis1Reversed |
31 | //purpose : |
32 | //======================================================================= |
33 | |
34 | inline void PDataXtd_PatternStd::Axis1Reversed(const Standard_Boolean Axis1Reversed) |
35 | { |
36 | myAxis1Reversed = Axis1Reversed; |
37 | } |
38 | |
39 | //======================================================================= |
40 | //function : Axis2Reversed |
41 | //purpose : |
42 | //======================================================================= |
43 | |
44 | inline void PDataXtd_PatternStd::Axis2Reversed(const Standard_Boolean Axis2Reversed) |
45 | { |
46 | myAxis2Reversed = Axis2Reversed; |
47 | } |
48 | //======================================================================= |
49 | //function : Axis1 |
50 | //purpose : |
51 | //======================================================================= |
52 | |
53 | inline void PDataXtd_PatternStd::Axis1(const Handle(PNaming_NamedShape)& Axis1) |
54 | { |
55 | myAxis1 = Axis1; |
56 | } |
57 | |
58 | //======================================================================= |
59 | //function : Axis2 |
60 | //purpose : |
61 | //======================================================================= |
62 | |
63 | inline void PDataXtd_PatternStd::Axis2(const Handle(PNaming_NamedShape)& Axis2) |
64 | { |
65 | myAxis2 = Axis2; |
66 | } |
67 | |
68 | //======================================================================= |
69 | //function : Value1 |
70 | //purpose : |
71 | //======================================================================= |
72 | |
73 | inline void PDataXtd_PatternStd::Value1(const Handle(PDataStd_Real)& Value1) |
74 | { |
75 | myValue1 = Value1; |
76 | } |
77 | |
78 | //======================================================================= |
79 | //function : Value2 |
80 | //purpose : |
81 | //======================================================================= |
82 | |
83 | inline void PDataXtd_PatternStd::Value2(const Handle(PDataStd_Real)& Value2) |
84 | { |
85 | myValue2 = Value2; |
86 | } |
87 | |
88 | //======================================================================= |
89 | //function : NbInstances1 |
90 | //purpose : |
91 | //======================================================================= |
92 | |
93 | inline void PDataXtd_PatternStd::NbInstances1(const Handle(PDataStd_Integer)& NbInstances1) |
94 | { |
95 | myNb1 = NbInstances1; |
96 | } |
97 | |
98 | //======================================================================= |
99 | //function : NbInstances2 |
100 | //purpose : |
101 | //======================================================================= |
102 | |
103 | inline void PDataXtd_PatternStd::NbInstances2(const Handle(PDataStd_Integer)& NbInstances2) |
104 | { |
105 | myNb2 = NbInstances2; |
106 | } |
107 | |
108 | //======================================================================= |
109 | //function : Mirror |
110 | //purpose : |
111 | //======================================================================= |
112 | |
113 | inline void PDataXtd_PatternStd::Mirror(const Handle(PNaming_NamedShape)& plane) |
114 | { |
115 | myMirror = plane; |
116 | } |
117 | |
118 | //======================================================================= |
119 | //function : Signature |
120 | //purpose : |
121 | //======================================================================= |
122 | |
123 | inline Standard_Integer PDataXtd_PatternStd::Signature() const |
124 | { |
125 | return mySignature; |
126 | } |
127 | |
128 | //======================================================================= |
129 | //function : Axis1Reversed |
130 | //purpose : |
131 | //======================================================================= |
132 | |
133 | inline Standard_Boolean PDataXtd_PatternStd::Axis1Reversed() const |
134 | { |
135 | return myAxis1Reversed; |
136 | } |
137 | |
138 | |
139 | //======================================================================= |
140 | //function : Axis2Reversed |
141 | //purpose : |
142 | //======================================================================= |
143 | |
144 | inline Standard_Boolean PDataXtd_PatternStd::Axis2Reversed() const |
145 | { |
146 | return myAxis2Reversed; |
147 | } |
148 | |
149 | //======================================================================= |
150 | //function : Axis1 |
151 | //purpose : |
152 | //======================================================================= |
153 | |
154 | inline Handle(PNaming_NamedShape) PDataXtd_PatternStd::Axis1() const |
155 | { |
156 | return myAxis1; |
157 | } |
158 | |
159 | //======================================================================= |
160 | //function : Axis2 |
161 | //purpose : |
162 | //======================================================================= |
163 | |
164 | inline Handle(PNaming_NamedShape) PDataXtd_PatternStd::Axis2() const |
165 | { |
166 | return myAxis2; |
167 | } |
168 | |
169 | //======================================================================= |
170 | //function : Value1 |
171 | //purpose : |
172 | //======================================================================= |
173 | |
174 | inline Handle(PDataStd_Real) PDataXtd_PatternStd::Value1() const |
175 | { |
176 | return myValue1; |
177 | } |
178 | |
179 | //======================================================================= |
180 | //function : Value2 |
181 | //purpose : |
182 | //======================================================================= |
183 | |
184 | inline Handle(PDataStd_Real) PDataXtd_PatternStd::Value2() const |
185 | { |
186 | return myValue2; |
187 | } |
188 | |
189 | //======================================================================= |
190 | //function : NbInstances1 |
191 | //purpose : |
192 | //======================================================================= |
193 | |
194 | inline Handle(PDataStd_Integer) PDataXtd_PatternStd::NbInstances1() const |
195 | { |
196 | return myNb1; |
197 | } |
198 | |
199 | //======================================================================= |
200 | //function : NbInstances2 |
201 | //purpose : |
202 | //======================================================================= |
203 | |
204 | inline Handle(PDataStd_Integer) PDataXtd_PatternStd::NbInstances2() const |
205 | { |
206 | return myNb2; |
207 | } |
208 | |
209 | //======================================================================= |
210 | //function : Mirror |
211 | //purpose : |
212 | //======================================================================= |
213 | |
214 | inline Handle(PNaming_NamedShape) PDataXtd_PatternStd::Mirror() const |
215 | { |
216 | return myMirror; |
217 | } |
218 | |