Salome HOME
4c62cea040e8ce8f8fbc4b4c2f01b03748cc7887
[modules/shaper.git] / src / GeomAPI / GeomAPI_swig.h
1 // Copyright (C) 2014-2023  CEA/DEN, EDF R&D
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_Dir.h"
41   #include "GeomAPI_Dir2d.h"
42   #include "GeomAPI_Edge.h"
43   #include "GeomAPI_Ellipse.h"
44   #include "GeomAPI_Ellipse2d.h"
45   #include "GeomAPI_Face.h"
46   #include "GeomAPI_ICustomPrs.h"
47   #include "GeomAPI_Interface.h"
48   #include "GeomAPI_IPresentable.h"
49   #include "GeomAPI_Lin.h"
50   #include "GeomAPI_Lin2d.h"
51   #include "GeomAPI_PlanarEdges.h"
52   #include "GeomAPI_Pln.h"
53   #include "GeomAPI_Pnt.h"
54   #include "GeomAPI_Pnt2d.h"
55   #include "GeomAPI_Shape.h"
56   #include "GeomAPI_ShapeExplorer.h"
57   #include "GeomAPI_ShapeIterator.h"
58   #include "GeomAPI_Shell.h"
59   #include "GeomAPI_Solid.h"
60   #include "GeomAPI_Sphere.h"
61   #include "GeomAPI_Torus.h"
62   #include "GeomAPI_Trsf.h"
63   #include "GeomAPI_Vertex.h"
64   #include "GeomAPI_Wire.h"
65   #include "GeomAPI_WireExplorer.h"
66   #include "GeomAPI_XY.h"
67   #include "GeomAPI_XYZ.h"
68
69   #include <memory>
70   #include <string>
71
72   #ifdef _MSC_VER
73   # pragma warning(disable: 4127) // conditional expression is constant
74   # pragma warning(disable: 4456) // declaration of variable hides previous local declaration
75   # pragma warning(disable: 4459) // declaration of variable hides global declaration
76   # pragma warning(disable: 4701) // potentially uninitialized local variable
77   # pragma warning(disable: 4703) // potentially uninitialized local pointer variable
78   #endif
79
80   template<class T1, class T2>
81   std::shared_ptr<T1> shared_ptr_cast(std::shared_ptr<T2> theObject)
82   {
83     return std::dynamic_pointer_cast<T1>(theObject);
84   }
85
86 #endif /* SRC_GEOMAPI_GEOMAPI_SWIG_H_ */