]> SALOME platform Git repositories - modules/geom.git/blob - src/GEOM_I/GEOM_IShapesOperations_i.hh
Salome HOME
Issue 0013373: EDF PAL 273 : Option Single/Multi file dump
[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 MakeEdgeOnCurveByLength (GEOM::GEOM_Object_ptr theCurve,
49                                                  CORBA::Double         theLength,
50                                                  GEOM::GEOM_Object_ptr theStartPoint);
51
52   GEOM::GEOM_Object_ptr MakeEdgeWire (GEOM::GEOM_Object_ptr theWire,
53                                       const CORBA::Double theLinearTolerance,
54                                       const CORBA::Double theAngularTolerance);
55
56   GEOM::GEOM_Object_ptr MakeWire (const GEOM::ListOfGO& theEdgesAndWires,
57                                   const CORBA::Double   theTolerance);
58
59   GEOM::GEOM_Object_ptr MakeFace (GEOM::GEOM_Object_ptr theWire,
60                                   CORBA::Boolean  isPlanarWanted);
61
62   GEOM::GEOM_Object_ptr MakeFaceWires (const GEOM::ListOfGO& theWires,
63                                        CORBA::Boolean  isPlanarWanted);
64
65   GEOM::GEOM_Object_ptr MakeShell (const GEOM::ListOfGO& theFacesAndShells);
66
67   GEOM::GEOM_Object_ptr MakeSolidShell (GEOM::GEOM_Object_ptr theShell);
68
69   GEOM::GEOM_Object_ptr MakeSolidShells (const GEOM::ListOfGO& theShells);
70
71   GEOM::GEOM_Object_ptr MakeCompound (const GEOM::ListOfGO& theShapes);
72
73   GEOM::GEOM_Object_ptr MakeGlueFaces (GEOM::GEOM_Object_ptr theShape,
74                                        CORBA::Double         theTolerance,
75                                        CORBA::Boolean        doKeepNonSolids);
76
77   GEOM::ListOfGO* GetGlueFaces (GEOM::GEOM_Object_ptr theShape,
78                                 CORBA::Double         theTolerance);
79
80   GEOM::GEOM_Object_ptr MakeGlueFacesByList (GEOM::GEOM_Object_ptr theShape,
81                                              CORBA::Double         theTolerance,
82                                              const GEOM::ListOfGO& theFaces,
83                                              CORBA::Boolean  doKeepNonSolids);
84
85   GEOM::ListOfGO* GetExistingSubObjects (GEOM::GEOM_Object_ptr theShape,
86                                          CORBA::Boolean        theGroupsOnly);
87
88   // For old SubShapeAll()
89   // Deprecated, use MakeAllSubShapes() instead
90   GEOM::ListOfGO* MakeExplode (GEOM::GEOM_Object_ptr theShape,
91                                CORBA::Long           theShapeType,
92                                CORBA::Boolean        isSorted);
93
94   GEOM::ListOfGO* MakeAllSubShapes (GEOM::GEOM_Object_ptr theShape,
95                                     CORBA::Long           theShapeType,
96                                     CORBA::Boolean        isSorted);
97
98   GEOM::ListOfGO* ExtractSubShapes (GEOM::GEOM_Object_ptr theShape,
99                                     CORBA::Long           theShapeType,
100                                     CORBA::Boolean        isSorted);
101
102   // Deprecated, use GetAllSubShapesIDs() instead
103   GEOM::ListOfLong* SubShapeAllIDs (GEOM::GEOM_Object_ptr theShape,
104                                     CORBA::Long           theShapeType,
105                                     CORBA::Boolean        isSorted);
106
107   GEOM::ListOfLong* GetAllSubShapesIDs (GEOM::GEOM_Object_ptr theShape,
108                                         CORBA::Long           theShapeType,
109                                         CORBA::Boolean        isSorted);
110
111   GEOM::GEOM_Object_ptr GetSubShape (GEOM::GEOM_Object_ptr theMainShape,
112                                      CORBA::Long           theID);
113
114   CORBA::Long GetSubShapeIndex (GEOM::GEOM_Object_ptr theMainShape,
115                                 GEOM::GEOM_Object_ptr theSubShape);
116
117   CORBA::Long GetTopologyIndex (GEOM::GEOM_Object_ptr theMainShape,
118                                 GEOM::GEOM_Object_ptr theSubShape);
119
120   char* GetShapeTypeString (GEOM::GEOM_Object_ptr theShape);
121
122   CORBA::Long NumberOfFaces (GEOM::GEOM_Object_ptr theShape);
123   CORBA::Long NumberOfEdges (GEOM::GEOM_Object_ptr theShape);
124   CORBA::Long NumberOfSubShapes (GEOM::GEOM_Object_ptr theShape,
125                                  const CORBA::Long     theShapeType);
126
127   GEOM::GEOM_Object_ptr ChangeOrientation (GEOM::GEOM_Object_ptr theShape);
128
129   GEOM::ListOfLong* GetFreeFacesIDs (GEOM::GEOM_Object_ptr theShape);
130
131   GEOM::ListOfGO* GetSharedShapes (GEOM::GEOM_Object_ptr theShape1,
132                                    GEOM::GEOM_Object_ptr theShape2,
133                                    CORBA::Long           theShapeType);
134
135   GEOM::ListOfGO* GetSharedShapesMulti (const GEOM::ListOfGO& theShapes,
136                                         CORBA::Long           theShapeType);
137
138   GEOM::ListOfGO* GetShapesOnPlane (GEOM::GEOM_Object_ptr theShape,
139                                     CORBA::Long           theShapeType,
140                                     GEOM::GEOM_Object_ptr theAx1,
141                                     GEOM::shape_state     theState);
142
143   GEOM::ListOfGO* GetShapesOnPlaneWithLocation(GEOM::GEOM_Object_ptr theShape,
144                                                CORBA::Long           theShapeType,
145                                                GEOM::GEOM_Object_ptr theAx1,
146                                                GEOM::GEOM_Object_ptr thePnt,
147                                                GEOM::shape_state     theState);
148
149   GEOM::ListOfGO* GetShapesOnCylinder (GEOM::GEOM_Object_ptr theShape,
150                                        CORBA::Long           theShapeType,
151                                        GEOM::GEOM_Object_ptr theAxis,
152                                        CORBA::Double         theRadius,
153                                        GEOM::shape_state     theState);
154
155   GEOM::ListOfGO* GetShapesOnCylinderWithLocation (GEOM::GEOM_Object_ptr theShape,
156                                                    CORBA::Long           theShapeType,
157                                                    GEOM::GEOM_Object_ptr theAxis,
158                                                    GEOM::GEOM_Object_ptr thePnt,
159                                                    CORBA::Double         theRadius,
160                                                    GEOM::shape_state     theState);
161
162   GEOM::ListOfGO* GetShapesOnSphere (GEOM::GEOM_Object_ptr theShape,
163                                      CORBA::Long           theShapeType,
164                                      GEOM::GEOM_Object_ptr theCenter,
165                                      CORBA::Double         theRadius,
166                                      GEOM::shape_state     theState);
167
168   GEOM::ListOfGO* GetShapesOnQuadrangle (GEOM::GEOM_Object_ptr theShape,
169                                          CORBA::Long           theShapeType,
170                                          GEOM::GEOM_Object_ptr theTopLeftPoint,
171                                          GEOM::GEOM_Object_ptr theTopRigthPoint,
172                                          GEOM::GEOM_Object_ptr theBottomLeftPoint,
173                                          GEOM::GEOM_Object_ptr theBottomRigthPoint,
174                                          GEOM::shape_state     theState);
175
176   GEOM::ListOfLong* GetShapesOnPlaneIDs (GEOM::GEOM_Object_ptr theShape,
177                                          CORBA::Long           theShapeType,
178                                          GEOM::GEOM_Object_ptr theAx1,
179                                          GEOM::shape_state     theState);
180
181   GEOM::ListOfLong* GetShapesOnPlaneWithLocationIDs (GEOM::GEOM_Object_ptr theShape,
182                                                      CORBA::Long           theShapeType,
183                                                      GEOM::GEOM_Object_ptr theAx1,
184                                                      GEOM::GEOM_Object_ptr thePnt,
185                                                      GEOM::shape_state     theState);
186
187   GEOM::ListOfLong* GetShapesOnCylinderIDs (GEOM::GEOM_Object_ptr theShape,
188                                             CORBA::Long           theShapeType,
189                                             GEOM::GEOM_Object_ptr theAxis,
190                                             CORBA::Double         theRadius,
191                                             GEOM::shape_state     theState);
192
193   GEOM::ListOfLong* GetShapesOnCylinderWithLocationIDs (GEOM::GEOM_Object_ptr theShape,
194                                                         CORBA::Long           theShapeType,
195                                                         GEOM::GEOM_Object_ptr theAxis,
196                                                         GEOM::GEOM_Object_ptr thePnt,
197                                                         CORBA::Double         theRadius,
198                                                         GEOM::shape_state     theState);
199
200   GEOM::ListOfLong* GetShapesOnSphereIDs (GEOM::GEOM_Object_ptr theShape,
201                                           CORBA::Long           theShapeType,
202                                           GEOM::GEOM_Object_ptr theCenter,
203                                           CORBA::Double         theRadius,
204                                           GEOM::shape_state     theState);
205
206   GEOM::ListOfLong* GetShapesOnQuadrangleIDs (GEOM::GEOM_Object_ptr theShape,
207                                               CORBA::Long           theShapeType,
208                                               GEOM::GEOM_Object_ptr theTopLeftPoint,
209                                               GEOM::GEOM_Object_ptr theTopRigthPoint,
210                                               GEOM::GEOM_Object_ptr theBottomLeftPoint,
211                                               GEOM::GEOM_Object_ptr theBottomRigthPoint,
212                                               GEOM::shape_state     theState);
213
214   GEOM::ListOfGO* GetShapesOnBox (GEOM::GEOM_Object_ptr theBox,
215                                   GEOM::GEOM_Object_ptr theShape,
216                                   CORBA::Long           theShapeType,
217                                   GEOM::shape_state     theState);
218
219   GEOM::ListOfLong* GetShapesOnBoxIDs (GEOM::GEOM_Object_ptr theBox,
220                                        GEOM::GEOM_Object_ptr theShape,
221                                        CORBA::Long           theShapeType,
222                                        GEOM::shape_state     theState);
223
224   GEOM::ListOfGO* GetShapesOnShape (GEOM::GEOM_Object_ptr theSheckShape,
225                                     GEOM::GEOM_Object_ptr theShape,
226                                     CORBA::Short          theShapeType,
227                                     GEOM::shape_state     theState);
228
229   GEOM::GEOM_Object_ptr GetShapesOnShapeAsCompound
230                                    (GEOM::GEOM_Object_ptr theSheckShape,
231                                     GEOM::GEOM_Object_ptr theShape,
232                                     CORBA::Short          theShapeType,
233                                     GEOM::shape_state     theState);
234
235   GEOM::ListOfLong* GetShapesOnShapeIDs (GEOM::GEOM_Object_ptr theCheckShape,
236                                          GEOM::GEOM_Object_ptr theShape,
237                                          CORBA::Short          theShapeType,
238                                          GEOM::shape_state     theState);
239
240   GEOM::GEOM_Object_ptr GetInPlace (GEOM::GEOM_Object_ptr theShapeWhere,
241                                     GEOM::GEOM_Object_ptr theShapeWhat);
242
243   GEOM::GEOM_Object_ptr GetInPlaceByHistory (GEOM::GEOM_Object_ptr theShapeWhere,
244                                              GEOM::GEOM_Object_ptr theShapeWhat);
245
246   GEOM::GEOM_Object_ptr GetSame (GEOM::GEOM_Object_ptr theShapeWhere,
247                                  GEOM::GEOM_Object_ptr theShapeWhat);
248
249   ::GEOMImpl_IShapesOperations* GetOperations()
250   { return (::GEOMImpl_IShapesOperations*)GetImpl(); }
251 };
252
253 #endif