forked from tpaviot/pythonocc-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAppCont.i
More file actions
281 lines (229 loc) · 7.29 KB
/
AppCont.i
File metadata and controls
281 lines (229 loc) · 7.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
/*
Copyright 2008-2020 Thomas Paviot (tpaviot@gmail.com)
This file is part of pythonOCC.
pythonOCC is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
pythonOCC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with pythonOCC. If not, see <http://www.gnu.org/licenses/>.
*/
%define APPCONTDOCSTRING
"AppCont module, see official documentation at
https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_appcont.html"
%enddef
%module (package="OCC.Core", docstring=APPCONTDOCSTRING) AppCont
%{
#ifdef WNT
#pragma warning(disable : 4716)
#endif
%}
%include ../common/CommonIncludes.i
%include ../common/ExceptionCatcher.i
%include ../common/FunctionTransformers.i
%include ../common/Operators.i
%include ../common/OccHandle.i
%{
#include<AppCont_module.hxx>
//Dependencies
#include<Standard_module.hxx>
#include<NCollection_module.hxx>
#include<AppParCurves_module.hxx>
#include<math_module.hxx>
#include<Message_module.hxx>
#include<TColgp_module.hxx>
#include<TColStd_module.hxx>
#include<TCollection_module.hxx>
#include<Storage_module.hxx>
%};
%import Standard.i
%import NCollection.i
%import AppParCurves.i
%import math.i
%pythoncode {
from enum import IntEnum
from OCC.Core.Exception import *
};
/* public enums */
/* end public enums declaration */
/* python proy classes for enums */
%pythoncode {
};
/* end python proxy for enums */
/* handles */
/* end handles declaration */
/* templates */
/* end templates declaration */
/* typedefs */
/* end typedefs declaration */
/*************************
* class AppCont_Function *
*************************/
%nodefaultctor AppCont_Function;
class AppCont_Function {
public:
/****************** D1 ******************/
/**** md5 signature: d74f1ada11c5cab4d59bf5506c4d986e ****/
%feature("compactdefaultargs") D1;
%feature("autodoc", "Returns the derivative at parameter <theu>.
Parameters
----------
theU: float
theVec2d: NCollection_Array1<gp_Vec2d>
theVec: NCollection_Array1<gp_Vec>
Returns
-------
bool
") D1;
virtual Standard_Boolean D1(const Standard_Real theU, NCollection_Array1<gp_Vec2d> & theVec2d, NCollection_Array1<gp_Vec> & theVec);
/****************** FirstParameter ******************/
/**** md5 signature: d1641ead93c23610f9b5155af230348d ****/
%feature("compactdefaultargs") FirstParameter;
%feature("autodoc", "Returns the first parameter of the function.
Returns
-------
float
") FirstParameter;
virtual Standard_Real FirstParameter();
/****************** GetNbOf2dPoints ******************/
/**** md5 signature: 3f7ada48633b9454e96b6c14faaaa97b ****/
%feature("compactdefaultargs") GetNbOf2dPoints;
%feature("autodoc", "Get number of 2d points returned by 'value' and 'd1' functions.
Returns
-------
int
") GetNbOf2dPoints;
Standard_Integer GetNbOf2dPoints();
/****************** GetNbOf3dPoints ******************/
/**** md5 signature: 34417cccd11cb70858a56fd546f2c85d ****/
%feature("compactdefaultargs") GetNbOf3dPoints;
%feature("autodoc", "Get number of 3d points returned by 'value' and 'd1' functions.
Returns
-------
int
") GetNbOf3dPoints;
Standard_Integer GetNbOf3dPoints();
/****************** GetNumberOfPoints ******************/
/**** md5 signature: f86c4c0754a51bf0afa2e9f149bdf2e0 ****/
%feature("compactdefaultargs") GetNumberOfPoints;
%feature("autodoc", "Get number of 3d and 2d points returned by 'value' and 'd1' functions.
Parameters
----------
Returns
-------
theNbPnt: int
theNbPnt2d: int
") GetNumberOfPoints;
void GetNumberOfPoints(Standard_Integer &OutValue, Standard_Integer &OutValue);
/****************** LastParameter ******************/
/**** md5 signature: 78c346d133438e913e50667c32977882 ****/
%feature("compactdefaultargs") LastParameter;
%feature("autodoc", "Returns the last parameter of the function.
Returns
-------
float
") LastParameter;
virtual Standard_Real LastParameter();
/****************** PeriodInformation ******************/
/**** md5 signature: 2ec0eaf4e71d35192917d14baaa1c237 ****/
%feature("compactdefaultargs") PeriodInformation;
%feature("autodoc", "Return information about peridicity in output paramateters space. @param thedimidx defines index in output parameters space. 1 <= thedimidx <= 3 * mynbpnt + 2 * mynbpnt2d.
Parameters
----------
Standard_Integer:
Returns
-------
IsPeriodic: bool
thePeriod: float
") PeriodInformation;
virtual void PeriodInformation(const Standard_Integer, Standard_Boolean &OutValue, Standard_Real &OutValue);
/****************** Value ******************/
/**** md5 signature: f5048d9ba7a2a644fd22ab0a87e61896 ****/
%feature("compactdefaultargs") Value;
%feature("autodoc", "Returns the point at parameter <theu>.
Parameters
----------
theU: float
thePnt2d: NCollection_Array1<gp_Pnt2d>
thePnt: NCollection_Array1<gp_Pnt>
Returns
-------
bool
") Value;
virtual Standard_Boolean Value(const Standard_Real theU, NCollection_Array1<gp_Pnt2d> & thePnt2d, NCollection_Array1<gp_Pnt> & thePnt);
};
%extend AppCont_Function {
%pythoncode {
__repr__ = _dumps_object
}
};
/****************************
* class AppCont_LeastSquare *
****************************/
class AppCont_LeastSquare {
public:
/****************** AppCont_LeastSquare ******************/
/**** md5 signature: bef4a7f12a53a8a2686f96d5313108c8 ****/
%feature("compactdefaultargs") AppCont_LeastSquare;
%feature("autodoc", "No available documentation.
Parameters
----------
SSP: AppCont_Function
U0: float
U1: float
FirstCons: AppParCurves_Constraint
LastCons: AppParCurves_Constraint
Deg: int
NbPoints: int
Returns
-------
None
") AppCont_LeastSquare;
AppCont_LeastSquare(const AppCont_Function & SSP, const Standard_Real U0, const Standard_Real U1, const AppParCurves_Constraint FirstCons, const AppParCurves_Constraint LastCons, const Standard_Integer Deg, const Standard_Integer NbPoints);
/****************** Error ******************/
/**** md5 signature: 6cc4f4a7927f2c0b4ca37a4d45ee7075 ****/
%feature("compactdefaultargs") Error;
%feature("autodoc", "No available documentation.
Parameters
----------
Returns
-------
F: float
MaxE3d: float
MaxE2d: float
") Error;
void Error(Standard_Real &OutValue, Standard_Real &OutValue, Standard_Real &OutValue);
/****************** IsDone ******************/
/**** md5 signature: ec0624071ec7da54b3d9dacc7bcb05f9 ****/
%feature("compactdefaultargs") IsDone;
%feature("autodoc", "No available documentation.
Returns
-------
bool
") IsDone;
Standard_Boolean IsDone();
/****************** Value ******************/
/**** md5 signature: 59eb7b43f630b0afdd94fa8f4898fb6d ****/
%feature("compactdefaultargs") Value;
%feature("autodoc", "No available documentation.
Returns
-------
AppParCurves_MultiCurve
") Value;
const AppParCurves_MultiCurve & Value();
};
%extend AppCont_LeastSquare {
%pythoncode {
__repr__ = _dumps_object
}
};
/************************
* class PeriodicityInfo *
************************/
/* harray1 classes */
/* harray2 classes */
/* hsequence classes */