Integration of OCCT 6.5.0 from SVN
[occt.git] / src / PGeom / PGeom_BSplineSurface.cxx
CommitLineData
7fd59977 1// File: PGeom_BSplineSurface.cxx
2// Created: Wed Mar 3 15:19:11 1993
3// Author: Philippe DAUTRY
4// <fid@phylox>
5// Copyright: Matra Datavision 1993
6
7
8#include <PGeom_BSplineSurface.ixx>
9
10//=======================================================================
11//function : PGeom_BSplineSurface
12//purpose :
13//=======================================================================
14
15PGeom_BSplineSurface::PGeom_BSplineSurface()
16{}
17
18
19//=======================================================================
20//function : PGeom_BSplineSurface
21//purpose :
22//=======================================================================
23
24PGeom_BSplineSurface::PGeom_BSplineSurface
25 (const Standard_Boolean aURational,
26 const Standard_Boolean aVRational,
27 const Standard_Boolean aUPeriodic,
28 const Standard_Boolean aVPeriodic,
29 const Standard_Integer aUSpineDegree,
30 const Standard_Integer aVSpineDegree,
31 const Handle(PColgp_HArray2OfPnt)& aPoles,
32 const Handle(PColStd_HArray2OfReal)& aWeights,
33 const Handle(PColStd_HArray1OfReal)& aUKnots,
34 const Handle(PColStd_HArray1OfReal)& aVKnots,
35 const Handle(PColStd_HArray1OfInteger)& aUMultiplicities,
36 const Handle(PColStd_HArray1OfInteger)& aVMultiplicities) :
37 uRational(aURational),
38 vRational(aVRational),
39 uPeriodic(aUPeriodic),
40 vPeriodic(aVPeriodic),
41 uSpineDegree(aUSpineDegree),
42 vSpineDegree(aVSpineDegree),
43 poles(aPoles),
44 weights(aWeights),
45 uKnots(aUKnots),
46 vKnots(aVKnots),
47 uMultiplicities(aUMultiplicities),
48 vMultiplicities(aVMultiplicities)
49{}
50
51
52//=======================================================================
53//function : URational
54//purpose :
55//=======================================================================
56
57void PGeom_BSplineSurface::URational(const Standard_Boolean aURational)
58{ uRational = aURational; }
59
60
61//=======================================================================
62//function : URational
63//purpose :
64//=======================================================================
65
66Standard_Boolean PGeom_BSplineSurface::URational() const
67{ return uRational; }
68
69
70//=======================================================================
71//function : VRational
72//purpose :
73//=======================================================================
74
75void PGeom_BSplineSurface::VRational(const Standard_Boolean aVRational)
76{ vRational = aVRational; }
77
78
79//=======================================================================
80//function : VRational
81//purpose :
82//=======================================================================
83
84Standard_Boolean PGeom_BSplineSurface::VRational() const
85{ return vRational; }
86
87
88//=======================================================================
89//function : UPeriodic
90//purpose :
91//=======================================================================
92
93void PGeom_BSplineSurface::UPeriodic(const Standard_Boolean aUPeriodic)
94{ uPeriodic = aUPeriodic; }
95
96
97//=======================================================================
98//function : UPeriodic
99//purpose :
100//=======================================================================
101
102Standard_Boolean PGeom_BSplineSurface::UPeriodic() const
103{ return uPeriodic; }
104
105
106//=======================================================================
107//function : VPeriodic
108//purpose :
109//=======================================================================
110
111void PGeom_BSplineSurface::VPeriodic(const Standard_Boolean aVPeriodic)
112{ vPeriodic = aVPeriodic; }
113
114
115//=======================================================================
116//function : VPeriodic
117//purpose :
118//=======================================================================
119
120Standard_Boolean PGeom_BSplineSurface::VPeriodic() const
121{ return vPeriodic; }
122
123
124//=======================================================================
125//function : USpineDegree
126//purpose :
127//=======================================================================
128
129void PGeom_BSplineSurface::USpineDegree(const Standard_Integer aUSpineDegree)
130{ uSpineDegree = aUSpineDegree; }
131
132
133//=======================================================================
134//function : USpineDegree
135//purpose :
136//=======================================================================
137
138Standard_Integer PGeom_BSplineSurface::USpineDegree() const
139{ return uSpineDegree; }
140
141
142//=======================================================================
143//function : VSpineDegree
144//purpose :
145//=======================================================================
146
147void PGeom_BSplineSurface::VSpineDegree(const Standard_Integer aVSpineDegree)
148{ vSpineDegree = aVSpineDegree; }
149
150
151//=======================================================================
152//function : VSpineDegree
153//purpose :
154//=======================================================================
155
156Standard_Integer PGeom_BSplineSurface::VSpineDegree() const
157{ return vSpineDegree; }
158
159
160//=======================================================================
161//function : Poles
162//purpose :
163//=======================================================================
164
165void PGeom_BSplineSurface::Poles(const Handle(PColgp_HArray2OfPnt)& aPoles)
166{ poles = aPoles; }
167
168
169//=======================================================================
170//function : Poles
171//purpose :
172//=======================================================================
173
174Handle(PColgp_HArray2OfPnt) PGeom_BSplineSurface::Poles() const
175{ return poles; }
176
177
178//=======================================================================
179//function : Weights
180//purpose :
181//=======================================================================
182
183void PGeom_BSplineSurface::
184 Weights(const Handle(PColStd_HArray2OfReal)& aWeights)
185{ weights = aWeights; }
186
187
188//=======================================================================
189//function : Weights
190//purpose :
191//=======================================================================
192
193Handle(PColStd_HArray2OfReal) PGeom_BSplineSurface::Weights() const
194{ return weights; }
195
196
197//=======================================================================
198//function : UKnots
199//purpose :
200//=======================================================================
201
202void PGeom_BSplineSurface::
203 UKnots(const Handle(PColStd_HArray1OfReal)& aUKnots)
204{ uKnots = aUKnots; }
205
206
207//=======================================================================
208//function : UKnots
209//purpose :
210//=======================================================================
211
212Handle(PColStd_HArray1OfReal) PGeom_BSplineSurface::UKnots() const
213{ return uKnots; }
214
215
216//=======================================================================
217//function : VKnots
218//purpose :
219//=======================================================================
220
221void PGeom_BSplineSurface::
222 VKnots(const Handle(PColStd_HArray1OfReal)& aVKnots)
223{ vKnots = aVKnots; }
224
225
226//=======================================================================
227//function : VKnots
228//purpose :
229//=======================================================================
230
231Handle(PColStd_HArray1OfReal) PGeom_BSplineSurface::VKnots() const
232{ return vKnots; }
233
234
235//=======================================================================
236//function : UMultiplicities
237//purpose :
238//=======================================================================
239
240void PGeom_BSplineSurface::UMultiplicities
241 (const Handle(PColStd_HArray1OfInteger)& aUMultiplicities)
242{ uMultiplicities = aUMultiplicities; }
243
244
245//=======================================================================
246//function : UMultiplicities
247//purpose :
248//=======================================================================
249
250Handle(PColStd_HArray1OfInteger) PGeom_BSplineSurface::
251 UMultiplicities() const
252{ return uMultiplicities; }
253
254
255//=======================================================================
256//function : VMultiplicities
257//purpose :
258//=======================================================================
259
260void PGeom_BSplineSurface::
261 VMultiplicities(const Handle(PColStd_HArray1OfInteger)& aVMultiplicities)
262{ vMultiplicities = aVMultiplicities; }
263
264
265//=======================================================================
266//function : VMultiplicities
267//purpose :
268//=======================================================================
269
270Handle(PColStd_HArray1OfInteger) PGeom_BSplineSurface::
271 VMultiplicities() const
272{ return vMultiplicities; }