Salome HOME
Merge from V5_1_main 14/05/2010
[modules/geom.git] / src / GEOM_I / GEOM_ILocalOperations_i.hh
1 //  Copyright (C) 2007-2010  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
23 #ifndef _GEOM_ILocalOperations_i_HeaderFile
24 #define _GEOM_ILocalOperations_i_HeaderFile
25
26 #include "GEOMImpl_Gen.hxx"
27
28 #include <SALOMEconfig.h>
29
30 #include CORBA_SERVER_HEADER(GEOM_Gen)
31 #include "GEOM_IOperations_i.hh"
32 #include "GEOM_Object_i.hh"
33
34 #include "GEOMImpl_ILocalOperations.hxx"
35
36 class GEOM_I_EXPORT GEOM_ILocalOperations_i : 
37     public virtual POA_GEOM::GEOM_ILocalOperations,
38     public virtual GEOM_IOperations_i
39 {
40  public:
41   GEOM_ILocalOperations_i (PortableServer::POA_ptr thePOA, GEOM::GEOM_Gen_ptr theEngine,
42                            ::GEOMImpl_ILocalOperations* theImpl);
43   ~GEOM_ILocalOperations_i();
44
45   GEOM::GEOM_Object_ptr MakeFilletAll   (GEOM::GEOM_Object_ptr theShape,
46                                          CORBA::Double theR);
47
48   GEOM::GEOM_Object_ptr MakeFilletEdges (GEOM::GEOM_Object_ptr theShape, CORBA::Double theR,
49                                          const GEOM::ListOfLong& theEdges);
50
51   GEOM::GEOM_Object_ptr MakeFilletEdgesR1R2 (GEOM::GEOM_Object_ptr theShape,
52                                              CORBA::Double theR1,
53                                              CORBA::Double theR2,
54                                              const GEOM::ListOfLong& theEdges);
55
56   GEOM::GEOM_Object_ptr MakeFilletFaces (GEOM::GEOM_Object_ptr theShape, CORBA::Double theR,
57                                          const GEOM::ListOfLong& theFaces);
58
59   GEOM::GEOM_Object_ptr MakeFilletFacesR1R2 (GEOM::GEOM_Object_ptr theShape,
60                                              CORBA::Double theR1,
61                                              CORBA::Double theR2,
62                                              const GEOM::ListOfLong& theFaces);
63                                              
64   GEOM::GEOM_Object_ptr MakeFillet2D (GEOM::GEOM_Object_ptr theShape, CORBA::Double theR,
65                                       const GEOM::ListOfLong& theVertexes);
66
67   GEOM::GEOM_Object_ptr MakeFillet1D (GEOM::GEOM_Object_ptr theShape, CORBA::Double theR,
68                                       const GEOM::ListOfLong& theVertexes);
69
70   GEOM::GEOM_Object_ptr MakeChamferAll   (GEOM::GEOM_Object_ptr theShape, CORBA::Double theD);
71
72   GEOM::GEOM_Object_ptr MakeChamferEdge  (GEOM::GEOM_Object_ptr theShape,
73                                           CORBA::Double theD1, CORBA::Double theD2,
74                                           CORBA::Long theFace1, CORBA::Long theFace2);
75
76   GEOM::GEOM_Object_ptr MakeChamferEdgeAD  (GEOM::GEOM_Object_ptr theShape,
77                                             CORBA::Double theD, CORBA::Double theAngle,
78                                             CORBA::Long theFace1, CORBA::Long theFace2);
79
80   GEOM::GEOM_Object_ptr MakeChamferFaces (GEOM::GEOM_Object_ptr theShape,
81                                           CORBA::Double theD1, CORBA::Double theD2,
82                                           const GEOM::ListOfLong& theFaces);
83
84   GEOM::GEOM_Object_ptr MakeChamferFacesAD (GEOM::GEOM_Object_ptr theShape,
85                                             CORBA::Double theD, CORBA::Double theAngle,
86                                             const GEOM::ListOfLong& theFaces);
87
88   GEOM::GEOM_Object_ptr MakeChamferEdges (GEOM::GEOM_Object_ptr theShape,
89                                           CORBA::Double theD1, CORBA::Double theD2,
90                                           const GEOM::ListOfLong& theEdges);
91
92   GEOM::GEOM_Object_ptr MakeChamferEdgesAD (GEOM::GEOM_Object_ptr theShape,
93                                             CORBA::Double theD, CORBA::Double theAngle,
94                                             const GEOM::ListOfLong& theEdges);
95
96   GEOM::GEOM_Object_ptr MakeArchimede (GEOM::GEOM_Object_ptr theShape,
97                                        CORBA::Double theWeight,
98                                        CORBA::Double theWaterDensity,
99                                        CORBA::Double theMeshingDeflection);
100
101   CORBA::Long GetSubShapeIndex (GEOM::GEOM_Object_ptr theShape,
102                                 GEOM::GEOM_Object_ptr theSubShape);
103
104   ::GEOMImpl_ILocalOperations* GetOperations()
105   { return (::GEOMImpl_ILocalOperations*)GetImpl(); }
106 };
107
108 #endif