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