1 // Copyright (C) 2014-2019 CEA/DEN, EDF R&D
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
25 #include "SketchAPI_swig.h"
26 #include "ModelHighAPI_swig.h"
28 // fix for SWIG v2.0.4
29 #define SWIGPY_SLICE_ARG(obj) ((PyObject*)(obj))
34 // import other modules
37 %import "ModelHighAPI.i"
39 // to avoid error on this
40 #define SKETCHAPI_EXPORT
42 // standard definitions
46 %include "std_shared_ptr.i"
48 // function with named parameters
49 %feature("kwargs") SketchAPI_BSpline::controlPoles;
50 %feature("kwargs") SketchAPI_BSpline::controlPolygon;
51 %feature("kwargs") SketchAPI_Ellipse::construction;
52 %feature("kwargs") SketchAPI_EllipticArc::construction;
53 %feature("kwargs") SketchAPI_Sketch::addSpline;
54 %feature("kwargs") SketchAPI_Sketch::addInterpolation;
55 %feature("kwargs") SketchAPI_Sketch::addApproximation;
56 %feature("kwargs") SketchAPI_Sketch::setAngle;
59 %shared_ptr(SketchAPI_Arc)
60 %shared_ptr(SketchAPI_MacroArc)
61 %shared_ptr(SketchAPI_Circle)
62 %shared_ptr(SketchAPI_MacroCircle)
63 %shared_ptr(SketchAPI_Ellipse)
64 %shared_ptr(SketchAPI_MacroEllipse)
65 %shared_ptr(SketchAPI_EllipticArc)
66 %shared_ptr(SketchAPI_MacroEllipticArc)
67 %shared_ptr(SketchAPI_BSpline)
68 %shared_ptr(SketchAPI_BSplinePeriodic)
69 %shared_ptr(SketchAPI_Constraint)
70 %shared_ptr(SketchAPI_ConstraintAngle)
71 %shared_ptr(SketchAPI_IntersectionPoint)
72 %shared_ptr(SketchAPI_Line)
73 %shared_ptr(SketchAPI_Mirror)
74 %shared_ptr(SketchAPI_Sketch)
75 %shared_ptr(SketchAPI_SketchEntity)
76 %shared_ptr(SketchAPI_Point)
77 %shared_ptr(SketchAPI_Projection)
78 %shared_ptr(SketchAPI_Rectangle)
79 %shared_ptr(SketchAPI_Rotation)
80 %shared_ptr(SketchAPI_Translation)
83 %template(InterfaceList) std::list<std::shared_ptr<ModelHighAPI_Interface> >;
84 %template(EntityList) std::list<std::shared_ptr<SketchAPI_SketchEntity> >;
85 %template(SketchPointList) std::list<std::shared_ptr<SketchAPI_Point> >;
86 %template(GeomPnt2dList) std::list<std::shared_ptr<GeomAPI_Pnt2d> >;
88 %template(PointRefAttrPair) std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr>;
90 %typecheck(SWIG_TYPECHECK_POINTER) std::shared_ptr<ModelAPI_Feature>, const std::shared_ptr<ModelAPI_Feature> & {
91 std::shared_ptr<ModelAPI_Feature> * temp_feature;
92 std::shared_ptr<ModelHighAPI_Interface> * temp_interface;
94 if ((SWIG_ConvertPtrAndOwn($input, (void **)&temp_feature, $descriptor(std::shared_ptr<ModelAPI_Feature> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
101 if ((SWIG_ConvertPtrAndOwn($input, (void **)&temp_interface, $descriptor(std::shared_ptr<ModelHighAPI_Interface> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
102 if (temp_interface) {
111 %typemap(in) const std::shared_ptr<ModelAPI_Feature> & (std::shared_ptr<ModelAPI_Feature> temp) {
112 std::shared_ptr<ModelAPI_Feature> * temp_feature;
113 std::shared_ptr<ModelHighAPI_Interface> * temp_interface;
115 if ((SWIG_ConvertPtrAndOwn($input, (void **)&temp_feature, $descriptor(std::shared_ptr<ModelAPI_Feature> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
117 PyErr_SetString(PyExc_TypeError, "argument must be ModelHighAPI_Interface.");
120 temp = (*temp_feature);
121 if (newmem & SWIG_CAST_NEW_MEMORY) {
126 if ((SWIG_ConvertPtrAndOwn($input, (void **)&temp_interface, $descriptor(std::shared_ptr<ModelHighAPI_Interface> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
127 if (!temp_interface) {
128 PyErr_SetString(PyExc_TypeError, "argument must be ModelHighAPI_Interface.");
131 temp = (*temp_interface)->feature();
132 if (newmem & SWIG_CAST_NEW_MEMORY) {
133 delete temp_interface;
137 if ((SWIG_ConvertPtr($input, (void **)&$1, $1_descriptor, SWIG_POINTER_EXCEPTION)) == 0) {
139 PyErr_SetString(PyExc_ValueError, "argument must be ModelHighAPI_Interface.");
144 %typemap(in) const std::list<std::shared_ptr<ModelAPI_Object> > & (std::list<std::shared_ptr<ModelAPI_Object> > temp) {
145 std::shared_ptr<ModelAPI_Object> * temp_object;
146 std::shared_ptr<ModelHighAPI_Interface> * temp_interface;
147 ModelHighAPI_Selection* temp_selection;
149 if (PySequence_Check($input)) {
150 for (Py_ssize_t i = 0; i < PySequence_Size($input); ++i) {
151 PyObject * item = PySequence_GetItem($input, i);
152 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_selection, $descriptor(ModelHighAPI_Selection*), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
153 if (!temp_selection) {
154 PyErr_SetString(PyExc_TypeError, "argument must be ModelHighAPI_Interface, ModelHighAPI_Selection or ModelAPI_Object.");
157 temp.push_back(temp_selection->resultSubShapePair().first);
158 if (newmem & SWIG_CAST_NEW_MEMORY) {
159 delete temp_selection;
162 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_object, $descriptor(std::shared_ptr<ModelAPI_Object> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
164 PyErr_SetString(PyExc_TypeError, "argument must be list of ModelHighAPI_Interface, ModelHighAPI_Selection or ModelAPI_Object.");
167 temp.push_back(*temp_object);
168 if (newmem & SWIG_CAST_NEW_MEMORY) {
172 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_interface, $descriptor(std::shared_ptr<ModelHighAPI_Interface> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
173 if (!temp_interface) {
174 PyErr_SetString(PyExc_TypeError, "argument must be list of ModelHighAPI_Interface, ModelHighAPI_Selection or ModelAPI_Object.");
177 temp.push_back((*temp_interface)->defaultResult());
178 if (newmem & SWIG_CAST_NEW_MEMORY) {
179 delete temp_interface;
186 PyErr_SetString(PyExc_ValueError, "argument must be list of ModelHighAPI_Interface or ModelAPI_Object.");
191 %typecheck(SWIG_TYPECHECK_POINTER) std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr>, const std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr> & {
192 std::shared_ptr<ModelAPI_Attribute> * temp_attribute;
193 std::shared_ptr<ModelAPI_Object> * temp_object;
194 std::shared_ptr<ModelHighAPI_Interface> * temp_interface;
195 ModelHighAPI_Selection* temp_selection;
196 std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr>* temp_pair;
197 std::shared_ptr<GeomAPI_Pnt2d> * temp_point;
198 ModelHighAPI_RefAttr temp_refattr;
200 std::list<PyObject*> temp_inputlist;
201 if (PySequence_Check($input)) {
202 for (Py_ssize_t i = 0; i < PySequence_Size($input); ++i) {
203 PyObject * temp = PySequence_GetItem($input, i);
204 temp_inputlist.push_back(temp);
207 temp_inputlist.push_back($input);
211 for (std::list<PyObject*>::iterator it = temp_inputlist.begin(); it != temp_inputlist.end() && $1; ++it) {
212 PyObject* item = *it;
214 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_selection, $descriptor(ModelHighAPI_Selection*), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
215 if (temp_selection) {
221 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_attribute, $descriptor(std::shared_ptr<ModelAPI_Attribute> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
222 if (temp_attribute) {
228 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_object, $descriptor(std::shared_ptr<ModelAPI_Object> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
235 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_interface, $descriptor(std::shared_ptr<ModelHighAPI_Interface> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
236 if (temp_interface) {
242 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_pair, $descriptor(std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
249 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_point, $descriptor(std::shared_ptr<GeomAPI_Pnt2d> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
261 %typemap(in) const std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr> & (std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr> temp) {
262 std::shared_ptr<ModelAPI_Attribute> * temp_attribute;
263 std::shared_ptr<ModelAPI_Object> * temp_object;
264 std::shared_ptr<ModelHighAPI_Interface> * temp_interface;
265 ModelHighAPI_Selection* temp_selection;
266 std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr>* temp_pair;
267 std::shared_ptr<GeomAPI_Pnt2d> * temp_point = 0;
268 ModelHighAPI_RefAttr temp_refattr;
270 std::list<PyObject*> temp_inputlist;
271 if (PySequence_Check($input)) {
272 for (Py_ssize_t i = 0; i < PySequence_Size($input); ++i) {
273 PyObject * temp = PySequence_GetItem($input, i);
274 temp_inputlist.push_back(temp);
277 temp_inputlist.push_back($input);
280 for (std::list<PyObject*>::iterator it = temp_inputlist.begin(); it != temp_inputlist.end(); ++it) {
281 PyObject* item = *it;
283 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_selection, $descriptor(ModelHighAPI_Selection*), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
284 if (temp_selection) {
285 temp_refattr = ModelHighAPI_RefAttr(std::shared_ptr<ModelAPI_Object>(temp_selection->resultSubShapePair().first));
286 if (newmem & SWIG_CAST_NEW_MEMORY) {
287 delete temp_selection;
291 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_attribute, $descriptor(std::shared_ptr<ModelAPI_Attribute> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
292 if (temp_attribute) {
293 temp_refattr = ModelHighAPI_RefAttr(*temp_attribute);
294 if (newmem & SWIG_CAST_NEW_MEMORY) {
295 delete temp_attribute;
299 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_object, $descriptor(std::shared_ptr<ModelAPI_Object> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
301 temp_refattr = ModelHighAPI_RefAttr(*temp_object);
302 if (newmem & SWIG_CAST_NEW_MEMORY) {
307 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_interface, $descriptor(std::shared_ptr<ModelHighAPI_Interface> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
308 if (temp_interface) {
309 temp_refattr = ModelHighAPI_RefAttr(*temp_interface);
310 if (newmem & SWIG_CAST_NEW_MEMORY) {
311 delete temp_interface;
315 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_pair, $descriptor(std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
317 temp_point = &temp_pair->first;
318 temp_refattr = temp_pair->second;
319 if (newmem & SWIG_CAST_NEW_MEMORY) {
324 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_point, $descriptor(std::shared_ptr<GeomAPI_Pnt2d> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
329 if (temp_point || !temp_refattr.isEmpty()) {
331 temp = std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr>(*temp_point, temp_refattr);
333 temp = std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr>(std::shared_ptr<GeomAPI_Pnt2d>(), temp_refattr);
335 if (temp_point && (newmem & SWIG_CAST_NEW_MEMORY)) {
340 PyErr_SetString(PyExc_TypeError, "argument must be ModelHighAPI_RefAttr, ModelHighAPI_Selection, ModelHighAPI_Interface, ModelAPI_Attribute or ModelAPI_Object.");
345 // fix compilarion error: 'res*' was not declared in this scope
346 %typemap(freearg) const std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr> & {}
349 %typemap(in) const std::list<std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr> > & (std::list<std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr> > temp) {
350 if (PySequence_Check($input)) {
351 for (Py_ssize_t i = 0; i < PySequence_Size($input); ++i) {
352 PyObject * item = PySequence_GetItem($input, i);
354 std::list<PyObject*> temp_inputlist;
355 if (PySequence_Check(item)) {
356 for (Py_ssize_t i = 0; i < PySequence_Size(item); ++i) {
357 PyObject * tmpItem = PySequence_GetItem(item, i);
358 temp_inputlist.push_back(tmpItem);
361 temp_inputlist.push_back(item);
364 std::shared_ptr<ModelAPI_Attribute> * temp_attribute = 0;
365 std::shared_ptr<ModelAPI_Object> * temp_object = 0;
366 std::shared_ptr<ModelHighAPI_Interface> * temp_interface = 0;
367 ModelHighAPI_Selection* temp_selection = 0;
368 std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr>* temp_pair = 0;
369 std::shared_ptr<GeomAPI_Pnt2d> * temp_point = 0;
370 ModelHighAPI_RefAttr temp_refattr;
374 for (std::list<PyObject*>::iterator it = temp_inputlist.begin(); it != temp_inputlist.end(); ++it) {
375 PyObject* item = *it;
377 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_selection, $descriptor(ModelHighAPI_Selection*), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
378 if (temp_selection) {
379 temp_refattr = ModelHighAPI_RefAttr(std::shared_ptr<ModelAPI_Object>(temp_selection->resultSubShapePair().first));
380 if (newmem & SWIG_CAST_NEW_MEMORY) {
381 delete temp_selection;
385 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_attribute, $descriptor(std::shared_ptr<ModelAPI_Attribute> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
386 if (temp_attribute) {
387 temp_refattr = ModelHighAPI_RefAttr(*temp_attribute);
388 if (newmem & SWIG_CAST_NEW_MEMORY) {
389 delete temp_attribute;
393 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_object, $descriptor(std::shared_ptr<ModelAPI_Object> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
395 temp_refattr = ModelHighAPI_RefAttr(*temp_object);
396 if (newmem & SWIG_CAST_NEW_MEMORY) {
401 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_interface, $descriptor(std::shared_ptr<ModelHighAPI_Interface> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
402 if (temp_interface) {
403 temp_refattr = ModelHighAPI_RefAttr(*temp_interface);
404 if (newmem & SWIG_CAST_NEW_MEMORY) {
405 delete temp_interface;
409 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_pair, $descriptor(std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
411 temp_point = &temp_pair->first;
412 temp_refattr = temp_pair->second;
413 if (newmem & SWIG_CAST_NEW_MEMORY) {
418 if (PyTuple_Check(item)) {
419 if (PyTuple_Size(item) == 2) {
420 double x = (double)PyFloat_AsDouble(PySequence_GetItem(item, 0));
421 double y = (double)PyFloat_AsDouble(PySequence_GetItem(item, 1));
422 temp_point = new std::shared_ptr<GeomAPI_Pnt2d>(new GeomAPI_Pnt2d(x, y));
425 PyErr_SetString(PyExc_TypeError, "argument must a list of 2D points.");
429 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_point, $descriptor(std::shared_ptr<GeomAPI_Pnt2d> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
432 if (PyNumber_Check(item)) {
433 PyObject* item1 = *(++it);
434 if (PyNumber_Check(item1)) {
435 double x = (double)PyFloat_AsDouble(item);
436 double y = (double)PyFloat_AsDouble(item1);
437 temp_point = new std::shared_ptr<GeomAPI_Pnt2d>(new GeomAPI_Pnt2d(x, y));
440 PyErr_SetString(PyExc_TypeError, "argument must a list of 2D points.");
446 if (temp_point || !temp_refattr.isEmpty()) {
448 temp.push_back(std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr>(*temp_point, temp_refattr));
450 temp.push_back(std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr>(std::shared_ptr<GeomAPI_Pnt2d>(), temp_refattr));
452 if (temp_point && ((newmem & SWIG_CAST_NEW_MEMORY) || clearmem)) {
456 PyErr_SetString(PyExc_TypeError, "argument must be ModelHighAPI_RefAttr, ModelHighAPI_Selection, ModelHighAPI_Interface, ModelAPI_Attribute or ModelAPI_Object.");
463 PyErr_SetString(PyExc_ValueError, "argument must be a tuple of lists.");
468 %typecheck(SWIG_TYPECHECK_POINTER) std::list<std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr> >, const std::list<std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr> >& {
470 if (PySequence_Check($input)) {
471 for (Py_ssize_t i = 0; i < PySequence_Size($input) && $1; ++i) {
472 PyObject * item = PySequence_GetItem($input, i);
474 std::list<PyObject*> temp_inputlist;
475 if (PySequence_Check(item)) {
476 for (Py_ssize_t i = 0; i < PySequence_Size(item); ++i) {
477 PyObject * tmpItem = PySequence_GetItem(item, i);
478 temp_inputlist.push_back(tmpItem);
481 temp_inputlist.push_back(item);
484 std::shared_ptr<ModelAPI_Attribute> * temp_attribute = 0;
485 std::shared_ptr<ModelAPI_Object> * temp_object = 0;
486 std::shared_ptr<ModelHighAPI_Interface> * temp_interface = 0;
487 ModelHighAPI_Selection* temp_selection = 0;
488 std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr>* temp_pair = 0;
489 std::shared_ptr<GeomAPI_Pnt2d> * temp_point = 0;
490 ModelHighAPI_RefAttr temp_refattr;
493 for (std::list<PyObject*>::iterator it = temp_inputlist.begin(); it != temp_inputlist.end() && $1; ++it) {
494 PyObject* item = *it;
496 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_selection, $descriptor(ModelHighAPI_Selection*), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
497 if (temp_selection) {
503 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_attribute, $descriptor(std::shared_ptr<ModelAPI_Attribute> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
504 if (temp_attribute) {
510 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_object, $descriptor(std::shared_ptr<ModelAPI_Object> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
517 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_interface, $descriptor(std::shared_ptr<ModelHighAPI_Interface> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
518 if (temp_interface) {
524 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_pair, $descriptor(std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
531 if (PyTuple_Check(item)) {
532 if (PyTuple_Size(item) == 2) {
533 if (PyNumber_Check(PySequence_GetItem(item, 0)) && PyNumber_Check(PySequence_GetItem(item, 1))) {
542 if ((SWIG_ConvertPtrAndOwn(item, (void **)&temp_point, $descriptor(std::shared_ptr<GeomAPI_Pnt2d> *), SWIG_POINTER_EXCEPTION, &newmem)) == 0) {
549 if (PyNumber_Check(item)) {
562 // fix compilarion error: 'res*' was not declared in this scope
563 %typemap(freearg) const std::list<std::shared_ptr<GeomAPI_Pnt2d> > & {}
566 // all supported interfaces (the order is very important according dependencies: base class first)
567 %include "SketchAPI_SketchEntity.h"
568 %include "SketchAPI_Point.h"
569 %include "SketchAPI_IntersectionPoint.h"
570 %include "SketchAPI_Line.h"
571 %include "SketchAPI_Circle.h"
572 %include "SketchAPI_MacroCircle.h"
573 %include "SketchAPI_Arc.h"
574 %include "SketchAPI_MacroArc.h"
575 %include "SketchAPI_Ellipse.h"
576 %include "SketchAPI_MacroEllipse.h"
577 %include "SketchAPI_EllipticArc.h"
578 %include "SketchAPI_MacroEllipticArc.h"
579 %include "SketchAPI_BSpline.h"
580 %include "SketchAPI_Projection.h"
581 %include "SketchAPI_Mirror.h"
582 %include "SketchAPI_Translation.h"
583 %include "SketchAPI_Rectangle.h"
584 %include "SketchAPI_Rotation.h"
585 %include "SketchAPI_Sketch.h"
586 %include "SketchAPI_Constraint.h"
587 %include "SketchAPI_ConstraintAngle.h"