0024157: Parallelization of assembly part of BO
[occt.git] / src / ShapeUpgrade / ShapeUpgrade_ShapeConvertToBezier.lxx
1 // Created on: 1999-06-22
2 // Created by: data exchange team
3 // Copyright (c) 1999-1999 Matra Datavision
4 // Copyright (c) 1999-2012 OPEN CASCADE SAS
5 //
6 // The content of this file is subject to the Open CASCADE Technology Public
7 // License Version 6.5 (the "License"). You may not use the content of this file
8 // except in compliance with the License. Please obtain a copy of the License
9 // at http://www.opencascade.org and read it completely before using this file.
10 //
11 // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12 // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13 //
14 // The Original Code and all software distributed under the License is
15 // distributed on an "AS IS" basis, without warranty of any kind, and the
16 // Initial Developer hereby disclaims all such warranties, including without
17 // limitation, any warranties of merchantability, fitness for a particular
18 // purpose or non-infringement. Please see the License for the specific terms
19 // and conditions governing the rights and limitations under the License.
20
21
22 //=======================================================================
23 //function : Set2dConversion
24 //purpose  : 
25 //=======================================================================
26
27 inline void ShapeUpgrade_ShapeConvertToBezier::Set2dConversion(const Standard_Boolean mode)
28 {
29   my2dMode = mode;
30 }
31
32 //=======================================================================
33 //function : Get2dConversion
34 //purpose  : 
35 //=======================================================================
36
37 inline Standard_Boolean ShapeUpgrade_ShapeConvertToBezier::Get2dConversion() const
38 {
39   return my2dMode;
40 }
41
42 //=======================================================================
43 //function : Set3dConversion
44 //purpose  : 
45 //=======================================================================
46
47 inline void ShapeUpgrade_ShapeConvertToBezier::Set3dConversion(const Standard_Boolean mode)
48 {
49   my3dMode = mode;
50 }
51
52 //=======================================================================
53 //function : Get3dConversion
54 //purpose  : 
55 //=======================================================================
56
57 inline Standard_Boolean ShapeUpgrade_ShapeConvertToBezier::Get3dConversion() const
58 {
59   return my3dMode;
60 }
61
62 //=======================================================================
63 //function : SetSurfaceConversion
64 //purpose  : 
65 //=======================================================================
66
67 inline void ShapeUpgrade_ShapeConvertToBezier::SetSurfaceConversion(const Standard_Boolean mode)
68 {
69   mySurfaceMode = mode;
70 }
71
72 //=======================================================================
73 //function : GetSurfaceConversion
74 //purpose  : 
75 //=======================================================================
76
77 inline Standard_Boolean ShapeUpgrade_ShapeConvertToBezier::GetSurfaceConversion() const
78 {
79   return mySurfaceMode;
80 }
81
82 //=======================================================================
83 //function : Set3dLineConversion
84 //purpose  : 
85 //=======================================================================
86
87 inline void ShapeUpgrade_ShapeConvertToBezier::Set3dLineConversion(const Standard_Boolean mode)
88 {
89   my3dLineMode = mode;
90 }
91
92 //=======================================================================
93 //function : Get3dLineConversion
94 //purpose  : 
95 //=======================================================================
96
97 inline Standard_Boolean ShapeUpgrade_ShapeConvertToBezier::Get3dLineConversion() const
98 {
99   return my3dLineMode;
100 }
101
102 //=======================================================================
103 //function : Set3dCircleConversion
104 //purpose  : 
105 //=======================================================================
106
107 inline void ShapeUpgrade_ShapeConvertToBezier::Set3dCircleConversion(const Standard_Boolean mode)
108 {
109   my3dCircleMode = mode;
110 }
111
112 //=======================================================================
113 //function : Get3dCircleConversion
114 //purpose  : 
115 //=======================================================================
116
117 inline Standard_Boolean ShapeUpgrade_ShapeConvertToBezier::Get3dCircleConversion() const
118 {
119   return my3dCircleMode;
120 }
121
122 //=======================================================================
123 //function : Set3dConicConversion
124 //purpose  : 
125 //=======================================================================
126
127 inline void ShapeUpgrade_ShapeConvertToBezier::Set3dConicConversion(const Standard_Boolean mode)
128 {
129   my3dConicMode = mode;
130 }
131
132 //=======================================================================
133 //function : Get3dConicConversion
134 //purpose  : 
135 //=======================================================================
136
137 inline Standard_Boolean ShapeUpgrade_ShapeConvertToBezier::Get3dConicConversion() const
138 {
139   return my3dConicMode;
140 }
141
142 //=======================================================================
143 //function : SetPlaneMode
144 //purpose  : 
145 //=======================================================================
146
147 inline void ShapeUpgrade_ShapeConvertToBezier::SetPlaneMode(const Standard_Boolean mode)
148 {
149   myPlaneMode = mode;
150 }
151
152 //=======================================================================
153 //function : GetPlaneMode
154 //purpose  : 
155 //=======================================================================
156
157 inline Standard_Boolean ShapeUpgrade_ShapeConvertToBezier::GetPlaneMode() const
158 {
159   return myPlaneMode;
160 }
161
162 //=======================================================================
163 //function : SetRevolutionMode
164 //purpose  : 
165 //=======================================================================
166
167 inline void ShapeUpgrade_ShapeConvertToBezier::SetRevolutionMode(const Standard_Boolean mode)
168 {
169   myRevolutionMode = mode;
170 }
171
172 //=======================================================================
173 //function : GetRevolutionMode
174 //purpose  : 
175 //=======================================================================
176
177 inline Standard_Boolean ShapeUpgrade_ShapeConvertToBezier::GetRevolutionMode() const
178 {
179   return myRevolutionMode;
180 }
181
182 //=======================================================================
183 //function : SetExtrusionMode
184 //purpose  : 
185 //=======================================================================
186
187 inline void ShapeUpgrade_ShapeConvertToBezier::SetExtrusionMode(const Standard_Boolean mode)
188 {
189   myExtrusionMode = mode;
190 }
191
192 //=======================================================================
193 //function : GetExtrusionMode
194 //purpose  : 
195 //=======================================================================
196
197 inline Standard_Boolean ShapeUpgrade_ShapeConvertToBezier::GetExtrusionMode() const
198 {
199   return myExtrusionMode;
200 }
201
202 //=======================================================================
203 //function : SetBSplineMode
204 //purpose  : 
205 //=======================================================================
206
207 inline void ShapeUpgrade_ShapeConvertToBezier::SetBSplineMode(const Standard_Boolean mode)
208 {
209   myBSplineMode = mode;
210 }
211
212 //=======================================================================
213 //function : GetBSplineMode
214 //purpose  : 
215 //=======================================================================
216
217 inline Standard_Boolean ShapeUpgrade_ShapeConvertToBezier::GetBSplineMode() const
218 {
219   return myBSplineMode;
220 }