0024171: Eliminate CLang compiler warning -Wreorder
[occt.git] / src / ShapeCustom / ShapeCustom_BSplineRestriction.lxx
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
18
19
20 //=======================================================================
21 //function : SetTol3d
22 //purpose  : 
23 //=======================================================================
24
25 inline  void ShapeCustom_BSplineRestriction::SetTol3d(const Standard_Real Tol3d) 
26 {
27   myTol3d = Tol3d;
28 }
29
30  
31 //=======================================================================
32 //function : SetTol2d
33 //purpose  : 
34 //=======================================================================
35
36 inline  void ShapeCustom_BSplineRestriction::SetTol2d(const Standard_Real Tol2d) 
37 {
38   myTol2d = Tol2d;
39 }
40
41  
42 //=======================================================================
43 //function : ModifyApproxSurfaceFlag
44 //purpose  : 
45 //=======================================================================
46
47 inline  Standard_Boolean& ShapeCustom_BSplineRestriction::ModifyApproxSurfaceFlag() 
48 {
49   
50   return myApproxSurfaceFlag;
51 }
52
53  
54 //=======================================================================
55 //function : ModifyApproxCurve3dFlag
56 //purpose  : 
57 //=======================================================================
58
59 inline  Standard_Boolean& ShapeCustom_BSplineRestriction::ModifyApproxCurve3dFlag() 
60 {
61   return myApproxCurve3dFlag;
62 }
63
64  
65 //=======================================================================
66 //function : ModifyApproxCurve2dFlag
67 //purpose  : 
68 //=======================================================================
69
70 inline  Standard_Boolean& ShapeCustom_BSplineRestriction::ModifyApproxCurve2dFlag() 
71 {
72   return myApproxCurve2dFlag;
73 }
74
75  
76 //=======================================================================
77 //function : SetContinuity3d
78 //purpose  : 
79 //=======================================================================
80
81 inline  void ShapeCustom_BSplineRestriction::SetContinuity3d(const GeomAbs_Shape Continuity3d) 
82 {
83   myContinuity3d = Continuity3d;
84 }
85
86  
87 //=======================================================================
88 //function : SetContinuity2d
89 //purpose  : 
90 //=======================================================================
91
92 inline  void ShapeCustom_BSplineRestriction::SetContinuity2d(const GeomAbs_Shape Continuity2d) 
93 {
94   myContinuity2d = Continuity2d;
95 }
96
97  
98 //=======================================================================
99 //function : SetMaxDegree
100 //purpose  : 
101 //=======================================================================
102
103 inline  void ShapeCustom_BSplineRestriction::SetMaxDegree(const Standard_Integer MaxDegree) 
104 {
105   myMaxDegree = MaxDegree;
106 }
107
108  
109 //=======================================================================
110 //function : SetMaxNbSegments
111 //purpose  : 
112 //=======================================================================
113
114 inline  void ShapeCustom_BSplineRestriction::SetMaxNbSegments(const Standard_Integer MaxNbSegments) 
115 {
116   myNbMaxSeg = MaxNbSegments;
117 }
118
119  
120 //=======================================================================
121 //function : Curve3dError
122 //purpose  : 
123 //=======================================================================
124
125 inline  Standard_Real ShapeCustom_BSplineRestriction::Curve3dError() const
126 {
127   return  myCurve3dError;
128 }
129
130  
131 //=======================================================================
132 //function : Curve2dError
133 //purpose  : 
134 //=======================================================================
135
136 inline  Standard_Real ShapeCustom_BSplineRestriction::Curve2dError() const
137 {
138   return  myCurve2dError;
139 }
140
141  
142 //=======================================================================
143 //function : SurfaceError
144 //purpose  : 
145 //=======================================================================
146
147 inline  Standard_Real ShapeCustom_BSplineRestriction::SurfaceError() const
148 {
149   return mySurfaceError;
150 }
151
152 //=======================================================================
153 //function : SetPriority
154 //purpose  : 
155 //=======================================================================
156
157 inline  void ShapeCustom_BSplineRestriction::SetPriority(const Standard_Boolean Degree) 
158 {
159   myDeg = Degree;
160 }
161
162 //=======================================================================
163 //function : SetConvRational
164 //purpose  : 
165 //=======================================================================
166
167 inline  void ShapeCustom_BSplineRestriction::SetConvRational(const Standard_Boolean Rational) 
168 {
169   myRational = Rational;
170 }
171
172 //=======================================================================
173 //function : GetRestrictionParameters
174 //purpose  : 
175 //=======================================================================
176
177 inline Handle(ShapeCustom_RestrictionParameters) ShapeCustom_BSplineRestriction::
178        GetRestrictionParameters() const
179 {
180   return myParameters;
181 }
182
183 //=======================================================================
184 //function : SetRestrictionParameters
185 //purpose  : 
186 //=======================================================================
187
188 inline void ShapeCustom_BSplineRestriction::
189   SetRestrictionParameters(const Handle(ShapeCustom_RestrictionParameters)& aModes)
190 {
191   myParameters = aModes;
192 }