Salome HOME
Fix for bug 0019870(Import/Export should show current directory).
[modules/geom.git] / src / GEOM_I_Superv / GEOM_Superv_i.hh
1 // Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
3 // 
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either 
7 // version 2.1 of the License.
8 // 
9 // This library is distributed in the hope that it will be useful 
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
12 // Lesser General Public License for more details.
13 //
14 // You should have received a copy of the GNU Lesser General Public  
15 // License along with this library; if not, write to the Free Software 
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 //
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 //
20 #ifndef __GEOM_SUPERV_I_H__
21 #define __GEOM_SUPERV_I_H__
22
23 // IDL headers
24 #include <SALOMEconfig.h>
25 #include CORBA_SERVER_HEADER(GEOM_Superv)
26
27 #include "GEOM_Gen_i.hh"
28 #include "GEOM_List_i.hh"
29
30 class GEOM_Superv_i : public virtual POA_GEOM::GEOM_Superv,
31                       public Engines_Component_i
32 {
33 public:
34   GEOM_Superv_i(CORBA::ORB_ptr orb,
35                 PortableServer::POA_ptr poa,
36                 PortableServer::ObjectId * contId, 
37                 const char *instanceName, 
38                 const char *interfaceName);
39   ~GEOM_Superv_i();
40
41   // generic method to be put in a super class
42   void register_name(char * name);
43   void setGeomEngine();
44
45   void getBasicOp();
46   void get3DPrimOp();
47   void getBoolOp();
48   void getInsOp();
49   void getTransfOp();
50   void getShapesOp();
51   void getBlocksOp();
52   void getCurvesOp();
53   void getLocalOp();
54   void getGroupOp();  
55
56   PortableServer::ServantBase_var GetServant(CORBA::Object_ptr       theObject,
57                                              PortableServer::POA_ptr thePOA);
58
59   //-----------------------------------------------------------------------//
60   // Set current stydy ID                                                  //
61   //-----------------------------------------------------------------------//
62   void SetStudyID( CORBA::Long theId );      
63
64   //-----------------------------------------------------------//
65   // Create ListOfGO and add items to it                       // 
66   //-----------------------------------------------------------//
67   GEOM::GEOM_List_ptr CreateListOfGO();
68   void AddItemToListOfGO(GEOM::GEOM_List_ptr& theList, 
69                          GEOM::GEOM_Object_ptr theObject);
70
71   //-----------------------------------------------------------//
72   // Create ListOfLong and add items to it                     // 
73   //-----------------------------------------------------------//
74   GEOM::GEOM_List_ptr CreateListOfLong();
75   void AddItemToListOfLong(GEOM::GEOM_List_ptr& theList, 
76                            CORBA::Long theObject);
77   
78   //-----------------------------------------------------------//
79   // Create ListOfDouble and add items to it                   // 
80   //-----------------------------------------------------------//
81   GEOM::GEOM_List_ptr CreateListOfDouble();
82   void AddItemToListOfDouble(GEOM::GEOM_List_ptr& theList, 
83                              CORBA::Double theObject);
84
85   //-----------------------------------------------------------------------//
86   // Inherited methods from SALOMEDS::Driver                               //
87   //-----------------------------------------------------------------------//    
88
89   SALOMEDS::TMPFile* Save(SALOMEDS::SComponent_ptr theComponent,
90                           const char* theURL,
91                           CORBA::Boolean isMultiFile);
92
93   SALOMEDS::TMPFile* SaveASCII(SALOMEDS::SComponent_ptr theComponent,
94                                const char* theURL,
95                                CORBA::Boolean isMultiFile);
96   
97   CORBA::Boolean Load(SALOMEDS::SComponent_ptr theComponent,
98                       const SALOMEDS::TMPFile& theStream,
99                       const char* theURL,
100                       CORBA::Boolean isMultiFile);
101
102   CORBA::Boolean LoadASCII(SALOMEDS::SComponent_ptr theComponent,
103                            const SALOMEDS::TMPFile& theStream,
104                            const char* theURL,
105                            CORBA::Boolean isMultiFile);
106
107   void Close(SALOMEDS::SComponent_ptr theComponent);
108   char* ComponentDataType();
109
110
111   char* IORToLocalPersistentID(SALOMEDS::SObject_ptr theSObject,
112                                const char* IORString,
113                                CORBA::Boolean isMultiFile,
114                                CORBA::Boolean isASCII);
115   char* LocalPersistentIDToIOR(SALOMEDS::SObject_ptr theSObject,
116                                const char* aLocalPersistentID,
117                                CORBA::Boolean isMultiFile,
118                                CORBA::Boolean isASCII);
119
120   CORBA::Boolean CanPublishInStudy(CORBA::Object_ptr theIOR);
121   SALOMEDS::SObject_ptr PublishInStudy(SALOMEDS::Study_ptr theStudy,
122                                        SALOMEDS::SObject_ptr theSObject,
123                                        CORBA::Object_ptr theObject,
124                                        const char* theName) throw (SALOME::SALOME_Exception) ;
125
126   CORBA::Boolean CanCopy(SALOMEDS::SObject_ptr theObject);
127   SALOMEDS::TMPFile* CopyFrom(SALOMEDS::SObject_ptr theObject, CORBA::Long& theObjectID);
128   CORBA::Boolean CanPaste(const char* theComponentName, CORBA::Long theObjectID);
129   SALOMEDS::SObject_ptr PasteInto(const SALOMEDS::TMPFile& theStream,
130                                   CORBA::Long theObjectID,
131                                   SALOMEDS::SObject_ptr theObject);
132
133   //-----------------------------------------------------------//
134   // Primitives Construction : BasicOperations                 // 
135   //-----------------------------------------------------------//
136   GEOM::GEOM_Object_ptr MakePointXYZ (CORBA::Double theX,
137                                       CORBA::Double theY,
138                                       CORBA::Double theZ);
139   GEOM::GEOM_Object_ptr MakePointWithReference (GEOM::GEOM_Object_ptr theReference,
140                                                 CORBA::Double theX, 
141                                                 CORBA::Double theY, 
142                                                 CORBA::Double theZ);
143   GEOM::GEOM_Object_ptr MakePointOnCurve (GEOM::GEOM_Object_ptr theRefCurve,
144                                           CORBA::Double theParameter);
145   GEOM::GEOM_Object_ptr MakePointOnLinesIntersection (GEOM::GEOM_Object_ptr theRefLine1,
146                                                       GEOM::GEOM_Object_ptr theRefLine2);
147   GEOM::GEOM_Object_ptr MakeTangentOnCurve (GEOM::GEOM_Object_ptr theRefCurve,
148                                              CORBA::Double theParameter);
149   GEOM::GEOM_Object_ptr MakeVectorDXDYDZ (CORBA::Double theDX,
150                                           CORBA::Double theDY,
151                                           CORBA::Double theDZ);
152   GEOM::GEOM_Object_ptr MakeVectorTwoPnt (GEOM::GEOM_Object_ptr thePnt1,
153                                           GEOM::GEOM_Object_ptr thePnt2);
154   GEOM::GEOM_Object_ptr MakeLineTwoPnt (GEOM::GEOM_Object_ptr thePnt1,
155                                         GEOM::GEOM_Object_ptr thePnt2);
156   GEOM::GEOM_Object_ptr MakeLineTwoFaces (GEOM::GEOM_Object_ptr theFace1,
157                                           GEOM::GEOM_Object_ptr theFace2);
158   GEOM::GEOM_Object_ptr MakePlaneThreePnt (GEOM::GEOM_Object_ptr thePnt1,
159                                            GEOM::GEOM_Object_ptr thePnt2,
160                                            GEOM::GEOM_Object_ptr thePnt3,
161                                            CORBA::Double theTrimSize);
162   GEOM::GEOM_Object_ptr MakePlanePntVec (GEOM::GEOM_Object_ptr thePnt,
163                                          GEOM::GEOM_Object_ptr theVec,
164                                          CORBA::Double theTrimSize);
165   GEOM::GEOM_Object_ptr MakePlaneFace (GEOM::GEOM_Object_ptr theFace,
166                                        CORBA::Double theTrimSize);
167   GEOM::GEOM_Object_ptr MakeMarker (CORBA::Double theOX , CORBA::Double theOY , CORBA::Double theOZ,
168                                     CORBA::Double theXDX, CORBA::Double theXDY, CORBA::Double theXDZ,
169                                     CORBA::Double theYDX, CORBA::Double theYDY, CORBA::Double theYDZ);
170
171   GEOM::GEOM_Object_ptr MakeTangentPlaneOnFace (GEOM::GEOM_Object_ptr theFace, 
172                                                  CORBA::Double theParameterU,
173                                                  CORBA::Double theParameterV,
174                                                  CORBA::Double theTrimSize);
175
176   //-----------------------------------------------------------//
177   // Primitives Construction : 3DPrimOperations                //
178   //-----------------------------------------------------------//
179   GEOM::GEOM_Object_ptr MakeBox (CORBA::Double theX1,
180                                  CORBA::Double theY1,
181                                  CORBA::Double theZ1,
182                                  CORBA::Double theX2,
183                                  CORBA::Double theY2,
184                                  CORBA::Double theZ2);
185   GEOM::GEOM_Object_ptr MakeBoxDXDYDZ (CORBA::Double theDX, 
186                                        CORBA::Double theDY, 
187                                        CORBA::Double theDZ);
188   GEOM::GEOM_Object_ptr MakeBoxTwoPnt (GEOM::GEOM_Object_ptr thePnt1, 
189                                        GEOM::GEOM_Object_ptr thePnt2);
190   GEOM::GEOM_Object_ptr MakeCylinderPntVecRH (GEOM::GEOM_Object_ptr thePnt,
191                                               GEOM::GEOM_Object_ptr theAxis,
192                                               CORBA::Double theRadius,
193                                               CORBA::Double theHeight);
194   GEOM::GEOM_Object_ptr MakeCylinderRH (CORBA::Double theR, 
195                                         CORBA::Double theH);
196   GEOM::GEOM_Object_ptr MakeSphere (CORBA::Double theX,
197                                     CORBA::Double theY,
198                                     CORBA::Double theZ,
199                                     CORBA::Double theRadius);
200   GEOM::GEOM_Object_ptr MakeSphereR (CORBA::Double theR);
201   GEOM::GEOM_Object_ptr MakeSpherePntR (GEOM::GEOM_Object_ptr thePnt, 
202                                         CORBA::Double theR);
203   GEOM::GEOM_Object_ptr MakeTorusPntVecRR (GEOM::GEOM_Object_ptr thePnt,
204                                            GEOM::GEOM_Object_ptr theVec,
205                                            CORBA::Double theRMajor,
206                                            CORBA::Double theRMinor);
207   GEOM::GEOM_Object_ptr MakeTorusRR (CORBA::Double theRMajor,
208                                      CORBA::Double theRMinor);
209   GEOM::GEOM_Object_ptr MakeConePntVecR1R2H (GEOM::GEOM_Object_ptr thePnt,
210                                              GEOM::GEOM_Object_ptr theAxis,
211                                              CORBA::Double theR1,
212                                              CORBA::Double theR2,
213                                              CORBA::Double theHeight);
214   GEOM::GEOM_Object_ptr MakeConeR1R2H (CORBA::Double theR1, 
215                                        CORBA::Double theR2, 
216                                        CORBA::Double theHeight);
217   GEOM::GEOM_Object_ptr MakePrismVecH (GEOM::GEOM_Object_ptr theBase,
218                                        GEOM::GEOM_Object_ptr theVec,
219                                        CORBA::Double         theH);
220   GEOM::GEOM_Object_ptr MakePrismVecH2Ways (GEOM::GEOM_Object_ptr theBase,
221                                             GEOM::GEOM_Object_ptr theVec,
222                                             CORBA::Double         theH);
223   GEOM::GEOM_Object_ptr MakePrismTwoPnt (GEOM::GEOM_Object_ptr theBase,
224                                          GEOM::GEOM_Object_ptr thePoint1,
225                                          GEOM::GEOM_Object_ptr thePoint2);
226   GEOM::GEOM_Object_ptr MakePrismTwoPnt2Ways (GEOM::GEOM_Object_ptr theBase,
227                                               GEOM::GEOM_Object_ptr thePoint1,
228                                               GEOM::GEOM_Object_ptr thePoint2);
229   GEOM::GEOM_Object_ptr MakePipe (GEOM::GEOM_Object_ptr theBase, 
230                                   GEOM::GEOM_Object_ptr thePath);
231   GEOM::GEOM_Object_ptr MakeRevolutionAxisAngle (GEOM::GEOM_Object_ptr theBase,
232                                                  GEOM::GEOM_Object_ptr theAxis,
233                                                  CORBA::Double theAngle);
234   GEOM::GEOM_Object_ptr MakeRevolutionAxisAngle2Ways (GEOM::GEOM_Object_ptr theBase,
235                                                       GEOM::GEOM_Object_ptr theAxis,
236                                                       CORBA::Double theAngle);
237   GEOM::GEOM_Object_ptr MakeFilling (GEOM::GEOM_Object_ptr theShape,
238                                      CORBA::Long theMinDeg, CORBA::Long theMaxDeg,
239                                      CORBA::Double theTol2D, CORBA::Double theTol3D,
240                                      CORBA::Long theNbIter, CORBA::Boolean theApprox);
241
242   GEOM::GEOM_Object_ptr MakeThruSections(const GEOM::ListOfGO& theSeqSections,
243                                          CORBA::Boolean theModeSolid,
244                                          CORBA::Double thePreci,
245                                          CORBA::Boolean theRuled);
246   
247   GEOM::GEOM_Object_ptr MakePipeWithDifferentSections(const GEOM::ListOfGO& theBases,
248                                                       const GEOM::ListOfGO& theLocations,
249                                                       GEOM::GEOM_Object_ptr thePath,
250                                                       CORBA::Boolean theWithContact,
251                                                       CORBA::Boolean theWithCorrections);
252   
253   GEOM::GEOM_Object_ptr MakePipeWithShellSections(const GEOM::ListOfGO& theBases,
254                                                   const GEOM::ListOfGO& theSubBases,
255                                                   const GEOM::ListOfGO& theLocations,
256                                                   GEOM::GEOM_Object_ptr thePath,
257                                                   CORBA::Boolean theWithContact,
258                                                   CORBA::Boolean theWithCorrections);
259
260   GEOM::GEOM_Object_ptr MakePipeShellsWithoutPath(const GEOM::ListOfGO& theBases,
261                                                   const GEOM::ListOfGO& theLocations);
262   
263   //-----------------------------------------------------------//
264   // BooleanOperations                                         //
265   //-----------------------------------------------------------//
266   GEOM::GEOM_Object_ptr MakeBoolean (GEOM::GEOM_Object_ptr theShape1,
267                                      GEOM::GEOM_Object_ptr theShape2,
268                                      CORBA::Long theOperation);
269   GEOM::GEOM_Object_ptr MakeFuse (GEOM::GEOM_Object_ptr theShape1,
270                                   GEOM::GEOM_Object_ptr theShape2);
271   GEOM::GEOM_Object_ptr MakePartition (GEOM::GEOM_List_ptr   theShapes,
272                                        GEOM::GEOM_List_ptr   theTools,
273                                        GEOM::GEOM_List_ptr   theKeepInside,
274                                        GEOM::GEOM_List_ptr   theRemoveInside,
275                                        CORBA::Short      theLimit,
276                                        CORBA::Boolean    theRemoveWebs,
277                                        GEOM::GEOM_List_ptr theMaterials,
278                                        CORBA::Short theKeepNonlimitShapes);
279   GEOM::GEOM_Object_ptr MakeHalfPartition (GEOM::GEOM_Object_ptr theShape,
280                                            GEOM::GEOM_Object_ptr thePlane);
281
282   //-----------------------------------------------------------//
283   // InsertOperations                                          //
284   //-----------------------------------------------------------//
285   GEOM::GEOM_Object_ptr MakeCopy (GEOM::GEOM_Object_ptr theOriginal);
286   void Export (GEOM::GEOM_Object_ptr theObject, 
287                const char*           theFileName, 
288                const char*           theFormatName);
289   GEOM::GEOM_Object_ptr Import (const char* theFileName, 
290                                 const char* theFormatName);
291   void ImportTranslators (GEOM::string_array_out theFormats,
292                           GEOM::string_array_out thePatterns);
293   void ExportTranslators (GEOM::string_array_out theFormats,
294                           GEOM::string_array_out thePatterns);
295
296   //-----------------------------------------------------------//
297   // TransformOperations                                       //
298   //-----------------------------------------------------------//
299   GEOM::GEOM_Object_ptr TranslateTwoPoints (GEOM::GEOM_Object_ptr theObject,
300                                             GEOM::GEOM_Object_ptr thePoint1,
301                                             GEOM::GEOM_Object_ptr thePoint2);
302   GEOM::GEOM_Object_ptr TranslateTwoPointsCopy (GEOM::GEOM_Object_ptr theObject,
303                                                 GEOM::GEOM_Object_ptr thePoint1,
304                                                 GEOM::GEOM_Object_ptr thePoint2);
305   GEOM::GEOM_Object_ptr TranslateDXDYDZ (GEOM::GEOM_Object_ptr theObject,
306                                          CORBA::Double theDX, 
307                                          CORBA::Double theDY, 
308                                          CORBA::Double theDZ);
309   GEOM::GEOM_Object_ptr TranslateDXDYDZCopy (GEOM::GEOM_Object_ptr theObject,
310                                              CORBA::Double theDX, 
311                                              CORBA::Double theDY, 
312                                              CORBA::Double theDZ);
313   GEOM::GEOM_Object_ptr TranslateVector (GEOM::GEOM_Object_ptr theObject,
314                                          GEOM::GEOM_Object_ptr theVector);
315   GEOM::GEOM_Object_ptr TranslateVectorCopy (GEOM::GEOM_Object_ptr theObject,
316                                              GEOM::GEOM_Object_ptr theVector);
317   GEOM::GEOM_Object_ptr TranslateVectorDistance (GEOM::GEOM_Object_ptr theObject,
318                                                  GEOM::GEOM_Object_ptr theVector,
319                                                  CORBA::Double theDistance,
320                                                  CORBA::Boolean theCopy);
321   GEOM::GEOM_Object_ptr MultiTranslate1D (GEOM::GEOM_Object_ptr theObject,
322                                           GEOM::GEOM_Object_ptr theVector,
323                                           CORBA::Double theStep,
324                                           CORBA::Long theNbTimes);
325   GEOM::GEOM_Object_ptr MultiTranslate2D (GEOM::GEOM_Object_ptr theObject,
326                                           GEOM::GEOM_Object_ptr theVector1,
327                                           CORBA::Double theStep1,
328                                           CORBA::Long theNbTimes1,
329                                           GEOM::GEOM_Object_ptr theVector2,
330                                           CORBA::Double theStep2,
331                                           CORBA::Long theNbTimes2);
332   GEOM::GEOM_Object_ptr Rotate (GEOM::GEOM_Object_ptr theObject,
333                                 GEOM::GEOM_Object_ptr theAxis,
334                                 CORBA::Double theAngle);
335   GEOM::GEOM_Object_ptr RotateCopy (GEOM::GEOM_Object_ptr theObject,
336                                     GEOM::GEOM_Object_ptr theAxis,
337                                     CORBA::Double theAngle);
338
339   GEOM::GEOM_Object_ptr RotateThreePoints (GEOM::GEOM_Object_ptr theObject,
340                                            GEOM::GEOM_Object_ptr theCentPoint,
341                                            GEOM::GEOM_Object_ptr thePoint1,
342                                            GEOM::GEOM_Object_ptr thePoint2);
343
344   GEOM::GEOM_Object_ptr RotateThreePointsCopy (GEOM::GEOM_Object_ptr theObject,
345                                                GEOM::GEOM_Object_ptr theCentPoint,
346                                                GEOM::GEOM_Object_ptr thePoint1,
347                                                GEOM::GEOM_Object_ptr thePoint2);
348
349   GEOM::GEOM_Object_ptr MultiRotate1D (GEOM::GEOM_Object_ptr theObject,
350                                        GEOM::GEOM_Object_ptr theAxis,
351                                        CORBA::Long theNbTimes);
352   GEOM::GEOM_Object_ptr MultiRotate2D (GEOM::GEOM_Object_ptr theObject,
353                                        GEOM::GEOM_Object_ptr theAxis,
354                                        CORBA::Double theAngle,
355                                        CORBA::Long theNbTimes1,
356                                        CORBA::Double theStep,
357                                        CORBA::Long theNbTimes2);
358   GEOM::GEOM_Object_ptr MirrorPlane (GEOM::GEOM_Object_ptr theObject, 
359                                      GEOM::GEOM_Object_ptr thePlane);
360   GEOM::GEOM_Object_ptr MirrorPlaneCopy (GEOM::GEOM_Object_ptr theObject, 
361                                          GEOM::GEOM_Object_ptr thePlane);
362   GEOM::GEOM_Object_ptr MirrorAxis (GEOM::GEOM_Object_ptr theObject, 
363                                     GEOM::GEOM_Object_ptr theAxis);
364   GEOM::GEOM_Object_ptr MirrorAxisCopy (GEOM::GEOM_Object_ptr theObject, 
365                                         GEOM::GEOM_Object_ptr theAxis);
366   GEOM::GEOM_Object_ptr MirrorPoint (GEOM::GEOM_Object_ptr theObject, 
367                                      GEOM::GEOM_Object_ptr thePoint);
368   GEOM::GEOM_Object_ptr MirrorPointCopy (GEOM::GEOM_Object_ptr theObject, 
369                                          GEOM::GEOM_Object_ptr thePoint);
370   GEOM::GEOM_Object_ptr OffsetShape (GEOM::GEOM_Object_ptr theObject, 
371                                      CORBA::Double theOffset);
372   GEOM::GEOM_Object_ptr OffsetShapeCopy (GEOM::GEOM_Object_ptr theObject, 
373                                          CORBA::Double theOffset);
374   GEOM::GEOM_Object_ptr ScaleShape (GEOM::GEOM_Object_ptr theObject, 
375                                     GEOM::GEOM_Object_ptr thePoint,
376                                     CORBA::Double theFactor);
377   GEOM::GEOM_Object_ptr ScaleShapeCopy (GEOM::GEOM_Object_ptr theObject, 
378                                         GEOM::GEOM_Object_ptr thePoint,
379                                         CORBA::Double theFactor);
380   GEOM::GEOM_Object_ptr PositionShape (GEOM::GEOM_Object_ptr theObject,
381                                        GEOM::GEOM_Object_ptr theStartLCS,
382                                        GEOM::GEOM_Object_ptr theEndLCS);
383   GEOM::GEOM_Object_ptr PositionShapeCopy (GEOM::GEOM_Object_ptr theObject,
384                                            GEOM::GEOM_Object_ptr theStartLCS,
385                                            GEOM::GEOM_Object_ptr theEndLCS);
386
387   //-----------------------------------------------------------//
388   // ShapesOperations                                          //
389   //-----------------------------------------------------------//
390   GEOM::GEOM_Object_ptr MakeEdge (GEOM::GEOM_Object_ptr thePnt1,
391                                   GEOM::GEOM_Object_ptr thePnt2);
392   GEOM::GEOM_Object_ptr MakeWire (GEOM::GEOM_List_ptr theEdgesAndWires);
393   GEOM::GEOM_Object_ptr MakeFace (GEOM::GEOM_Object_ptr theWire,
394                                   CORBA::Boolean isPlanarWanted);
395   GEOM::GEOM_Object_ptr MakeFaceWires (GEOM::GEOM_List_ptr theWires,
396                                        CORBA::Boolean isPlanarWanted);
397   GEOM::GEOM_Object_ptr MakeShell (GEOM::GEOM_List_ptr theFacesAndShells);
398   GEOM::GEOM_Object_ptr MakeSolidShell (GEOM::GEOM_Object_ptr theShell);
399   GEOM::GEOM_Object_ptr MakeSolidShells (GEOM::GEOM_List_ptr theShells);
400   GEOM::GEOM_Object_ptr MakeCompound (GEOM::GEOM_List_ptr theShapes);
401   GEOM::GEOM_Object_ptr MakeGlueFaces (GEOM::GEOM_Object_ptr theShape,
402                                        CORBA::Double theTolerance,
403                                        CORBA::Boolean doKeepNonSolids);
404   GEOM::GEOM_List_ptr GetGlueFaces (GEOM::GEOM_Object_ptr theShape,
405                                     CORBA::Double theTolerance);
406   GEOM::GEOM_Object_ptr MakeGlueFacesByList (GEOM::GEOM_Object_ptr theShape,
407                                              CORBA::Double theTolerance,
408                                              const GEOM::ListOfGO& theFaces,
409                                              CORBA::Boolean doKeepNonSolids);
410   GEOM::GEOM_List_ptr MakeExplode (GEOM::GEOM_Object_ptr theShape,
411                                        CORBA::Long theShapeType,
412                                        CORBA::Boolean isSorted);
413   CORBA::Long NumberOfFaces (GEOM::GEOM_Object_ptr theShape);
414   CORBA::Long NumberOfEdges (GEOM::GEOM_Object_ptr theShape);
415   GEOM::GEOM_Object_ptr ChangeOrientation (GEOM::GEOM_Object_ptr theShape);
416
417   GEOM::GEOM_List_ptr GetShapesOnShape (GEOM::GEOM_Object_ptr theCheckShape,
418                                         GEOM::GEOM_Object_ptr theShape,
419                                         CORBA::Short theShapeType,
420                                         GEOM::shape_state theState);
421   GEOM::GEOM_Object_ptr GetShapesOnShapeAsCompound
422                                        (GEOM::GEOM_Object_ptr theCheckShape,
423                                         GEOM::GEOM_Object_ptr theShape,
424                                         CORBA::Short theShapeType,
425                                         GEOM::shape_state theState);
426
427
428   //-----------------------------------------------------------//
429   // BlocksOperations                                          //
430   //-----------------------------------------------------------//
431   GEOM::GEOM_Object_ptr MakeQuad4Vertices (GEOM::GEOM_Object_ptr thePnt1,
432                                            GEOM::GEOM_Object_ptr thePnt2,
433                                            GEOM::GEOM_Object_ptr thePnt3,
434                                            GEOM::GEOM_Object_ptr thePnt4);
435   GEOM::GEOM_Object_ptr MakeQuad (GEOM::GEOM_Object_ptr theEdge1,
436                                   GEOM::GEOM_Object_ptr theEdge2,
437                                   GEOM::GEOM_Object_ptr theEdge3,
438                                   GEOM::GEOM_Object_ptr theEdge4);
439   GEOM::GEOM_Object_ptr MakeQuad2Edges (GEOM::GEOM_Object_ptr theEdge1,
440                                         GEOM::GEOM_Object_ptr theEdge2);
441   GEOM::GEOM_Object_ptr MakeHexa (GEOM::GEOM_Object_ptr theFace1,
442                                   GEOM::GEOM_Object_ptr theFace2,
443                                   GEOM::GEOM_Object_ptr theFace3,
444                                   GEOM::GEOM_Object_ptr theFace4,
445                                   GEOM::GEOM_Object_ptr theFace5,
446                                   GEOM::GEOM_Object_ptr theFace6);
447   GEOM::GEOM_Object_ptr MakeHexa2Faces (GEOM::GEOM_Object_ptr theFace1,
448                                         GEOM::GEOM_Object_ptr theFace2);
449   GEOM::GEOM_Object_ptr GetPoint (GEOM::GEOM_Object_ptr theShape,
450                                   CORBA::Double   theX,
451                                   CORBA::Double   theY,
452                                   CORBA::Double   theZ,
453                                   CORBA::Double   theEpsilon);
454   GEOM::GEOM_Object_ptr GetEdge (GEOM::GEOM_Object_ptr theShape,
455                                  GEOM::GEOM_Object_ptr thePoint1,
456                                  GEOM::GEOM_Object_ptr thePoint2);
457   GEOM::GEOM_Object_ptr GetEdgeNearPoint (GEOM::GEOM_Object_ptr theShape,
458                                           GEOM::GEOM_Object_ptr thePoint);
459   GEOM::GEOM_Object_ptr GetFaceByPoints (GEOM::GEOM_Object_ptr theShape,
460                                          GEOM::GEOM_Object_ptr thePoint1,
461                                          GEOM::GEOM_Object_ptr thePoint2,
462                                          GEOM::GEOM_Object_ptr thePoint3,
463                                          GEOM::GEOM_Object_ptr thePoint4);
464   GEOM::GEOM_Object_ptr GetFaceByEdges (GEOM::GEOM_Object_ptr theShape,
465                                         GEOM::GEOM_Object_ptr theEdge1,
466                                         GEOM::GEOM_Object_ptr theEdge2);
467   GEOM::GEOM_Object_ptr GetOppositeFace (GEOM::GEOM_Object_ptr theBlock,
468                                          GEOM::GEOM_Object_ptr theFace);
469   GEOM::GEOM_Object_ptr GetFaceNearPoint (GEOM::GEOM_Object_ptr theShape,
470                                           GEOM::GEOM_Object_ptr thePoint);
471   GEOM::GEOM_Object_ptr GetFaceByNormale (GEOM::GEOM_Object_ptr theBlock,
472                                           GEOM::GEOM_Object_ptr theVector);
473   CORBA::Boolean IsCompoundOfBlocks (GEOM::GEOM_Object_ptr theCompound,
474                                      CORBA::Long     theMinNbFaces,
475                                      CORBA::Long     theMaxNbFaces,
476                                      CORBA::Long&          theNbBlocks);
477   CORBA::Boolean CheckCompoundOfBlocks (GEOM::GEOM_Object_ptr theCompound,
478                                         GEOM::GEOM_IBlocksOperations::BCErrors_out theErrors);
479   char* PrintBCErrors (GEOM::GEOM_Object_ptr theCompound,
480                        const GEOM::GEOM_IBlocksOperations::BCErrors& theErrors);
481   GEOM::GEOM_List_ptr ExplodeCompoundOfBlocks (GEOM::GEOM_Object_ptr theCompound,
482                                                    CORBA::Long     theMinNbFaces,
483                                                    CORBA::Long     theMaxNbFaces);
484   GEOM::GEOM_Object_ptr GetBlockNearPoint (GEOM::GEOM_Object_ptr theCompound,
485                                            GEOM::GEOM_Object_ptr thePoint);
486   GEOM::GEOM_Object_ptr GetBlockByParts (GEOM::GEOM_Object_ptr theCompound,
487                                          GEOM::GEOM_List_ptr theParts);
488   GEOM::GEOM_List_ptr GetBlocksByParts (GEOM::GEOM_Object_ptr theCompound,
489                                             GEOM::GEOM_List_ptr theParts);
490   GEOM::GEOM_Object_ptr MakeMultiTransformation1D (GEOM::GEOM_Object_ptr theBlock,
491                                                    CORBA::Long     theDirFace1,
492                                                    CORBA::Long     theDirFace2,
493                                                    CORBA::Long     theNbTimes);
494   GEOM::GEOM_Object_ptr MakeMultiTransformation2D (GEOM::GEOM_Object_ptr theBlock,
495                                                    CORBA::Long     theDirFace1U,
496                                                    CORBA::Long     theDirFace2U,
497                                                    CORBA::Long     theNbTimesU,
498                                                    CORBA::Long     theDirFace1V,
499                                                    CORBA::Long     theDirFace2V,
500                                                    CORBA::Long     theNbTimesV);
501
502   //-----------------------------------------------------------//
503   // CurvesOperations                                          //
504   //-----------------------------------------------------------//
505   GEOM::GEOM_Object_ptr MakeCirclePntVecR (GEOM::GEOM_Object_ptr theCenter,
506                                            GEOM::GEOM_Object_ptr theVector,
507                                            CORBA::Double theR);
508   GEOM::GEOM_Object_ptr MakeCircleThreePnt (GEOM::GEOM_Object_ptr thePnt1,
509                                             GEOM::GEOM_Object_ptr thePnt2,
510                                             GEOM::GEOM_Object_ptr thePnt3);
511   GEOM::GEOM_Object_ptr MakeCircleCenter2Pnt (GEOM::GEOM_Object_ptr thePnt1,
512                                               GEOM::GEOM_Object_ptr thePnt2,
513                                               GEOM::GEOM_Object_ptr thePnt3);
514   GEOM::GEOM_Object_ptr MakeEllipse (GEOM::GEOM_Object_ptr theCenter,
515                                      GEOM::GEOM_Object_ptr theVector,
516                                      CORBA::Double theRMajor, CORBA::Double theRMinor);
517   GEOM::GEOM_Object_ptr MakeArc (GEOM::GEOM_Object_ptr thePnt1,
518                                  GEOM::GEOM_Object_ptr thePnt2,
519                                  GEOM::GEOM_Object_ptr thePnt3);
520   GEOM::GEOM_Object_ptr MakeArcCenter (GEOM::GEOM_Object_ptr theCenter,
521                                        GEOM::GEOM_Object_ptr thePnt1,
522                                        GEOM::GEOM_Object_ptr thePnt2,
523                                        CORBA::Boolean theSense);
524   GEOM::GEOM_Object_ptr MakePolyline (GEOM::GEOM_List_ptr thePoints);
525   GEOM::GEOM_Object_ptr MakeSplineBezier (GEOM::GEOM_List_ptr thePoints);
526   GEOM::GEOM_Object_ptr MakeSplineInterpolation (GEOM::GEOM_List_ptr thePoints);
527   GEOM::GEOM_Object_ptr MakeSketcher (const char* theCommand, 
528                                                 GEOM::GEOM_List_ptr theWorkingPlane);
529
530   //-----------------------------------------------------------//
531   // LocalOperations                                           //
532   //-----------------------------------------------------------//
533   GEOM::GEOM_Object_ptr MakeFilletAll (GEOM::GEOM_Object_ptr theShape,
534                                        CORBA::Double theR);
535   GEOM::GEOM_Object_ptr MakeFilletEdges (GEOM::GEOM_Object_ptr theShape, CORBA::Double theR,
536                                          GEOM::GEOM_List_ptr theEdges);
537   GEOM::GEOM_Object_ptr MakeFilletEdgesR1R2 (GEOM::GEOM_Object_ptr theShape, CORBA::Double theR1,
538                                              CORBA::Double theR2, GEOM::GEOM_List_ptr theEdges);
539   GEOM::GEOM_Object_ptr MakeFilletFaces (GEOM::GEOM_Object_ptr theShape, CORBA::Double theR,
540                                          GEOM::GEOM_List_ptr theFaces);
541   GEOM::GEOM_Object_ptr MakeFilletFacesR1R2 (GEOM::GEOM_Object_ptr theShape, CORBA::Double theR1,
542                                              CORBA::Double theR2, GEOM::GEOM_List_ptr theFaces);
543   GEOM::GEOM_Object_ptr MakeChamferAll (GEOM::GEOM_Object_ptr theShape, CORBA::Double theD);
544   GEOM::GEOM_Object_ptr MakeChamferEdge (GEOM::GEOM_Object_ptr theShape,
545                                          CORBA::Double theD1, CORBA::Double theD2,
546                                          CORBA::Long theFace1, CORBA::Long theFace2);
547   GEOM::GEOM_Object_ptr MakeChamferEdgeAD (GEOM::GEOM_Object_ptr theShape,
548                                            CORBA::Double theD, CORBA::Double theAngle,
549                                            CORBA::Long theFace1, CORBA::Long theFace2);
550   GEOM::GEOM_Object_ptr MakeChamferFaces (GEOM::GEOM_Object_ptr theShape,
551                                           CORBA::Double theD1, CORBA::Double theD2,
552                                           GEOM::GEOM_List_ptr theFaces);
553   GEOM::GEOM_Object_ptr MakeChamferFacesAD (GEOM::GEOM_Object_ptr theShape,
554                                             CORBA::Double theD, CORBA::Double theAngle,
555                                             GEOM::GEOM_List_ptr theFaces);
556   GEOM::GEOM_Object_ptr MakeChamferEdges (GEOM::GEOM_Object_ptr theShape,
557                                           CORBA::Double theD1, CORBA::Double theD2,
558                                           GEOM::GEOM_List_ptr theEdges);
559   GEOM::GEOM_Object_ptr MakeChamferEdgesAD (GEOM::GEOM_Object_ptr theShape,
560                                             CORBA::Double theD, CORBA::Double theAngle,
561                                             GEOM::GEOM_List_ptr theEdges);
562   GEOM::GEOM_Object_ptr MakeArchimede (GEOM::GEOM_Object_ptr theShape,
563                                        CORBA::Double theWeight,
564                                        CORBA::Double theWaterDensity,
565                                        CORBA::Double theMeshingDeflection);
566   CORBA::Long GetSubShapeIndex (GEOM::GEOM_Object_ptr theShape,
567                                 GEOM::GEOM_Object_ptr theSubShape);
568
569   //-----------------------------------------------------------//
570   // GroupOperations                                           //
571   //-----------------------------------------------------------//
572   GEOM::GEOM_Object_ptr CreateGroup (GEOM::GEOM_Object_ptr theMainShape, 
573                                      CORBA::Long theShapeType);
574   void AddObject (GEOM::GEOM_Object_ptr theGroup, 
575                   CORBA::Long theSubShapeId);
576   void RemoveObject (GEOM::GEOM_Object_ptr theGroup, 
577                      CORBA::Long theSubShapeId);
578   CORBA::Long GetType (GEOM::GEOM_Object_ptr theGroup);
579   GEOM::GEOM_Object_ptr GetMainShape (GEOM::GEOM_Object_ptr theGroup);
580   GEOM::GEOM_List_ptr GetObjects (GEOM::GEOM_Object_ptr theGroup);
581   
582 private:
583   SALOME_NamingService *  name_service; 
584   GEOM::GEOM_Gen_var      myGeomEngine;
585   CORBA::Long             myStudyID;
586   CORBA::Long             myLastStudyID; // mkr : PAL10770
587   PortableServer::POA_var myPOA;
588   
589   GEOM::GEOM_IBasicOperations_var     myBasicOp;
590   GEOM::GEOM_I3DPrimOperations_var    my3DPrimOp;
591   GEOM::GEOM_IBooleanOperations_var   myBoolOp;
592   GEOM::GEOM_IInsertOperations_var    myInsOp;
593   GEOM::GEOM_ITransformOperations_var myTransfOp;
594   GEOM::GEOM_IShapesOperations_var    myShapesOp;
595   GEOM::GEOM_IBlocksOperations_var    myBlocksOp;
596   GEOM::GEOM_ICurvesOperations_var    myCurvesOp;
597   GEOM::GEOM_ILocalOperations_var     myLocalOp;
598   GEOM::GEOM_IGroupOperations_var     myGroupOp;
599
600 };
601
602 #endif