Salome HOME
e3877b63b97b51d6024012c16e3fbab7e8223442
[modules/geom.git] / src / GEOMImpl / GEOMImpl_ILocalOperations.hxx
1 // Copyright (C) 2007-2012  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   Standard_EXPORT Handle(GEOM_Object) MakeFillet2D (Handle(GEOM_Object) theShape, double theR,
50                                                     std::list<int> theVertexes);
51   Standard_EXPORT Handle(GEOM_Object) MakeFillet1D (Handle(GEOM_Object) theShape, double theR,
52                                                     std::list<int> theVertexes, bool doIgnoreSecantVertices);
53
54   Standard_EXPORT Handle(GEOM_Object) MakeChamferAll   (Handle(GEOM_Object) theShape, double theD);
55   Standard_EXPORT Handle(GEOM_Object) MakeChamferEdge  (Handle(GEOM_Object) theShape,
56                                         double theD1, double theD2,
57                                         int theFace1, int theFace2);
58   Standard_EXPORT Handle(GEOM_Object) MakeChamferEdgeAD  (Handle(GEOM_Object) theShape,
59                                         double theD, double theAngle,
60                                         int theFace1, int theFace2);
61   Standard_EXPORT Handle(GEOM_Object) MakeChamferFaces (Handle(GEOM_Object) theShape,
62                                                         double theD1, double theD2,
63                                                         std::list<int> theFaces);
64   Standard_EXPORT Handle(GEOM_Object) MakeChamferFacesAD (Handle(GEOM_Object) theShape,
65                                                           double theD, double theAngle,
66                                                           std::list<int> theFaces);
67   Standard_EXPORT Handle(GEOM_Object) MakeChamferEdges (Handle(GEOM_Object) theShape,
68                                                         double theD1, double theD2,
69                                                         std::list<int> theEdges);
70   Standard_EXPORT Handle(GEOM_Object) MakeChamferEdgesAD (Handle(GEOM_Object) theShape,
71                                                           double theD, double theAngle,
72                                                           std::list<int> theEdges);
73   Standard_EXPORT Handle(GEOM_Object) MakeArchimede (Handle(GEOM_Object) theShape,
74                                                      double theWeight, double theWaterDensity,
75                                                      double theMeshingDeflection);
76   
77   Standard_EXPORT Standard_Integer GetSubShapeIndex (Handle(GEOM_Object) theShape,
78                                                      Handle(GEOM_Object) theSubShape);
79   
80   Standard_EXPORT static bool GetSubShape (const TopoDS_Shape& theShape,
81                                            const int theIndex,
82                                            TopoDS_Shape& theSubShape);
83 };
84
85 #endif