Salome HOME
Correct make file for shared modules script
[modules/geom.git] / src / GEOMImpl / GEOMImpl_ILocalOperations.hxx
1 //  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 //  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 //  This library is free software; you can redistribute it and/or
7 //  modify it under the terms of the GNU Lesser General Public
8 //  License as published by the Free Software Foundation; either
9 //  version 2.1 of the License.
10 //
11 //  This library is distributed in the hope that it will be useful,
12 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 //  Lesser General Public License for more details.
15 //
16 //  You should have received a copy of the GNU Lesser General Public
17 //  License along with this library; if not, write to the Free Software
18 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 //
20 //  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 #ifndef _GEOMImpl_ILocalOperations_HXX_
23 #define _GEOMImpl_ILocalOperations_HXX_
24
25 #include "Utils_SALOME_Exception.hxx"
26 #include "GEOM_IOperations.hxx"
27 #include "GEOM_Engine.hxx"
28 #include "GEOM_Object.hxx"
29 #include <TDocStd_Document.hxx>
30
31 #include <list>
32
33 class GEOMImpl_ILocalOperations : public GEOM_IOperations {
34  public:
35   Standard_EXPORT GEOMImpl_ILocalOperations(GEOM_Engine* theEngine, int theDocID);
36   Standard_EXPORT ~GEOMImpl_ILocalOperations();
37
38   Standard_EXPORT Handle(GEOM_Object) MakeFilletAll   (Handle(GEOM_Object) theShape, double theR);
39   Standard_EXPORT Handle(GEOM_Object) MakeFilletEdges (Handle(GEOM_Object) theShape, double theR,
40                                        std::list<int> theEdges);
41   Standard_EXPORT Handle(GEOM_Object) MakeFilletEdgesR1R2 (Handle(GEOM_Object) theShape,
42                                                            double theR1, double theR2,
43                                                            std::list<int> theEdges);
44   Standard_EXPORT Handle(GEOM_Object) MakeFilletFaces (Handle(GEOM_Object) theShape, double theR,
45                                        std::list<int> theFaces);
46   Standard_EXPORT Handle(GEOM_Object) MakeFilletFacesR1R2 (Handle(GEOM_Object) theShape,
47                                                            double theR1, double theR2,
48                                                            std::list<int> theFaces);
49
50   Standard_EXPORT Handle(GEOM_Object) MakeChamferAll   (Handle(GEOM_Object) theShape, double theD);
51   Standard_EXPORT Handle(GEOM_Object) MakeChamferEdge  (Handle(GEOM_Object) theShape,
52                                         double theD1, double theD2,
53                                         int theFace1, int theFace2);
54   Standard_EXPORT Handle(GEOM_Object) MakeChamferEdgeAD  (Handle(GEOM_Object) theShape,
55                                         double theD, double theAngle,
56                                         int theFace1, int theFace2);
57   Standard_EXPORT Handle(GEOM_Object) MakeChamferFaces (Handle(GEOM_Object) theShape,
58                                         double theD1, double theD2,
59                                         std::list<int> theFaces);
60   Standard_EXPORT Handle(GEOM_Object) MakeChamferFacesAD (Handle(GEOM_Object) theShape,
61                                         double theD, double theAngle,
62                                         std::list<int> theFaces);
63   Standard_EXPORT Handle(GEOM_Object) MakeChamferEdges (Handle(GEOM_Object) theShape,
64                                         double theD1, double theD2,
65                                         std::list<int> theEdges);
66   Standard_EXPORT Handle(GEOM_Object) MakeChamferEdgesAD (Handle(GEOM_Object) theShape,
67                                         double theD, double theAngle,
68                                         std::list<int> theEdges);
69   Standard_EXPORT Handle(GEOM_Object) MakeArchimede (Handle(GEOM_Object) theShape,
70                                      double theWeight, double theWaterDensity,
71                                      double theMeshingDeflection);
72
73   Standard_EXPORT Standard_Integer GetSubShapeIndex (Handle(GEOM_Object) theShape,
74                                      Handle(GEOM_Object) theSubShape);
75
76   Standard_EXPORT static bool GetSubShape (const TopoDS_Shape& theShape,
77                            const int theIndex,
78                            TopoDS_Shape& theSubShape);
79 };
80
81 #endif