Salome HOME
Fix for the Bug IPAL22045 TC5.1.5: Dump python doesn't restore GEOM-012 result
[modules/geom.git] / src / GEOM_I / GEOM_IShapesOperations_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 #ifndef _GEOM_IShapesOperations_i_HeaderFile
23 #define _GEOM_IShapesOperations_i_HeaderFile
24
25 #include "GEOMImpl_Gen.hxx"
26
27 #include <SALOMEconfig.h>
28
29 #include CORBA_SERVER_HEADER(GEOM_Gen)
30 #include "GEOM_IOperations_i.hh"
31 #include "GEOM_Object_i.hh"
32
33 #include "GEOMImpl_IShapesOperations.hxx"
34
35 class GEOM_I_EXPORT GEOM_IShapesOperations_i :
36     public virtual POA_GEOM::GEOM_IShapesOperations,
37     public virtual GEOM_IOperations_i
38 {
39  public:
40   GEOM_IShapesOperations_i (PortableServer::POA_ptr       thePOA,
41                             GEOM::GEOM_Gen_ptr            theEngine,
42                             ::GEOMImpl_IShapesOperations* theImpl);
43   ~GEOM_IShapesOperations_i();
44
45   GEOM::GEOM_Object_ptr MakeEdge (GEOM::GEOM_Object_ptr thePnt1,
46                                   GEOM::GEOM_Object_ptr thePnt2);
47
48   GEOM::GEOM_Object_ptr MakeWire (const GEOM::ListOfGO& theEdgesAndWires,
49                                   const CORBA::Double   theTolerance);
50
51   GEOM::GEOM_Object_ptr MakeFace (GEOM::GEOM_Object_ptr theWire,
52                                   CORBA::Boolean  isPlanarWanted);
53
54   GEOM::GEOM_Object_ptr MakeFaceWires (const GEOM::ListOfGO& theWires,
55                                        CORBA::Boolean  isPlanarWanted);
56
57   GEOM::GEOM_Object_ptr MakeShell (const GEOM::ListOfGO& theFacesAndShells);
58
59   GEOM::GEOM_Object_ptr MakeSolidShell (GEOM::GEOM_Object_ptr theShell);
60
61   GEOM::GEOM_Object_ptr MakeSolidShells (const GEOM::ListOfGO& theShells);
62
63   GEOM::GEOM_Object_ptr MakeCompound (const GEOM::ListOfGO& theShapes);
64
65   GEOM::GEOM_Object_ptr MakeGlueFaces (GEOM::GEOM_Object_ptr theShape,
66                                        CORBA::Double         theTolerance,
67                                        CORBA::Boolean        doKeepNonSolids);
68
69   GEOM::ListOfGO* GetGlueFaces (GEOM::GEOM_Object_ptr theShape,
70                                 CORBA::Double         theTolerance);
71
72   GEOM::GEOM_Object_ptr MakeGlueFacesByList (GEOM::GEOM_Object_ptr theShape,
73                                              CORBA::Double         theTolerance,
74                                              const GEOM::ListOfGO& theFaces,
75                                              CORBA::Boolean  doKeepNonSolids);
76
77   GEOM::ListOfGO* GetExistingSubObjects (GEOM::GEOM_Object_ptr theShape,
78                                          CORBA::Boolean        theGroupsOnly);
79
80   GEOM::ListOfGO* MakeExplode (GEOM::GEOM_Object_ptr theShape,
81                                CORBA::Long           theShapeType,
82                                CORBA::Boolean  isSorted);
83
84   GEOM::ListOfLong* SubShapeAllIDs (GEOM::GEOM_Object_ptr theShape,
85                                     CORBA::Long           theShapeType,
86                                     CORBA::Boolean  isSorted);
87
88   GEOM::GEOM_Object_ptr GetSubShape (GEOM::GEOM_Object_ptr theMainShape,
89                                      CORBA::Long           theID);
90
91   CORBA::Long GetSubShapeIndex (GEOM::GEOM_Object_ptr theMainShape,
92                                 GEOM::GEOM_Object_ptr theSubShape);
93
94   CORBA::Long GetTopologyIndex (GEOM::GEOM_Object_ptr theMainShape,
95                                 GEOM::GEOM_Object_ptr theSubShape);
96
97   char* GetShapeTypeString (GEOM::GEOM_Object_ptr theShape);
98
99   CORBA::Long NumberOfFaces (GEOM::GEOM_Object_ptr theShape);
100   CORBA::Long NumberOfEdges (GEOM::GEOM_Object_ptr theShape);
101   CORBA::Long NumberOfSubShapes (GEOM::GEOM_Object_ptr theShape,
102                                  const CORBA::Long     theShapeType);
103
104   GEOM::GEOM_Object_ptr ChangeOrientation (GEOM::GEOM_Object_ptr theShape);
105
106   GEOM::ListOfLong* GetFreeFacesIDs (GEOM::GEOM_Object_ptr theShape);
107
108   GEOM::ListOfGO* GetSharedShapes (GEOM::GEOM_Object_ptr theShape1,
109                                    GEOM::GEOM_Object_ptr theShape2,
110                                    CORBA::Long           theShapeType);
111
112   GEOM::ListOfGO* GetShapesOnPlane (GEOM::GEOM_Object_ptr theShape,
113                                     CORBA::Long           theShapeType,
114                                     GEOM::GEOM_Object_ptr theAx1,
115                                     GEOM::shape_state     theState);
116
117   GEOM::ListOfGO* GetShapesOnPlaneWithLocation(GEOM::GEOM_Object_ptr theShape,
118                                                CORBA::Long           theShapeType,
119                                                GEOM::GEOM_Object_ptr theAx1,
120                                                GEOM::GEOM_Object_ptr thePnt,
121                                                GEOM::shape_state     theState);
122
123   GEOM::ListOfGO* GetShapesOnCylinder (GEOM::GEOM_Object_ptr theShape,
124                                        CORBA::Long           theShapeType,
125                                        GEOM::GEOM_Object_ptr theAxis,
126                                        CORBA::Double         theRadius,
127                                        GEOM::shape_state     theState);
128
129   GEOM::ListOfGO* GetShapesOnCylinderWithLocation (GEOM::GEOM_Object_ptr theShape,
130                                                    CORBA::Long           theShapeType,
131                                                    GEOM::GEOM_Object_ptr theAxis,
132                                                    GEOM::GEOM_Object_ptr thePnt,
133                                                    CORBA::Double         theRadius,
134                                                    GEOM::shape_state     theState);
135
136   GEOM::ListOfGO* GetShapesOnSphere (GEOM::GEOM_Object_ptr theShape,
137                                      CORBA::Long           theShapeType,
138                                      GEOM::GEOM_Object_ptr theCenter,
139                                      CORBA::Double         theRadius,
140                                      GEOM::shape_state     theState);
141
142   GEOM::ListOfGO* GetShapesOnQuadrangle (GEOM::GEOM_Object_ptr theShape,
143                                          CORBA::Long           theShapeType,
144                                          GEOM::GEOM_Object_ptr theTopLeftPoint,
145                                          GEOM::GEOM_Object_ptr theTopRigthPoint,
146                                          GEOM::GEOM_Object_ptr theBottomLeftPoint,
147                                          GEOM::GEOM_Object_ptr theBottomRigthPoint,
148                                          GEOM::shape_state     theState);
149
150   GEOM::ListOfLong* GetShapesOnPlaneIDs (GEOM::GEOM_Object_ptr theShape,
151                                          CORBA::Long           theShapeType,
152                                          GEOM::GEOM_Object_ptr theAx1,
153                                          GEOM::shape_state     theState);
154
155   GEOM::ListOfLong* GetShapesOnPlaneWithLocationIDs (GEOM::GEOM_Object_ptr theShape,
156                                                      CORBA::Long           theShapeType,
157                                                      GEOM::GEOM_Object_ptr theAx1,
158                                                      GEOM::GEOM_Object_ptr thePnt,
159                                                      GEOM::shape_state     theState);
160
161   GEOM::ListOfLong* GetShapesOnCylinderIDs (GEOM::GEOM_Object_ptr theShape,
162                                             CORBA::Long           theShapeType,
163                                             GEOM::GEOM_Object_ptr theAxis,
164                                             CORBA::Double         theRadius,
165                                             GEOM::shape_state     theState);
166
167   GEOM::ListOfLong* GetShapesOnCylinderWithLocationIDs (GEOM::GEOM_Object_ptr theShape,
168                                                         CORBA::Long           theShapeType,
169                                                         GEOM::GEOM_Object_ptr theAxis,
170                                                         GEOM::GEOM_Object_ptr thePnt,
171                                                         CORBA::Double         theRadius,
172                                                         GEOM::shape_state     theState);
173
174   GEOM::ListOfLong* GetShapesOnSphereIDs (GEOM::GEOM_Object_ptr theShape,
175                                           CORBA::Long           theShapeType,
176                                           GEOM::GEOM_Object_ptr theCenter,
177                                           CORBA::Double         theRadius,
178                                           GEOM::shape_state     theState);
179
180   GEOM::ListOfLong* GetShapesOnQuadrangleIDs (GEOM::GEOM_Object_ptr theShape,
181                                               CORBA::Long           theShapeType,
182                                               GEOM::GEOM_Object_ptr theTopLeftPoint,
183                                               GEOM::GEOM_Object_ptr theTopRigthPoint,
184                                               GEOM::GEOM_Object_ptr theBottomLeftPoint,
185                                               GEOM::GEOM_Object_ptr theBottomRigthPoint,
186                                               GEOM::shape_state     theState);
187
188   GEOM::ListOfGO* GetShapesOnBox (GEOM::GEOM_Object_ptr theBox,
189                                   GEOM::GEOM_Object_ptr theShape,
190                                   CORBA::Long           theShapeType,
191                                   GEOM::shape_state     theState);
192
193   GEOM::ListOfLong* GetShapesOnBoxIDs (GEOM::GEOM_Object_ptr theBox,
194                                        GEOM::GEOM_Object_ptr theShape,
195                                        CORBA::Long           theShapeType,
196                                        GEOM::shape_state     theState);
197
198   GEOM::ListOfGO* GetShapesOnShape (GEOM::GEOM_Object_ptr theSheckShape,
199                                     GEOM::GEOM_Object_ptr theShape,
200                                     CORBA::Short          theShapeType,
201                                     GEOM::shape_state     theState);
202
203   GEOM::GEOM_Object_ptr GetShapesOnShapeAsCompound
204                                    (GEOM::GEOM_Object_ptr theSheckShape,
205                                     GEOM::GEOM_Object_ptr theShape,
206                                     CORBA::Short          theShapeType,
207                                     GEOM::shape_state     theState);
208
209   GEOM::ListOfLong* GetShapesOnShapeIDs (GEOM::GEOM_Object_ptr theCheckShape,
210                                          GEOM::GEOM_Object_ptr theShape,
211                                          CORBA::Short          theShapeType,
212                                          GEOM::shape_state     theState);
213
214   GEOM::GEOM_Object_ptr GetInPlace (GEOM::GEOM_Object_ptr theShapeWhere,
215                                     GEOM::GEOM_Object_ptr theShapeWhat);
216
217   GEOM::GEOM_Object_ptr GetInPlaceByHistory (GEOM::GEOM_Object_ptr theShapeWhere,
218                                              GEOM::GEOM_Object_ptr theShapeWhat);
219
220   GEOM::GEOM_Object_ptr GetSame (GEOM::GEOM_Object_ptr theShapeWhere,
221                                  GEOM::GEOM_Object_ptr theShapeWhat);
222
223   ::GEOMImpl_IShapesOperations* GetOperations()
224   { return (::GEOMImpl_IShapesOperations*)GetImpl(); }
225 };
226
227 #endif