0024428: Implementation of LGPL license
[occt.git] / src / AppBlend / AppBlend_Approx.cdl
CommitLineData
b311480e 1-- Created on: 1996-08-27
2-- Created by: Philippe MANGIN
3-- Copyright (c) 1996-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.
7fd59977 16
17deferred class Approx from AppBlend
18
19
20 ---Purpose: Bspline approximation of a surface.
21
22uses Array2OfPnt from TColgp,
23 HArray2OfPnt from TColgp,
24 Array2OfReal from TColStd,
25 HArray2OfReal from TColStd,
26 Array1OfReal from TColStd,
27 HArray1OfReal from TColStd,
28 Array1OfInteger from TColStd,
29 HArray1OfInteger from TColStd,
30 Array1OfPnt2d from TColgp
31
32raises NotDone from StdFail,
33 DomainError from Standard,
34 OutOfRange from Standard
35
36is
37
38
39
40 Delete(me:out) is virtual;
41 ---C++: alias "Standard_EXPORT virtual ~AppBlend_Approx(){Delete() ; }"
42
43
44
45 IsDone(me)
46 returns Boolean from Standard
47 is deferred;
48
49
50 SurfShape(me; UDegree,VDegree : out Integer from Standard;
51 NbUPoles,NbVPoles: out Integer from Standard;
52 NbUKnots,NbVKnots: out Integer from Standard)
53 raises NotDone from StdFail
54 is deferred;
55
56
57 Surface(me; TPoles : out Array2OfPnt from TColgp;
58 TWeights : out Array2OfReal from TColStd;
59 TUKnots,TVKnots : out Array1OfReal from TColStd;
60 TUMults,TVMults : out Array1OfInteger from TColStd)
61 raises NotDone from StdFail
62 is deferred;
63
64
65 UDegree(me)
66
67 returns Integer from Standard
68 raises NotDone from StdFail
69 is deferred;
70
71
72 VDegree(me)
73
74 returns Integer from Standard
75 raises NotDone from StdFail
76 is deferred;
77
78
79 SurfPoles(me)
80
81 returns Array2OfPnt from TColgp
82 ---C++: return const&
83
84 raises NotDone from StdFail
85 is deferred;
86
87
88 SurfWeights(me)
89
90 returns Array2OfReal from TColStd
91 ---C++: return const&
92
93 raises NotDone from StdFail
94 is deferred;
95
96
97 SurfUKnots(me)
98
99 returns Array1OfReal from TColStd
100 ---C++: return const&
101
102 raises NotDone from StdFail
103 is deferred;
104
105
106 SurfVKnots(me)
107
108 returns Array1OfReal from TColStd
109 ---C++: return const&
110
111 raises NotDone from StdFail
112 is deferred;
113
114
115 SurfUMults(me)
116
117 returns Array1OfInteger from TColStd
118 ---C++: return const&
119
120 raises NotDone from StdFail
121 is deferred;
122
123
124 SurfVMults(me)
125
126 returns Array1OfInteger from TColStd
127 ---C++: return const&
128
129 raises NotDone from StdFail
130 is deferred;
131
132
133 NbCurves2d(me)
134
135 returns Integer from Standard
136 raises NotDone from StdFail
137 is deferred;
138
139
140 Curves2dShape(me; Degree,NbPoles,NbKnots: out Integer from Standard)
141
142 raises NotDone from StdFail,
143 DomainError from Standard
144
145 is deferred;
146
147
148 Curve2d(me; Index: Integer from Standard;
149 TPoles : out Array1OfPnt2d from TColgp;
150 TKnots : out Array1OfReal from TColStd;
151 TMults : out Array1OfInteger from TColStd)
152
153 raises NotDone from StdFail,
154 OutOfRange from Standard,
155 DomainError from Standard
156
157 is deferred;
158
159
160 Curves2dDegree(me)
161
162 returns Integer from Standard
163 raises NotDone from StdFail,
164 DomainError from Standard
165 is deferred;
166
167
168 Curve2dPoles(me; Index: Integer from Standard)
169
170 returns Array1OfPnt2d from TColgp
171 ---C++: return const&
172
173 raises NotDone from StdFail,
174 OutOfRange from Standard,
175 DomainError from Standard
176 is deferred;
177
178
179 Curves2dKnots(me)
180
181 returns Array1OfReal from TColStd
182 ---C++: return const&
183
184 raises NotDone from StdFail,
185 DomainError from Standard
186 is deferred;
187
188
189 Curves2dMults(me)
190
191 returns Array1OfInteger from TColStd
192 ---C++: return const&
193
194 raises NotDone from StdFail,
195 DomainError from Standard
196 is deferred;
197
198 TolReached(me; Tol3d, Tol2d : out Real from Standard)
199 raises NotDone from StdFail
200 is deferred;
201
202 TolCurveOnSurf(me; Index : Integer from Standard)
203 returns Real from Standard
204 raises NotDone from StdFail
205 is deferred;
206
207
208end Approx;