SHAPER 9.16.0
GeomAPI_swig.h
1// Copyright (C) 2014-2026 CEA, EDF
2//
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.
7//
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.
12//
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
16//
17// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18//
19
20#ifndef SRC_GEOMAPI_GEOMAPI_SWIG_H_
21#define SRC_GEOMAPI_GEOMAPI_SWIG_H_
22
23 #include "GeomAPI.h"
24 #include "GeomAPI_AISObject.h"
25 #include "GeomAPI_Angle.h"
26 #include "GeomAPI_Angle2d.h"
27 #include "GeomAPI_Ax1.h"
28 #include "GeomAPI_Ax2.h"
29 #include "GeomAPI_Ax3.h"
30 #include "GeomAPI_Box.h"
31 #include "GeomAPI_BSpline.h"
32 #include "GeomAPI_BSpline2d.h"
33 #include "GeomAPI_Circ.h"
34 #include "GeomAPI_Circ2d.h"
35 #include "GeomAPI_Cone.h"
36 #include "GeomAPI_Curve.h"
37 #include "GeomAPI_Cylinder.h"
38 #include "GeomAPI_DataMapOfShapeMapOfShapes.h"
39 #include "GeomAPI_DataMapOfShapeShape.h"
40 #include "GeomAPI_IndexedMapOfShape.h"
41 #include "GeomAPI_Dir.h"
42 #include "GeomAPI_Dir2d.h"
43 #include "GeomAPI_Edge.h"
44 #include "GeomAPI_Ellipse.h"
45 #include "GeomAPI_Ellipse2d.h"
46 #include "GeomAPI_Face.h"
47 #include "GeomAPI_ICustomPrs.h"
48 #include "GeomAPI_Interface.h"
49 #include "GeomAPI_IPresentable.h"
50 #include "GeomAPI_Lin.h"
51 #include "GeomAPI_Lin2d.h"
52 #include "GeomAPI_PlanarEdges.h"
53 #include "GeomAPI_Pln.h"
54 #include "GeomAPI_Pnt.h"
55 #include "GeomAPI_Pnt2d.h"
56 #include "GeomAPI_Shape.h"
57 #include "GeomAPI_ShapeExplorer.h"
58 #include "GeomAPI_ShapeIterator.h"
59 #include "GeomAPI_Shell.h"
60 #include "GeomAPI_Solid.h"
61 #include "GeomAPI_Sphere.h"
62 #include "GeomAPI_Torus.h"
63 #include "GeomAPI_Trsf.h"
64 #include "GeomAPI_Vertex.h"
65 #include "GeomAPI_Wire.h"
66 #include "GeomAPI_WireExplorer.h"
67 #include "GeomAPI_XY.h"
68 #include "GeomAPI_XYZ.h"
69
70 #include <memory>
71 #include <string>
72
73 #ifdef _MSC_VER
74 # pragma warning(disable: 4127) // conditional expression is constant
75 # pragma warning(disable: 4456) // declaration of variable hides previous local declaration
76 # pragma warning(disable: 4459) // declaration of variable hides global declaration
77 # pragma warning(disable: 4701) // potentially uninitialized local variable
78 # pragma warning(disable: 4703) // potentially uninitialized local pointer variable
79 #endif
80
81 template<class T1, class T2>
82 std::shared_ptr<T1> shared_ptr_cast(std::shared_ptr<T2> theObject)
83 {
84 return std::dynamic_pointer_cast<T1>(theObject);
85 }
86
87#endif /* SRC_GEOMAPI_GEOMAPI_SWIG_H_ */