0026489: The class ShapeUpgrade_UnifySameDomain provides the results that are wrong...
[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-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License 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.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 //=======================================================================
18 //function : Set2dConversion
19 //purpose  : 
20 //=======================================================================
21
22 inline void ShapeUpgrade_ShapeConvertToBezier::Set2dConversion(const Standard_Boolean mode)
23 {
24   my2dMode = mode;
25 }
26
27 //=======================================================================
28 //function : Get2dConversion
29 //purpose  : 
30 //=======================================================================
31
32 inline Standard_Boolean ShapeUpgrade_ShapeConvertToBezier::Get2dConversion() const
33 {
34   return my2dMode;
35 }
36
37 //=======================================================================
38 //function : Set3dConversion
39 //purpose  : 
40 //=======================================================================
41
42 inline void ShapeUpgrade_ShapeConvertToBezier::Set3dConversion(const Standard_Boolean mode)
43 {
44   my3dMode = mode;
45 }
46
47 //=======================================================================
48 //function : Get3dConversion
49 //purpose  : 
50 //=======================================================================
51
52 inline Standard_Boolean ShapeUpgrade_ShapeConvertToBezier::Get3dConversion() const
53 {
54   return my3dMode;
55 }
56
57 //=======================================================================
58 //function : SetSurfaceConversion
59 //purpose  : 
60 //=======================================================================
61
62 inline void ShapeUpgrade_ShapeConvertToBezier::SetSurfaceConversion(const Standard_Boolean mode)
63 {
64   mySurfaceMode = mode;
65 }
66
67 //=======================================================================
68 //function : GetSurfaceConversion
69 //purpose  : 
70 //=======================================================================
71
72 inline Standard_Boolean ShapeUpgrade_ShapeConvertToBezier::GetSurfaceConversion() const
73 {
74   return mySurfaceMode;
75 }
76
77 //=======================================================================
78 //function : Set3dLineConversion
79 //purpose  : 
80 //=======================================================================
81
82 inline void ShapeUpgrade_ShapeConvertToBezier::Set3dLineConversion(const Standard_Boolean mode)
83 {
84   my3dLineMode = mode;
85 }
86
87 //=======================================================================
88 //function : Get3dLineConversion
89 //purpose  : 
90 //=======================================================================
91
92 inline Standard_Boolean ShapeUpgrade_ShapeConvertToBezier::Get3dLineConversion() const
93 {
94   return my3dLineMode;
95 }
96
97 //=======================================================================
98 //function : Set3dCircleConversion
99 //purpose  : 
100 //=======================================================================
101
102 inline void ShapeUpgrade_ShapeConvertToBezier::Set3dCircleConversion(const Standard_Boolean mode)
103 {
104   my3dCircleMode = mode;
105 }
106
107 //=======================================================================
108 //function : Get3dCircleConversion
109 //purpose  : 
110 //=======================================================================
111
112 inline Standard_Boolean ShapeUpgrade_ShapeConvertToBezier::Get3dCircleConversion() const
113 {
114   return my3dCircleMode;
115 }
116
117 //=======================================================================
118 //function : Set3dConicConversion
119 //purpose  : 
120 //=======================================================================
121
122 inline void ShapeUpgrade_ShapeConvertToBezier::Set3dConicConversion(const Standard_Boolean mode)
123 {
124   my3dConicMode = mode;
125 }
126
127 //=======================================================================
128 //function : Get3dConicConversion
129 //purpose  : 
130 //=======================================================================
131
132 inline Standard_Boolean ShapeUpgrade_ShapeConvertToBezier::Get3dConicConversion() const
133 {
134   return my3dConicMode;
135 }
136
137 //=======================================================================
138 //function : SetPlaneMode
139 //purpose  : 
140 //=======================================================================
141
142 inline void ShapeUpgrade_ShapeConvertToBezier::SetPlaneMode(const Standard_Boolean mode)
143 {
144   myPlaneMode = mode;
145 }
146
147 //=======================================================================
148 //function : GetPlaneMode
149 //purpose  : 
150 //=======================================================================
151
152 inline Standard_Boolean ShapeUpgrade_ShapeConvertToBezier::GetPlaneMode() const
153 {
154   return myPlaneMode;
155 }
156
157 //=======================================================================
158 //function : SetRevolutionMode
159 //purpose  : 
160 //=======================================================================
161
162 inline void ShapeUpgrade_ShapeConvertToBezier::SetRevolutionMode(const Standard_Boolean mode)
163 {
164   myRevolutionMode = mode;
165 }
166
167 //=======================================================================
168 //function : GetRevolutionMode
169 //purpose  : 
170 //=======================================================================
171
172 inline Standard_Boolean ShapeUpgrade_ShapeConvertToBezier::GetRevolutionMode() const
173 {
174   return myRevolutionMode;
175 }
176
177 //=======================================================================
178 //function : SetExtrusionMode
179 //purpose  : 
180 //=======================================================================
181
182 inline void ShapeUpgrade_ShapeConvertToBezier::SetExtrusionMode(const Standard_Boolean mode)
183 {
184   myExtrusionMode = mode;
185 }
186
187 //=======================================================================
188 //function : GetExtrusionMode
189 //purpose  : 
190 //=======================================================================
191
192 inline Standard_Boolean ShapeUpgrade_ShapeConvertToBezier::GetExtrusionMode() const
193 {
194   return myExtrusionMode;
195 }
196
197 //=======================================================================
198 //function : SetBSplineMode
199 //purpose  : 
200 //=======================================================================
201
202 inline void ShapeUpgrade_ShapeConvertToBezier::SetBSplineMode(const Standard_Boolean mode)
203 {
204   myBSplineMode = mode;
205 }
206
207 //=======================================================================
208 //function : GetBSplineMode
209 //purpose  : 
210 //=======================================================================
211
212 inline Standard_Boolean ShapeUpgrade_ShapeConvertToBezier::GetBSplineMode() const
213 {
214   return myBSplineMode;
215 }