Salome HOME
NPAL14856: Get The Normal of a Face. And merge MakePipeShellsWithoutPath from 3.2.X.
[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 MakeTangentOnCurve (GEOM::GEOM_Object_ptr theRefCurve,
146                                              CORBA::Double theParameter);
147   GEOM::GEOM_Object_ptr MakeVectorDXDYDZ (CORBA::Double theDX,
148                                           CORBA::Double theDY,
149                                           CORBA::Double theDZ);
150   GEOM::GEOM_Object_ptr MakeVectorTwoPnt (GEOM::GEOM_Object_ptr thePnt1,
151                                           GEOM::GEOM_Object_ptr thePnt2);
152   GEOM::GEOM_Object_ptr MakeLineTwoPnt (GEOM::GEOM_Object_ptr thePnt1,
153                                         GEOM::GEOM_Object_ptr thePnt2);
154   GEOM::GEOM_Object_ptr MakePlaneThreePnt (GEOM::GEOM_Object_ptr thePnt1,
155                                            GEOM::GEOM_Object_ptr thePnt2,
156                                            GEOM::GEOM_Object_ptr thePnt3,
157                                            CORBA::Double theTrimSize);
158   GEOM::GEOM_Object_ptr MakePlanePntVec (GEOM::GEOM_Object_ptr thePnt,
159                                          GEOM::GEOM_Object_ptr theVec,
160                                          CORBA::Double theTrimSize);
161   GEOM::GEOM_Object_ptr MakePlaneFace (GEOM::GEOM_Object_ptr theFace,
162                                        CORBA::Double theTrimSize);
163   GEOM::GEOM_Object_ptr MakeMarker (CORBA::Double theOX , CORBA::Double theOY , CORBA::Double theOZ,
164                                     CORBA::Double theXDX, CORBA::Double theXDY, CORBA::Double theXDZ,
165                                     CORBA::Double theYDX, CORBA::Double theYDY, CORBA::Double theYDZ);
166
167   GEOM::GEOM_Object_ptr MakeTangentPlaneOnFace (GEOM::GEOM_Object_ptr theFace, 
168                                                  CORBA::Double theParameterU,
169                                                  CORBA::Double theParameterV,
170                                                  CORBA::Double theTrimSize);
171
172   //-----------------------------------------------------------//
173   // Primitives Construction : 3DPrimOperations                //
174   //-----------------------------------------------------------//
175   GEOM::GEOM_Object_ptr MakeBox (CORBA::Double theX1,
176                                  CORBA::Double theY1,
177                                  CORBA::Double theZ1,
178                                  CORBA::Double theX2,
179                                  CORBA::Double theY2,
180                                  CORBA::Double theZ2);
181   GEOM::GEOM_Object_ptr MakeBoxDXDYDZ (CORBA::Double theDX, 
182                                        CORBA::Double theDY, 
183                                        CORBA::Double theDZ);
184   GEOM::GEOM_Object_ptr MakeBoxTwoPnt (GEOM::GEOM_Object_ptr thePnt1, 
185                                        GEOM::GEOM_Object_ptr thePnt2);
186   GEOM::GEOM_Object_ptr MakeCylinderPntVecRH (GEOM::GEOM_Object_ptr thePnt,
187                                               GEOM::GEOM_Object_ptr theAxis,
188                                               CORBA::Double theRadius,
189                                               CORBA::Double theHeight);
190   GEOM::GEOM_Object_ptr MakeCylinderRH (CORBA::Double theR, 
191                                         CORBA::Double theH);
192   GEOM::GEOM_Object_ptr MakeSphere (CORBA::Double theX,
193                                     CORBA::Double theY,
194                                     CORBA::Double theZ,
195                                     CORBA::Double theRadius);
196   GEOM::GEOM_Object_ptr MakeSphereR (CORBA::Double theR);
197   GEOM::GEOM_Object_ptr MakeSpherePntR (GEOM::GEOM_Object_ptr thePnt, 
198                                         CORBA::Double theR);
199   GEOM::GEOM_Object_ptr MakeTorusPntVecRR (GEOM::GEOM_Object_ptr thePnt,
200                                            GEOM::GEOM_Object_ptr theVec,
201                                            CORBA::Double theRMajor,
202                                            CORBA::Double theRMinor);
203   GEOM::GEOM_Object_ptr MakeTorusRR (CORBA::Double theRMajor,
204                                      CORBA::Double theRMinor);
205   GEOM::GEOM_Object_ptr MakeConePntVecR1R2H (GEOM::GEOM_Object_ptr thePnt,
206                                              GEOM::GEOM_Object_ptr theAxis,
207                                              CORBA::Double theR1,
208                                              CORBA::Double theR2,
209                                              CORBA::Double theHeight);
210   GEOM::GEOM_Object_ptr MakeConeR1R2H (CORBA::Double theR1, 
211                                        CORBA::Double theR2, 
212                                        CORBA::Double theHeight);
213   GEOM::GEOM_Object_ptr MakePrismVecH (GEOM::GEOM_Object_ptr theBase,
214                                        GEOM::GEOM_Object_ptr theVec,
215                                        CORBA::Double         theH);
216   GEOM::GEOM_Object_ptr MakePrismTwoPnt (GEOM::GEOM_Object_ptr theBase,
217                                          GEOM::GEOM_Object_ptr thePoint1,
218                                          GEOM::GEOM_Object_ptr thePoint2);
219   GEOM::GEOM_Object_ptr MakePipe (GEOM::GEOM_Object_ptr theBase, 
220                                   GEOM::GEOM_Object_ptr thePath);
221   GEOM::GEOM_Object_ptr MakeRevolutionAxisAngle (GEOM::GEOM_Object_ptr theBase,
222                                                  GEOM::GEOM_Object_ptr theAxis,
223                                                  CORBA::Double theAngle);
224   GEOM::GEOM_Object_ptr MakeFilling (GEOM::GEOM_Object_ptr theShape,
225                                      CORBA::Long theMinDeg, CORBA::Long theMaxDeg,
226                                      CORBA::Double theTol2D, CORBA::Double theTol3D,
227                                      CORBA::Long theNbIter);
228
229   GEOM::GEOM_Object_ptr MakeThruSections(const GEOM::ListOfGO& theSeqSections,
230                                          CORBA::Boolean theModeSolid,
231                                          CORBA::Double thePreci,
232                                          CORBA::Boolean theRuled);
233   
234   GEOM::GEOM_Object_ptr MakePipeWithDifferentSections(const GEOM::ListOfGO& theBases,
235                                                       const GEOM::ListOfGO& theLocations,
236                                                       GEOM::GEOM_Object_ptr thePath,
237                                                       CORBA::Boolean theWithContact,
238                                                       CORBA::Boolean theWithCorrections);
239   
240   GEOM::GEOM_Object_ptr MakePipeWithShellSections(const GEOM::ListOfGO& theBases,
241                                                   const GEOM::ListOfGO& theSubBases,
242                                                   const GEOM::ListOfGO& theLocations,
243                                                   GEOM::GEOM_Object_ptr thePath,
244                                                   CORBA::Boolean theWithContact,
245                                                   CORBA::Boolean theWithCorrections);
246
247   GEOM::GEOM_Object_ptr MakePipeShellsWithoutPath(const GEOM::ListOfGO& theBases,
248                                                   const GEOM::ListOfGO& theLocations);
249   
250   //-----------------------------------------------------------//
251   // BooleanOperations                                         //
252   //-----------------------------------------------------------//
253   GEOM::GEOM_Object_ptr MakeBoolean (GEOM::GEOM_Object_ptr theShape1,
254                                      GEOM::GEOM_Object_ptr theShape2,
255                                      CORBA::Long theOperation);
256   GEOM::GEOM_Object_ptr MakeFuse (GEOM::GEOM_Object_ptr theShape1,
257                                   GEOM::GEOM_Object_ptr theShape2);
258   GEOM::GEOM_Object_ptr MakePartition (GEOM::GEOM_List_ptr   theShapes,
259                                        GEOM::GEOM_List_ptr   theTools,
260                                        GEOM::GEOM_List_ptr   theKeepInside,
261                                        GEOM::GEOM_List_ptr   theRemoveInside,
262                                        CORBA::Short      theLimit,
263                                        CORBA::Boolean    theRemoveWebs,
264                                        GEOM::GEOM_List_ptr theMaterials,
265                                        CORBA::Short theKeepNonlimitShapes);
266   GEOM::GEOM_Object_ptr MakeHalfPartition (GEOM::GEOM_Object_ptr theShape,
267                                            GEOM::GEOM_Object_ptr thePlane);
268
269   //-----------------------------------------------------------//
270   // InsertOperations                                          //
271   //-----------------------------------------------------------//
272   GEOM::GEOM_Object_ptr MakeCopy (GEOM::GEOM_Object_ptr theOriginal);
273   void Export (GEOM::GEOM_Object_ptr theObject, 
274                const char*           theFileName, 
275                const char*           theFormatName);
276   GEOM::GEOM_Object_ptr Import (const char* theFileName, 
277                                 const char* theFormatName);
278   void ImportTranslators (GEOM::string_array_out theFormats,
279                           GEOM::string_array_out thePatterns);
280   void ExportTranslators (GEOM::string_array_out theFormats,
281                           GEOM::string_array_out thePatterns);
282
283   //-----------------------------------------------------------//
284   // TransformOperations                                       //
285   //-----------------------------------------------------------//
286   GEOM::GEOM_Object_ptr TranslateTwoPoints (GEOM::GEOM_Object_ptr theObject,
287                                             GEOM::GEOM_Object_ptr thePoint1,
288                                             GEOM::GEOM_Object_ptr thePoint2);
289   GEOM::GEOM_Object_ptr TranslateTwoPointsCopy (GEOM::GEOM_Object_ptr theObject,
290                                                 GEOM::GEOM_Object_ptr thePoint1,
291                                                 GEOM::GEOM_Object_ptr thePoint2);
292   GEOM::GEOM_Object_ptr TranslateDXDYDZ (GEOM::GEOM_Object_ptr theObject,
293                                          CORBA::Double theDX, 
294                                          CORBA::Double theDY, 
295                                          CORBA::Double theDZ);
296   GEOM::GEOM_Object_ptr TranslateDXDYDZCopy (GEOM::GEOM_Object_ptr theObject,
297                                              CORBA::Double theDX, 
298                                              CORBA::Double theDY, 
299                                              CORBA::Double theDZ);
300   GEOM::GEOM_Object_ptr TranslateVector (GEOM::GEOM_Object_ptr theObject,
301                                          GEOM::GEOM_Object_ptr theVector);
302   GEOM::GEOM_Object_ptr TranslateVectorCopy (GEOM::GEOM_Object_ptr theObject,
303                                              GEOM::GEOM_Object_ptr theVector);
304   GEOM::GEOM_Object_ptr MultiTranslate1D (GEOM::GEOM_Object_ptr theObject,
305                                           GEOM::GEOM_Object_ptr theVector,
306                                           CORBA::Double theStep,
307                                           CORBA::Long theNbTimes);
308   GEOM::GEOM_Object_ptr MultiTranslate2D (GEOM::GEOM_Object_ptr theObject,
309                                           GEOM::GEOM_Object_ptr theVector1,
310                                           CORBA::Double theStep1,
311                                           CORBA::Long theNbTimes1,
312                                           GEOM::GEOM_Object_ptr theVector2,
313                                           CORBA::Double theStep2,
314                                           CORBA::Long theNbTimes2);
315   GEOM::GEOM_Object_ptr Rotate (GEOM::GEOM_Object_ptr theObject,
316                                 GEOM::GEOM_Object_ptr theAxis,
317                                 CORBA::Double theAngle);
318   GEOM::GEOM_Object_ptr RotateCopy (GEOM::GEOM_Object_ptr theObject,
319                                     GEOM::GEOM_Object_ptr theAxis,
320                                     CORBA::Double theAngle);
321
322   GEOM::GEOM_Object_ptr RotateThreePoints (GEOM::GEOM_Object_ptr theObject,
323                                            GEOM::GEOM_Object_ptr theCentPoint,
324                                            GEOM::GEOM_Object_ptr thePoint1,
325                                            GEOM::GEOM_Object_ptr thePoint2);
326
327   GEOM::GEOM_Object_ptr RotateThreePointsCopy (GEOM::GEOM_Object_ptr theObject,
328                                                GEOM::GEOM_Object_ptr theCentPoint,
329                                                GEOM::GEOM_Object_ptr thePoint1,
330                                                GEOM::GEOM_Object_ptr thePoint2);
331
332   GEOM::GEOM_Object_ptr MultiRotate1D (GEOM::GEOM_Object_ptr theObject,
333                                        GEOM::GEOM_Object_ptr theAxis,
334                                        CORBA::Long theNbTimes);
335   GEOM::GEOM_Object_ptr MultiRotate2D (GEOM::GEOM_Object_ptr theObject,
336                                        GEOM::GEOM_Object_ptr theAxis,
337                                        CORBA::Double theAngle,
338                                        CORBA::Long theNbTimes1,
339                                        CORBA::Double theStep,
340                                        CORBA::Long theNbTimes2);
341   GEOM::GEOM_Object_ptr MirrorPlane (GEOM::GEOM_Object_ptr theObject, 
342                                      GEOM::GEOM_Object_ptr thePlane);
343   GEOM::GEOM_Object_ptr MirrorPlaneCopy (GEOM::GEOM_Object_ptr theObject, 
344                                          GEOM::GEOM_Object_ptr thePlane);
345   GEOM::GEOM_Object_ptr MirrorAxis (GEOM::GEOM_Object_ptr theObject, 
346                                     GEOM::GEOM_Object_ptr theAxis);
347   GEOM::GEOM_Object_ptr MirrorAxisCopy (GEOM::GEOM_Object_ptr theObject, 
348                                         GEOM::GEOM_Object_ptr theAxis);
349   GEOM::GEOM_Object_ptr MirrorPoint (GEOM::GEOM_Object_ptr theObject, 
350                                      GEOM::GEOM_Object_ptr thePoint);
351   GEOM::GEOM_Object_ptr MirrorPointCopy (GEOM::GEOM_Object_ptr theObject, 
352                                          GEOM::GEOM_Object_ptr thePoint);
353   GEOM::GEOM_Object_ptr OffsetShape (GEOM::GEOM_Object_ptr theObject, 
354                                      CORBA::Double theOffset);
355   GEOM::GEOM_Object_ptr OffsetShapeCopy (GEOM::GEOM_Object_ptr theObject, 
356                                          CORBA::Double theOffset);
357   GEOM::GEOM_Object_ptr ScaleShape (GEOM::GEOM_Object_ptr theObject, 
358                                     GEOM::GEOM_Object_ptr thePoint,
359                                     CORBA::Double theFactor);
360   GEOM::GEOM_Object_ptr ScaleShapeCopy (GEOM::GEOM_Object_ptr theObject, 
361                                         GEOM::GEOM_Object_ptr thePoint,
362                                         CORBA::Double theFactor);
363   GEOM::GEOM_Object_ptr PositionShape (GEOM::GEOM_Object_ptr theObject,
364                                        GEOM::GEOM_Object_ptr theStartLCS,
365                                        GEOM::GEOM_Object_ptr theEndLCS);
366   GEOM::GEOM_Object_ptr PositionShapeCopy (GEOM::GEOM_Object_ptr theObject,
367                                            GEOM::GEOM_Object_ptr theStartLCS,
368                                            GEOM::GEOM_Object_ptr theEndLCS);
369
370   //-----------------------------------------------------------//
371   // ShapesOperations                                          //
372   //-----------------------------------------------------------//
373   GEOM::GEOM_Object_ptr MakeEdge (GEOM::GEOM_Object_ptr thePnt1,
374                                   GEOM::GEOM_Object_ptr thePnt2);
375   GEOM::GEOM_Object_ptr MakeWire (GEOM::GEOM_List_ptr theEdgesAndWires);
376   GEOM::GEOM_Object_ptr MakeFace (GEOM::GEOM_Object_ptr theWire,
377                                   CORBA::Boolean isPlanarWanted);
378   GEOM::GEOM_Object_ptr MakeFaceWires (GEOM::GEOM_List_ptr theWires,
379                                        CORBA::Boolean isPlanarWanted);
380   GEOM::GEOM_Object_ptr MakeShell (GEOM::GEOM_List_ptr theFacesAndShells);
381   GEOM::GEOM_Object_ptr MakeSolidShell (GEOM::GEOM_Object_ptr theShell);
382   GEOM::GEOM_Object_ptr MakeSolidShells (GEOM::GEOM_List_ptr theShells);
383   GEOM::GEOM_Object_ptr MakeCompound (GEOM::GEOM_List_ptr theShapes);
384   GEOM::GEOM_Object_ptr MakeGlueFaces (GEOM::GEOM_Object_ptr theShape,
385                                        CORBA::Double theTolerance,
386                                        CORBA::Boolean doKeepNonSolids);
387   GEOM::GEOM_List_ptr GetGlueFaces (GEOM::GEOM_Object_ptr theShape,
388                                     CORBA::Double theTolerance);
389   GEOM::GEOM_Object_ptr MakeGlueFacesByList (GEOM::GEOM_Object_ptr theShape,
390                                              CORBA::Double theTolerance,
391                                              const GEOM::ListOfGO& theFaces,
392                                              CORBA::Boolean doKeepNonSolids);
393   GEOM::GEOM_List_ptr MakeExplode (GEOM::GEOM_Object_ptr theShape,
394                                        CORBA::Long theShapeType,
395                                        CORBA::Boolean isSorted);
396   CORBA::Long NumberOfFaces (GEOM::GEOM_Object_ptr theShape);
397   CORBA::Long NumberOfEdges (GEOM::GEOM_Object_ptr theShape);
398   GEOM::GEOM_Object_ptr ChangeOrientation (GEOM::GEOM_Object_ptr theShape);
399
400   //-----------------------------------------------------------//
401   // BlocksOperations                                          //
402   //-----------------------------------------------------------//
403   GEOM::GEOM_Object_ptr MakeQuad4Vertices (GEOM::GEOM_Object_ptr thePnt1,
404                                            GEOM::GEOM_Object_ptr thePnt2,
405                                            GEOM::GEOM_Object_ptr thePnt3,
406                                            GEOM::GEOM_Object_ptr thePnt4);
407   GEOM::GEOM_Object_ptr MakeQuad (GEOM::GEOM_Object_ptr theEdge1,
408                                   GEOM::GEOM_Object_ptr theEdge2,
409                                   GEOM::GEOM_Object_ptr theEdge3,
410                                   GEOM::GEOM_Object_ptr theEdge4);
411   GEOM::GEOM_Object_ptr MakeQuad2Edges (GEOM::GEOM_Object_ptr theEdge1,
412                                         GEOM::GEOM_Object_ptr theEdge2);
413   GEOM::GEOM_Object_ptr MakeHexa (GEOM::GEOM_Object_ptr theFace1,
414                                   GEOM::GEOM_Object_ptr theFace2,
415                                   GEOM::GEOM_Object_ptr theFace3,
416                                   GEOM::GEOM_Object_ptr theFace4,
417                                   GEOM::GEOM_Object_ptr theFace5,
418                                   GEOM::GEOM_Object_ptr theFace6);
419   GEOM::GEOM_Object_ptr MakeHexa2Faces (GEOM::GEOM_Object_ptr theFace1,
420                                         GEOM::GEOM_Object_ptr theFace2);
421   GEOM::GEOM_Object_ptr GetPoint (GEOM::GEOM_Object_ptr theShape,
422                                   CORBA::Double   theX,
423                                   CORBA::Double   theY,
424                                   CORBA::Double   theZ,
425                                   CORBA::Double   theEpsilon);
426   GEOM::GEOM_Object_ptr GetEdge (GEOM::GEOM_Object_ptr theShape,
427                                  GEOM::GEOM_Object_ptr thePoint1,
428                                  GEOM::GEOM_Object_ptr thePoint2);
429   GEOM::GEOM_Object_ptr GetEdgeNearPoint (GEOM::GEOM_Object_ptr theShape,
430                                           GEOM::GEOM_Object_ptr thePoint);
431   GEOM::GEOM_Object_ptr GetFaceByPoints (GEOM::GEOM_Object_ptr theShape,
432                                          GEOM::GEOM_Object_ptr thePoint1,
433                                          GEOM::GEOM_Object_ptr thePoint2,
434                                          GEOM::GEOM_Object_ptr thePoint3,
435                                          GEOM::GEOM_Object_ptr thePoint4);
436   GEOM::GEOM_Object_ptr GetFaceByEdges (GEOM::GEOM_Object_ptr theShape,
437                                         GEOM::GEOM_Object_ptr theEdge1,
438                                         GEOM::GEOM_Object_ptr theEdge2);
439   GEOM::GEOM_Object_ptr GetOppositeFace (GEOM::GEOM_Object_ptr theBlock,
440                                          GEOM::GEOM_Object_ptr theFace);
441   GEOM::GEOM_Object_ptr GetFaceNearPoint (GEOM::GEOM_Object_ptr theShape,
442                                           GEOM::GEOM_Object_ptr thePoint);
443   GEOM::GEOM_Object_ptr GetFaceByNormale (GEOM::GEOM_Object_ptr theBlock,
444                                           GEOM::GEOM_Object_ptr theVector);
445   CORBA::Boolean IsCompoundOfBlocks (GEOM::GEOM_Object_ptr theCompound,
446                                      CORBA::Long     theMinNbFaces,
447                                      CORBA::Long     theMaxNbFaces,
448                                      CORBA::Long&          theNbBlocks);
449   CORBA::Boolean CheckCompoundOfBlocks (GEOM::GEOM_Object_ptr theCompound,
450                                         GEOM::GEOM_IBlocksOperations::BCErrors_out theErrors);
451   char* PrintBCErrors (GEOM::GEOM_Object_ptr theCompound,
452                        const GEOM::GEOM_IBlocksOperations::BCErrors& theErrors);
453   GEOM::GEOM_List_ptr ExplodeCompoundOfBlocks (GEOM::GEOM_Object_ptr theCompound,
454                                                    CORBA::Long     theMinNbFaces,
455                                                    CORBA::Long     theMaxNbFaces);
456   GEOM::GEOM_Object_ptr GetBlockNearPoint (GEOM::GEOM_Object_ptr theCompound,
457                                            GEOM::GEOM_Object_ptr thePoint);
458   GEOM::GEOM_Object_ptr GetBlockByParts (GEOM::GEOM_Object_ptr theCompound,
459                                          GEOM::GEOM_List_ptr theParts);
460   GEOM::GEOM_List_ptr GetBlocksByParts (GEOM::GEOM_Object_ptr theCompound,
461                                             GEOM::GEOM_List_ptr theParts);
462   GEOM::GEOM_Object_ptr MakeMultiTransformation1D (GEOM::GEOM_Object_ptr theBlock,
463                                                    CORBA::Long     theDirFace1,
464                                                    CORBA::Long     theDirFace2,
465                                                    CORBA::Long     theNbTimes);
466   GEOM::GEOM_Object_ptr MakeMultiTransformation2D (GEOM::GEOM_Object_ptr theBlock,
467                                                    CORBA::Long     theDirFace1U,
468                                                    CORBA::Long     theDirFace2U,
469                                                    CORBA::Long     theNbTimesU,
470                                                    CORBA::Long     theDirFace1V,
471                                                    CORBA::Long     theDirFace2V,
472                                                    CORBA::Long     theNbTimesV);
473
474   //-----------------------------------------------------------//
475   // CurvesOperations                                          //
476   //-----------------------------------------------------------//
477   GEOM::GEOM_Object_ptr MakeCirclePntVecR (GEOM::GEOM_Object_ptr theCenter,
478                                            GEOM::GEOM_Object_ptr theVector,
479                                            CORBA::Double theR);
480   GEOM::GEOM_Object_ptr MakeCircleThreePnt (GEOM::GEOM_Object_ptr thePnt1,
481                                             GEOM::GEOM_Object_ptr thePnt2,
482                                             GEOM::GEOM_Object_ptr thePnt3);
483   GEOM::GEOM_Object_ptr MakeCircleCenter2Pnt (GEOM::GEOM_Object_ptr thePnt1,
484                                               GEOM::GEOM_Object_ptr thePnt2,
485                                               GEOM::GEOM_Object_ptr thePnt3);
486   GEOM::GEOM_Object_ptr MakeEllipse (GEOM::GEOM_Object_ptr theCenter,
487                                      GEOM::GEOM_Object_ptr theVector,
488                                      CORBA::Double theRMajor, CORBA::Double theRMinor);
489   GEOM::GEOM_Object_ptr MakeArc (GEOM::GEOM_Object_ptr thePnt1,
490                                  GEOM::GEOM_Object_ptr thePnt2,
491                                  GEOM::GEOM_Object_ptr thePnt3);
492   GEOM::GEOM_Object_ptr MakeArcCenter (GEOM::GEOM_Object_ptr theCenter,
493                                        GEOM::GEOM_Object_ptr thePnt1,
494                                        GEOM::GEOM_Object_ptr thePnt2,
495                                        CORBA::Boolean theSense);
496   GEOM::GEOM_Object_ptr MakePolyline (GEOM::GEOM_List_ptr thePoints);
497   GEOM::GEOM_Object_ptr MakeSplineBezier (GEOM::GEOM_List_ptr thePoints);
498   GEOM::GEOM_Object_ptr MakeSplineInterpolation (GEOM::GEOM_List_ptr thePoints);
499   GEOM::GEOM_Object_ptr MakeSketcher (const char* theCommand, 
500                                                 GEOM::GEOM_List_ptr theWorkingPlane);
501
502   //-----------------------------------------------------------//
503   // LocalOperations                                           //
504   //-----------------------------------------------------------//
505   GEOM::GEOM_Object_ptr MakeFilletAll (GEOM::GEOM_Object_ptr theShape,
506                                        CORBA::Double theR);
507   GEOM::GEOM_Object_ptr MakeFilletEdges (GEOM::GEOM_Object_ptr theShape, CORBA::Double theR,
508                                          GEOM::GEOM_List_ptr theEdges);
509   GEOM::GEOM_Object_ptr MakeFilletEdgesR1R2 (GEOM::GEOM_Object_ptr theShape, CORBA::Double theR1,
510                                              CORBA::Double theR2, GEOM::GEOM_List_ptr theEdges);
511   GEOM::GEOM_Object_ptr MakeFilletFaces (GEOM::GEOM_Object_ptr theShape, CORBA::Double theR,
512                                          GEOM::GEOM_List_ptr theFaces);
513   GEOM::GEOM_Object_ptr MakeFilletFacesR1R2 (GEOM::GEOM_Object_ptr theShape, CORBA::Double theR1,
514                                              CORBA::Double theR2, GEOM::GEOM_List_ptr theFaces);
515   GEOM::GEOM_Object_ptr MakeChamferAll (GEOM::GEOM_Object_ptr theShape, CORBA::Double theD);
516   GEOM::GEOM_Object_ptr MakeChamferEdge (GEOM::GEOM_Object_ptr theShape,
517                                          CORBA::Double theD1, CORBA::Double theD2,
518                                          CORBA::Long theFace1, CORBA::Long theFace2);
519   GEOM::GEOM_Object_ptr MakeChamferEdgeAD (GEOM::GEOM_Object_ptr theShape,
520                                            CORBA::Double theD, CORBA::Double theAngle,
521                                            CORBA::Long theFace1, CORBA::Long theFace2);
522   GEOM::GEOM_Object_ptr MakeChamferFaces (GEOM::GEOM_Object_ptr theShape,
523                                           CORBA::Double theD1, CORBA::Double theD2,
524                                           GEOM::GEOM_List_ptr theFaces);
525   GEOM::GEOM_Object_ptr MakeChamferFacesAD (GEOM::GEOM_Object_ptr theShape,
526                                             CORBA::Double theD, CORBA::Double theAngle,
527                                             GEOM::GEOM_List_ptr theFaces);
528   GEOM::GEOM_Object_ptr MakeChamferEdges (GEOM::GEOM_Object_ptr theShape,
529                                           CORBA::Double theD1, CORBA::Double theD2,
530                                           GEOM::GEOM_List_ptr theEdges);
531   GEOM::GEOM_Object_ptr MakeChamferEdgesAD (GEOM::GEOM_Object_ptr theShape,
532                                             CORBA::Double theD, CORBA::Double theAngle,
533                                             GEOM::GEOM_List_ptr theEdges);
534   GEOM::GEOM_Object_ptr MakeArchimede (GEOM::GEOM_Object_ptr theShape,
535                                        CORBA::Double theWeight,
536                                        CORBA::Double theWaterDensity,
537                                        CORBA::Double theMeshingDeflection);
538   CORBA::Long GetSubShapeIndex (GEOM::GEOM_Object_ptr theShape,
539                                 GEOM::GEOM_Object_ptr theSubShape);
540
541   //-----------------------------------------------------------//
542   // GroupOperations                                           //
543   //-----------------------------------------------------------//
544   GEOM::GEOM_Object_ptr CreateGroup (GEOM::GEOM_Object_ptr theMainShape, 
545                                      CORBA::Long theShapeType);
546   void AddObject (GEOM::GEOM_Object_ptr theGroup, 
547                   CORBA::Long theSubShapeId);
548   void RemoveObject (GEOM::GEOM_Object_ptr theGroup, 
549                      CORBA::Long theSubShapeId);
550   CORBA::Long GetType (GEOM::GEOM_Object_ptr theGroup);
551   GEOM::GEOM_Object_ptr GetMainShape (GEOM::GEOM_Object_ptr theGroup);
552   GEOM::GEOM_List_ptr GetObjects (GEOM::GEOM_Object_ptr theGroup);
553   
554 private:
555   SALOME_NamingService *  name_service; 
556   GEOM::GEOM_Gen_ptr      myGeomEngine;
557   CORBA::Long             myStudyID;
558   CORBA::Long             myLastStudyID; // mkr : PAL10770
559   PortableServer::POA_var myPOA;
560   
561   GEOM::GEOM_IBasicOperations_ptr     myBasicOp;
562   GEOM::GEOM_I3DPrimOperations_ptr    my3DPrimOp;
563   GEOM::GEOM_IBooleanOperations_ptr   myBoolOp;
564   GEOM::GEOM_IInsertOperations_ptr    myInsOp;
565   GEOM::GEOM_ITransformOperations_ptr myTransfOp;
566   GEOM::GEOM_IShapesOperations_ptr    myShapesOp;
567   GEOM::GEOM_IBlocksOperations_ptr    myBlocksOp;
568   GEOM::GEOM_ICurvesOperations_ptr    myCurvesOp;
569   GEOM::GEOM_ILocalOperations_ptr     myLocalOp;
570   GEOM::GEOM_IGroupOperations_ptr     myGroupOp;
571
572 };
573
574 #endif