Salome HOME
0016756: EDF 545 GEOM : Extrusion, give the coordinates of the vector as input
[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 MakePrismDXDYDZ (GEOM::GEOM_Object_ptr theBase,
230                                          CORBA::Double         theDX,
231                                          CORBA::Double         theDY,
232                                          CORBA::Double         theDZ);
233   GEOM::GEOM_Object_ptr MakePrismDXDYDZ2Ways (GEOM::GEOM_Object_ptr theBase,
234                                               CORBA::Double         theDX,
235                                               CORBA::Double         theDY,
236                                               CORBA::Double         theDZ);
237   GEOM::GEOM_Object_ptr MakePipe (GEOM::GEOM_Object_ptr theBase, 
238                                   GEOM::GEOM_Object_ptr thePath);
239   GEOM::GEOM_Object_ptr MakeRevolutionAxisAngle (GEOM::GEOM_Object_ptr theBase,
240                                                  GEOM::GEOM_Object_ptr theAxis,
241                                                  CORBA::Double theAngle);
242   GEOM::GEOM_Object_ptr MakeRevolutionAxisAngle2Ways (GEOM::GEOM_Object_ptr theBase,
243                                                       GEOM::GEOM_Object_ptr theAxis,
244                                                       CORBA::Double theAngle);
245   GEOM::GEOM_Object_ptr MakeFilling (GEOM::GEOM_Object_ptr theShape,
246                                      CORBA::Long theMinDeg, CORBA::Long theMaxDeg,
247                                      CORBA::Double theTol2D, CORBA::Double theTol3D,
248                                      CORBA::Long theNbIter, CORBA::Boolean theApprox);
249
250   GEOM::GEOM_Object_ptr MakeThruSections(const GEOM::ListOfGO& theSeqSections,
251                                          CORBA::Boolean theModeSolid,
252                                          CORBA::Double thePreci,
253                                          CORBA::Boolean theRuled);
254   
255   GEOM::GEOM_Object_ptr MakePipeWithDifferentSections(const GEOM::ListOfGO& theBases,
256                                                       const GEOM::ListOfGO& theLocations,
257                                                       GEOM::GEOM_Object_ptr thePath,
258                                                       CORBA::Boolean theWithContact,
259                                                       CORBA::Boolean theWithCorrections);
260   
261   GEOM::GEOM_Object_ptr MakePipeWithShellSections(const GEOM::ListOfGO& theBases,
262                                                   const GEOM::ListOfGO& theSubBases,
263                                                   const GEOM::ListOfGO& theLocations,
264                                                   GEOM::GEOM_Object_ptr thePath,
265                                                   CORBA::Boolean theWithContact,
266                                                   CORBA::Boolean theWithCorrections);
267
268   GEOM::GEOM_Object_ptr MakePipeShellsWithoutPath(const GEOM::ListOfGO& theBases,
269                                                   const GEOM::ListOfGO& theLocations);
270   
271   //-----------------------------------------------------------//
272   // BooleanOperations                                         //
273   //-----------------------------------------------------------//
274   GEOM::GEOM_Object_ptr MakeBoolean (GEOM::GEOM_Object_ptr theShape1,
275                                      GEOM::GEOM_Object_ptr theShape2,
276                                      CORBA::Long theOperation);
277   GEOM::GEOM_Object_ptr MakeFuse (GEOM::GEOM_Object_ptr theShape1,
278                                   GEOM::GEOM_Object_ptr theShape2);
279   GEOM::GEOM_Object_ptr MakePartition (GEOM::GEOM_List_ptr   theShapes,
280                                        GEOM::GEOM_List_ptr   theTools,
281                                        GEOM::GEOM_List_ptr   theKeepInside,
282                                        GEOM::GEOM_List_ptr   theRemoveInside,
283                                        CORBA::Short      theLimit,
284                                        CORBA::Boolean    theRemoveWebs,
285                                        GEOM::GEOM_List_ptr theMaterials,
286                                        CORBA::Short theKeepNonlimitShapes);
287   GEOM::GEOM_Object_ptr MakeHalfPartition (GEOM::GEOM_Object_ptr theShape,
288                                            GEOM::GEOM_Object_ptr thePlane);
289
290   //-----------------------------------------------------------//
291   // InsertOperations                                          //
292   //-----------------------------------------------------------//
293   GEOM::GEOM_Object_ptr MakeCopy (GEOM::GEOM_Object_ptr theOriginal);
294   void Export (GEOM::GEOM_Object_ptr theObject, 
295                const char*           theFileName, 
296                const char*           theFormatName);
297   GEOM::GEOM_Object_ptr Import (const char* theFileName, 
298                                 const char* theFormatName);
299   void ImportTranslators (GEOM::string_array_out theFormats,
300                           GEOM::string_array_out thePatterns);
301   void ExportTranslators (GEOM::string_array_out theFormats,
302                           GEOM::string_array_out thePatterns);
303
304   //-----------------------------------------------------------//
305   // TransformOperations                                       //
306   //-----------------------------------------------------------//
307   GEOM::GEOM_Object_ptr TranslateTwoPoints (GEOM::GEOM_Object_ptr theObject,
308                                             GEOM::GEOM_Object_ptr thePoint1,
309                                             GEOM::GEOM_Object_ptr thePoint2);
310   GEOM::GEOM_Object_ptr TranslateTwoPointsCopy (GEOM::GEOM_Object_ptr theObject,
311                                                 GEOM::GEOM_Object_ptr thePoint1,
312                                                 GEOM::GEOM_Object_ptr thePoint2);
313   GEOM::GEOM_Object_ptr TranslateDXDYDZ (GEOM::GEOM_Object_ptr theObject,
314                                          CORBA::Double theDX, 
315                                          CORBA::Double theDY, 
316                                          CORBA::Double theDZ);
317   GEOM::GEOM_Object_ptr TranslateDXDYDZCopy (GEOM::GEOM_Object_ptr theObject,
318                                              CORBA::Double theDX, 
319                                              CORBA::Double theDY, 
320                                              CORBA::Double theDZ);
321   GEOM::GEOM_Object_ptr TranslateVector (GEOM::GEOM_Object_ptr theObject,
322                                          GEOM::GEOM_Object_ptr theVector);
323   GEOM::GEOM_Object_ptr TranslateVectorCopy (GEOM::GEOM_Object_ptr theObject,
324                                              GEOM::GEOM_Object_ptr theVector);
325   GEOM::GEOM_Object_ptr TranslateVectorDistance (GEOM::GEOM_Object_ptr theObject,
326                                                  GEOM::GEOM_Object_ptr theVector,
327                                                  CORBA::Double theDistance,
328                                                  CORBA::Boolean theCopy);
329   GEOM::GEOM_Object_ptr MultiTranslate1D (GEOM::GEOM_Object_ptr theObject,
330                                           GEOM::GEOM_Object_ptr theVector,
331                                           CORBA::Double theStep,
332                                           CORBA::Long theNbTimes);
333   GEOM::GEOM_Object_ptr MultiTranslate2D (GEOM::GEOM_Object_ptr theObject,
334                                           GEOM::GEOM_Object_ptr theVector1,
335                                           CORBA::Double theStep1,
336                                           CORBA::Long theNbTimes1,
337                                           GEOM::GEOM_Object_ptr theVector2,
338                                           CORBA::Double theStep2,
339                                           CORBA::Long theNbTimes2);
340   GEOM::GEOM_Object_ptr Rotate (GEOM::GEOM_Object_ptr theObject,
341                                 GEOM::GEOM_Object_ptr theAxis,
342                                 CORBA::Double theAngle);
343   GEOM::GEOM_Object_ptr RotateCopy (GEOM::GEOM_Object_ptr theObject,
344                                     GEOM::GEOM_Object_ptr theAxis,
345                                     CORBA::Double theAngle);
346
347   GEOM::GEOM_Object_ptr RotateThreePoints (GEOM::GEOM_Object_ptr theObject,
348                                            GEOM::GEOM_Object_ptr theCentPoint,
349                                            GEOM::GEOM_Object_ptr thePoint1,
350                                            GEOM::GEOM_Object_ptr thePoint2);
351
352   GEOM::GEOM_Object_ptr RotateThreePointsCopy (GEOM::GEOM_Object_ptr theObject,
353                                                GEOM::GEOM_Object_ptr theCentPoint,
354                                                GEOM::GEOM_Object_ptr thePoint1,
355                                                GEOM::GEOM_Object_ptr thePoint2);
356
357   GEOM::GEOM_Object_ptr MultiRotate1D (GEOM::GEOM_Object_ptr theObject,
358                                        GEOM::GEOM_Object_ptr theAxis,
359                                        CORBA::Long theNbTimes);
360   GEOM::GEOM_Object_ptr MultiRotate2D (GEOM::GEOM_Object_ptr theObject,
361                                        GEOM::GEOM_Object_ptr theAxis,
362                                        CORBA::Double theAngle,
363                                        CORBA::Long theNbTimes1,
364                                        CORBA::Double theStep,
365                                        CORBA::Long theNbTimes2);
366   GEOM::GEOM_Object_ptr MirrorPlane (GEOM::GEOM_Object_ptr theObject, 
367                                      GEOM::GEOM_Object_ptr thePlane);
368   GEOM::GEOM_Object_ptr MirrorPlaneCopy (GEOM::GEOM_Object_ptr theObject, 
369                                          GEOM::GEOM_Object_ptr thePlane);
370   GEOM::GEOM_Object_ptr MirrorAxis (GEOM::GEOM_Object_ptr theObject, 
371                                     GEOM::GEOM_Object_ptr theAxis);
372   GEOM::GEOM_Object_ptr MirrorAxisCopy (GEOM::GEOM_Object_ptr theObject, 
373                                         GEOM::GEOM_Object_ptr theAxis);
374   GEOM::GEOM_Object_ptr MirrorPoint (GEOM::GEOM_Object_ptr theObject, 
375                                      GEOM::GEOM_Object_ptr thePoint);
376   GEOM::GEOM_Object_ptr MirrorPointCopy (GEOM::GEOM_Object_ptr theObject, 
377                                          GEOM::GEOM_Object_ptr thePoint);
378   GEOM::GEOM_Object_ptr OffsetShape (GEOM::GEOM_Object_ptr theObject, 
379                                      CORBA::Double theOffset);
380   GEOM::GEOM_Object_ptr OffsetShapeCopy (GEOM::GEOM_Object_ptr theObject, 
381                                          CORBA::Double theOffset);
382   GEOM::GEOM_Object_ptr ScaleShape (GEOM::GEOM_Object_ptr theObject, 
383                                     GEOM::GEOM_Object_ptr thePoint,
384                                     CORBA::Double theFactor);
385   GEOM::GEOM_Object_ptr ScaleShapeCopy (GEOM::GEOM_Object_ptr theObject, 
386                                         GEOM::GEOM_Object_ptr thePoint,
387                                         CORBA::Double theFactor);
388   GEOM::GEOM_Object_ptr ScaleShapeAlongAxes (GEOM::GEOM_Object_ptr theObject,
389                                              GEOM::GEOM_Object_ptr thePoint,
390                                              CORBA::Double theFactorX,
391                                              CORBA::Double theFactorY,
392                                              CORBA::Double theFactorZ);
393   GEOM::GEOM_Object_ptr ScaleShapeAlongAxesCopy (GEOM::GEOM_Object_ptr theObject,
394                                                  GEOM::GEOM_Object_ptr thePoint,
395                                                  CORBA::Double theFactorX,
396                                                  CORBA::Double theFactorY,
397                                                  CORBA::Double theFactorZ);
398   GEOM::GEOM_Object_ptr PositionShape (GEOM::GEOM_Object_ptr theObject,
399                                        GEOM::GEOM_Object_ptr theStartLCS,
400                                        GEOM::GEOM_Object_ptr theEndLCS);
401   GEOM::GEOM_Object_ptr PositionShapeCopy (GEOM::GEOM_Object_ptr theObject,
402                                            GEOM::GEOM_Object_ptr theStartLCS,
403                                            GEOM::GEOM_Object_ptr theEndLCS);
404
405   //-----------------------------------------------------------//
406   // ShapesOperations                                          //
407   //-----------------------------------------------------------//
408   GEOM::GEOM_Object_ptr MakeEdge (GEOM::GEOM_Object_ptr thePnt1,
409                                   GEOM::GEOM_Object_ptr thePnt2);
410   GEOM::GEOM_Object_ptr MakeWire (GEOM::GEOM_List_ptr theEdgesAndWires);
411   GEOM::GEOM_Object_ptr MakeFace (GEOM::GEOM_Object_ptr theWire,
412                                   CORBA::Boolean isPlanarWanted);
413   GEOM::GEOM_Object_ptr MakeFaceWires (GEOM::GEOM_List_ptr theWires,
414                                        CORBA::Boolean isPlanarWanted);
415   GEOM::GEOM_Object_ptr MakeShell (GEOM::GEOM_List_ptr theFacesAndShells);
416   GEOM::GEOM_Object_ptr MakeSolidShell (GEOM::GEOM_Object_ptr theShell);
417   GEOM::GEOM_Object_ptr MakeSolidShells (GEOM::GEOM_List_ptr theShells);
418   GEOM::GEOM_Object_ptr MakeCompound (GEOM::GEOM_List_ptr theShapes);
419   GEOM::GEOM_Object_ptr MakeGlueFaces (GEOM::GEOM_Object_ptr theShape,
420                                        CORBA::Double theTolerance,
421                                        CORBA::Boolean doKeepNonSolids);
422   GEOM::GEOM_List_ptr GetGlueFaces (GEOM::GEOM_Object_ptr theShape,
423                                     CORBA::Double theTolerance);
424   GEOM::GEOM_Object_ptr MakeGlueFacesByList (GEOM::GEOM_Object_ptr theShape,
425                                              CORBA::Double theTolerance,
426                                              const GEOM::ListOfGO& theFaces,
427                                              CORBA::Boolean doKeepNonSolids);
428   GEOM::GEOM_List_ptr MakeExplode (GEOM::GEOM_Object_ptr theShape,
429                                        CORBA::Long theShapeType,
430                                        CORBA::Boolean isSorted);
431   CORBA::Long NumberOfFaces (GEOM::GEOM_Object_ptr theShape);
432   CORBA::Long NumberOfEdges (GEOM::GEOM_Object_ptr theShape);
433   GEOM::GEOM_Object_ptr ChangeOrientation (GEOM::GEOM_Object_ptr theShape);
434
435   GEOM::GEOM_List_ptr GetShapesOnShape (GEOM::GEOM_Object_ptr theCheckShape,
436                                         GEOM::GEOM_Object_ptr theShape,
437                                         CORBA::Short theShapeType,
438                                         GEOM::shape_state theState);
439   GEOM::GEOM_Object_ptr GetShapesOnShapeAsCompound
440                                        (GEOM::GEOM_Object_ptr theCheckShape,
441                                         GEOM::GEOM_Object_ptr theShape,
442                                         CORBA::Short theShapeType,
443                                         GEOM::shape_state theState);
444
445
446   //-----------------------------------------------------------//
447   // BlocksOperations                                          //
448   //-----------------------------------------------------------//
449   GEOM::GEOM_Object_ptr MakeQuad4Vertices (GEOM::GEOM_Object_ptr thePnt1,
450                                            GEOM::GEOM_Object_ptr thePnt2,
451                                            GEOM::GEOM_Object_ptr thePnt3,
452                                            GEOM::GEOM_Object_ptr thePnt4);
453   GEOM::GEOM_Object_ptr MakeQuad (GEOM::GEOM_Object_ptr theEdge1,
454                                   GEOM::GEOM_Object_ptr theEdge2,
455                                   GEOM::GEOM_Object_ptr theEdge3,
456                                   GEOM::GEOM_Object_ptr theEdge4);
457   GEOM::GEOM_Object_ptr MakeQuad2Edges (GEOM::GEOM_Object_ptr theEdge1,
458                                         GEOM::GEOM_Object_ptr theEdge2);
459   GEOM::GEOM_Object_ptr MakeHexa (GEOM::GEOM_Object_ptr theFace1,
460                                   GEOM::GEOM_Object_ptr theFace2,
461                                   GEOM::GEOM_Object_ptr theFace3,
462                                   GEOM::GEOM_Object_ptr theFace4,
463                                   GEOM::GEOM_Object_ptr theFace5,
464                                   GEOM::GEOM_Object_ptr theFace6);
465   GEOM::GEOM_Object_ptr MakeHexa2Faces (GEOM::GEOM_Object_ptr theFace1,
466                                         GEOM::GEOM_Object_ptr theFace2);
467   GEOM::GEOM_Object_ptr GetPoint (GEOM::GEOM_Object_ptr theShape,
468                                   CORBA::Double   theX,
469                                   CORBA::Double   theY,
470                                   CORBA::Double   theZ,
471                                   CORBA::Double   theEpsilon);
472   GEOM::GEOM_Object_ptr GetEdge (GEOM::GEOM_Object_ptr theShape,
473                                  GEOM::GEOM_Object_ptr thePoint1,
474                                  GEOM::GEOM_Object_ptr thePoint2);
475   GEOM::GEOM_Object_ptr GetEdgeNearPoint (GEOM::GEOM_Object_ptr theShape,
476                                           GEOM::GEOM_Object_ptr thePoint);
477   GEOM::GEOM_Object_ptr GetFaceByPoints (GEOM::GEOM_Object_ptr theShape,
478                                          GEOM::GEOM_Object_ptr thePoint1,
479                                          GEOM::GEOM_Object_ptr thePoint2,
480                                          GEOM::GEOM_Object_ptr thePoint3,
481                                          GEOM::GEOM_Object_ptr thePoint4);
482   GEOM::GEOM_Object_ptr GetFaceByEdges (GEOM::GEOM_Object_ptr theShape,
483                                         GEOM::GEOM_Object_ptr theEdge1,
484                                         GEOM::GEOM_Object_ptr theEdge2);
485   GEOM::GEOM_Object_ptr GetOppositeFace (GEOM::GEOM_Object_ptr theBlock,
486                                          GEOM::GEOM_Object_ptr theFace);
487   GEOM::GEOM_Object_ptr GetFaceNearPoint (GEOM::GEOM_Object_ptr theShape,
488                                           GEOM::GEOM_Object_ptr thePoint);
489   GEOM::GEOM_Object_ptr GetFaceByNormale (GEOM::GEOM_Object_ptr theBlock,
490                                           GEOM::GEOM_Object_ptr theVector);
491   CORBA::Boolean IsCompoundOfBlocks (GEOM::GEOM_Object_ptr theCompound,
492                                      CORBA::Long     theMinNbFaces,
493                                      CORBA::Long     theMaxNbFaces,
494                                      CORBA::Long&          theNbBlocks);
495   CORBA::Boolean CheckCompoundOfBlocks (GEOM::GEOM_Object_ptr theCompound,
496                                         GEOM::GEOM_IBlocksOperations::BCErrors_out theErrors);
497   char* PrintBCErrors (GEOM::GEOM_Object_ptr theCompound,
498                        const GEOM::GEOM_IBlocksOperations::BCErrors& theErrors);
499   GEOM::GEOM_List_ptr ExplodeCompoundOfBlocks (GEOM::GEOM_Object_ptr theCompound,
500                                                    CORBA::Long     theMinNbFaces,
501                                                    CORBA::Long     theMaxNbFaces);
502   GEOM::GEOM_Object_ptr GetBlockNearPoint (GEOM::GEOM_Object_ptr theCompound,
503                                            GEOM::GEOM_Object_ptr thePoint);
504   GEOM::GEOM_Object_ptr GetBlockByParts (GEOM::GEOM_Object_ptr theCompound,
505                                          GEOM::GEOM_List_ptr theParts);
506   GEOM::GEOM_List_ptr GetBlocksByParts (GEOM::GEOM_Object_ptr theCompound,
507                                             GEOM::GEOM_List_ptr theParts);
508   GEOM::GEOM_Object_ptr MakeMultiTransformation1D (GEOM::GEOM_Object_ptr theBlock,
509                                                    CORBA::Long     theDirFace1,
510                                                    CORBA::Long     theDirFace2,
511                                                    CORBA::Long     theNbTimes);
512   GEOM::GEOM_Object_ptr MakeMultiTransformation2D (GEOM::GEOM_Object_ptr theBlock,
513                                                    CORBA::Long     theDirFace1U,
514                                                    CORBA::Long     theDirFace2U,
515                                                    CORBA::Long     theNbTimesU,
516                                                    CORBA::Long     theDirFace1V,
517                                                    CORBA::Long     theDirFace2V,
518                                                    CORBA::Long     theNbTimesV);
519
520   //-----------------------------------------------------------//
521   // CurvesOperations                                          //
522   //-----------------------------------------------------------//
523   GEOM::GEOM_Object_ptr MakeCirclePntVecR (GEOM::GEOM_Object_ptr theCenter,
524                                            GEOM::GEOM_Object_ptr theVector,
525                                            CORBA::Double theR);
526   GEOM::GEOM_Object_ptr MakeCircleThreePnt (GEOM::GEOM_Object_ptr thePnt1,
527                                             GEOM::GEOM_Object_ptr thePnt2,
528                                             GEOM::GEOM_Object_ptr thePnt3);
529   GEOM::GEOM_Object_ptr MakeCircleCenter2Pnt (GEOM::GEOM_Object_ptr thePnt1,
530                                               GEOM::GEOM_Object_ptr thePnt2,
531                                               GEOM::GEOM_Object_ptr thePnt3);
532   GEOM::GEOM_Object_ptr MakeEllipse (GEOM::GEOM_Object_ptr theCenter,
533                                      GEOM::GEOM_Object_ptr theVector,
534                                      CORBA::Double theRMajor, CORBA::Double theRMinor);
535   GEOM::GEOM_Object_ptr MakeArc (GEOM::GEOM_Object_ptr thePnt1,
536                                  GEOM::GEOM_Object_ptr thePnt2,
537                                  GEOM::GEOM_Object_ptr thePnt3);
538   GEOM::GEOM_Object_ptr MakeArcCenter (GEOM::GEOM_Object_ptr theCenter,
539                                        GEOM::GEOM_Object_ptr thePnt1,
540                                        GEOM::GEOM_Object_ptr thePnt2,
541                                        CORBA::Boolean theSense);
542   GEOM::GEOM_Object_ptr MakePolyline (GEOM::GEOM_List_ptr thePoints);
543   GEOM::GEOM_Object_ptr MakeSplineBezier (GEOM::GEOM_List_ptr thePoints);
544   GEOM::GEOM_Object_ptr MakeSplineInterpolation (GEOM::GEOM_List_ptr thePoints);
545   GEOM::GEOM_Object_ptr MakeSketcher (const char* theCommand, 
546                                                 GEOM::GEOM_List_ptr theWorkingPlane);
547
548   //-----------------------------------------------------------//
549   // LocalOperations                                           //
550   //-----------------------------------------------------------//
551   GEOM::GEOM_Object_ptr MakeFilletAll (GEOM::GEOM_Object_ptr theShape,
552                                        CORBA::Double theR);
553   GEOM::GEOM_Object_ptr MakeFilletEdges (GEOM::GEOM_Object_ptr theShape, CORBA::Double theR,
554                                          GEOM::GEOM_List_ptr theEdges);
555   GEOM::GEOM_Object_ptr MakeFilletEdgesR1R2 (GEOM::GEOM_Object_ptr theShape, CORBA::Double theR1,
556                                              CORBA::Double theR2, GEOM::GEOM_List_ptr theEdges);
557   GEOM::GEOM_Object_ptr MakeFilletFaces (GEOM::GEOM_Object_ptr theShape, CORBA::Double theR,
558                                          GEOM::GEOM_List_ptr theFaces);
559   GEOM::GEOM_Object_ptr MakeFilletFacesR1R2 (GEOM::GEOM_Object_ptr theShape, CORBA::Double theR1,
560                                              CORBA::Double theR2, GEOM::GEOM_List_ptr theFaces);
561   GEOM::GEOM_Object_ptr MakeChamferAll (GEOM::GEOM_Object_ptr theShape, CORBA::Double theD);
562   GEOM::GEOM_Object_ptr MakeChamferEdge (GEOM::GEOM_Object_ptr theShape,
563                                          CORBA::Double theD1, CORBA::Double theD2,
564                                          CORBA::Long theFace1, CORBA::Long theFace2);
565   GEOM::GEOM_Object_ptr MakeChamferEdgeAD (GEOM::GEOM_Object_ptr theShape,
566                                            CORBA::Double theD, CORBA::Double theAngle,
567                                            CORBA::Long theFace1, CORBA::Long theFace2);
568   GEOM::GEOM_Object_ptr MakeChamferFaces (GEOM::GEOM_Object_ptr theShape,
569                                           CORBA::Double theD1, CORBA::Double theD2,
570                                           GEOM::GEOM_List_ptr theFaces);
571   GEOM::GEOM_Object_ptr MakeChamferFacesAD (GEOM::GEOM_Object_ptr theShape,
572                                             CORBA::Double theD, CORBA::Double theAngle,
573                                             GEOM::GEOM_List_ptr theFaces);
574   GEOM::GEOM_Object_ptr MakeChamferEdges (GEOM::GEOM_Object_ptr theShape,
575                                           CORBA::Double theD1, CORBA::Double theD2,
576                                           GEOM::GEOM_List_ptr theEdges);
577   GEOM::GEOM_Object_ptr MakeChamferEdgesAD (GEOM::GEOM_Object_ptr theShape,
578                                             CORBA::Double theD, CORBA::Double theAngle,
579                                             GEOM::GEOM_List_ptr theEdges);
580   GEOM::GEOM_Object_ptr MakeArchimede (GEOM::GEOM_Object_ptr theShape,
581                                        CORBA::Double theWeight,
582                                        CORBA::Double theWaterDensity,
583                                        CORBA::Double theMeshingDeflection);
584   CORBA::Long GetSubShapeIndex (GEOM::GEOM_Object_ptr theShape,
585                                 GEOM::GEOM_Object_ptr theSubShape);
586
587   //-----------------------------------------------------------//
588   // GroupOperations                                           //
589   //-----------------------------------------------------------//
590   GEOM::GEOM_Object_ptr CreateGroup (GEOM::GEOM_Object_ptr theMainShape, 
591                                      CORBA::Long theShapeType);
592   void AddObject (GEOM::GEOM_Object_ptr theGroup, 
593                   CORBA::Long theSubShapeId);
594   void RemoveObject (GEOM::GEOM_Object_ptr theGroup, 
595                      CORBA::Long theSubShapeId);
596   CORBA::Long GetType (GEOM::GEOM_Object_ptr theGroup);
597   GEOM::GEOM_Object_ptr GetMainShape (GEOM::GEOM_Object_ptr theGroup);
598   GEOM::GEOM_List_ptr GetObjects (GEOM::GEOM_Object_ptr theGroup);
599   
600 private:
601   SALOME_NamingService *  name_service; 
602   GEOM::GEOM_Gen_var      myGeomEngine;
603   CORBA::Long             myStudyID;
604   CORBA::Long             myLastStudyID; // mkr : PAL10770
605   PortableServer::POA_var myPOA;
606   
607   GEOM::GEOM_IBasicOperations_var     myBasicOp;
608   GEOM::GEOM_I3DPrimOperations_var    my3DPrimOp;
609   GEOM::GEOM_IBooleanOperations_var   myBoolOp;
610   GEOM::GEOM_IInsertOperations_var    myInsOp;
611   GEOM::GEOM_ITransformOperations_var myTransfOp;
612   GEOM::GEOM_IShapesOperations_var    myShapesOp;
613   GEOM::GEOM_IBlocksOperations_var    myBlocksOp;
614   GEOM::GEOM_ICurvesOperations_var    myCurvesOp;
615   GEOM::GEOM_ILocalOperations_var     myLocalOp;
616   GEOM::GEOM_IGroupOperations_var     myGroupOp;
617
618 };
619
620 #endif