1 // Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 #ifndef __GEOM_SUPERV_I_H__
23 #define __GEOM_SUPERV_I_H__
26 #include <SALOMEconfig.h>
27 #include CORBA_SERVER_HEADER(GEOM_Superv)
29 #include "GEOM_Gen_i.hh"
30 #include "GEOM_List_i.hh"
32 class GEOM_Superv_i : public virtual POA_GEOM::GEOM_Superv,
33 public Engines_Component_i
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);
43 // generic method to be put in a super class
44 void register_name(char * name);
58 PortableServer::ServantBase_var GetServant(CORBA::Object_ptr theObject,
59 PortableServer::POA_ptr thePOA);
61 //-----------------------------------------------------------------------//
62 // Set current stydy ID //
63 //-----------------------------------------------------------------------//
64 void SetStudyID( CORBA::Long theId );
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);
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);
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);
87 //-----------------------------------------------------------------------//
88 // Inherited methods from SALOMEDS::Driver //
89 //-----------------------------------------------------------------------//
91 SALOMEDS::TMPFile* Save(SALOMEDS::SComponent_ptr theComponent,
93 CORBA::Boolean isMultiFile);
95 SALOMEDS::TMPFile* SaveASCII(SALOMEDS::SComponent_ptr theComponent,
97 CORBA::Boolean isMultiFile);
99 CORBA::Boolean Load(SALOMEDS::SComponent_ptr theComponent,
100 const SALOMEDS::TMPFile& theStream,
102 CORBA::Boolean isMultiFile);
104 CORBA::Boolean LoadASCII(SALOMEDS::SComponent_ptr theComponent,
105 const SALOMEDS::TMPFile& theStream,
107 CORBA::Boolean isMultiFile);
109 void Close(SALOMEDS::SComponent_ptr theComponent);
110 char* ComponentDataType();
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);
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) ;
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);
135 //-----------------------------------------------------------//
136 // Primitives Construction : BasicOperations //
137 //-----------------------------------------------------------//
138 GEOM::GEOM_Object_ptr MakePointXYZ (CORBA::Double theX,
141 GEOM::GEOM_Object_ptr MakePointWithReference (GEOM::GEOM_Object_ptr theReference,
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,
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);
179 GEOM::GEOM_Object_ptr MakeTangentPlaneOnFace (GEOM::GEOM_Object_ptr theFace,
180 CORBA::Double theParameterU,
181 CORBA::Double theParameterV,
182 CORBA::Double theTrimSize);
184 //-----------------------------------------------------------//
185 // Primitives Construction : 3DPrimOperations //
186 //-----------------------------------------------------------//
187 GEOM::GEOM_Object_ptr MakeBox (CORBA::Double theX1,
192 CORBA::Double theZ2);
193 GEOM::GEOM_Object_ptr MakeBoxDXDYDZ (CORBA::Double theDX,
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,
200 CORBA::Short theOrientation);
201 GEOM::GEOM_Object_ptr MakeFaceObjHW (GEOM::GEOM_Object_ptr theObj,
204 GEOM::GEOM_Object_ptr MakeDiskPntVecR (GEOM::GEOM_Object_ptr theCenter,
205 GEOM::GEOM_Object_ptr theVector,
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,
218 GEOM::GEOM_Object_ptr MakeSphere (CORBA::Double theX,
221 CORBA::Double theRadius);
222 GEOM::GEOM_Object_ptr MakeSphereR (CORBA::Double theR);
223 GEOM::GEOM_Object_ptr MakeSpherePntR (GEOM::GEOM_Object_ptr thePnt,
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,
235 CORBA::Double theHeight);
236 GEOM::GEOM_Object_ptr MakeConeR1R2H (CORBA::Double theR1,
238 CORBA::Double theHeight);
239 GEOM::GEOM_Object_ptr MakePrismVecH (GEOM::GEOM_Object_ptr theBase,
240 GEOM::GEOM_Object_ptr theVec,
242 GEOM::GEOM_Object_ptr MakePrismVecH2Ways (GEOM::GEOM_Object_ptr theBase,
243 GEOM::GEOM_Object_ptr theVec,
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,
254 CORBA::Double theDZ);
255 GEOM::GEOM_Object_ptr MakePrismDXDYDZ2Ways (GEOM::GEOM_Object_ptr theBase,
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);
272 GEOM::GEOM_Object_ptr MakeThruSections(const GEOM::ListOfGO& theSeqSections,
273 CORBA::Boolean theModeSolid,
274 CORBA::Double thePreci,
275 CORBA::Boolean theRuled);
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);
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);
290 GEOM::GEOM_Object_ptr MakePipeShellsWithoutPath(const GEOM::ListOfGO& theBases,
291 const GEOM::ListOfGO& theLocations);
293 GEOM::GEOM_Object_ptr MakePipeBiNormalAlongVector (GEOM::GEOM_Object_ptr theBase,
294 GEOM::GEOM_Object_ptr thePath,
295 GEOM::GEOM_Object_ptr theVec);
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);
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);
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,
342 CORBA::Double theDZ);
343 GEOM::GEOM_Object_ptr TranslateDXDYDZCopy (GEOM::GEOM_Object_ptr theObject,
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);
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);
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);
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);
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 GEOM::GEOM_Object_ptr MakeFace (GEOM::GEOM_Object_ptr theWire,
443 CORBA::Boolean isPlanarWanted);
444 GEOM::GEOM_Object_ptr MakeFaceWires (GEOM::GEOM_List_ptr theWires,
445 CORBA::Boolean isPlanarWanted);
446 GEOM::GEOM_Object_ptr MakeShell (GEOM::GEOM_List_ptr theFacesAndShells);
447 GEOM::GEOM_Object_ptr MakeSolidShell (GEOM::GEOM_Object_ptr theShell);
448 GEOM::GEOM_Object_ptr MakeSolidShells (GEOM::GEOM_List_ptr theShells);
449 GEOM::GEOM_Object_ptr MakeCompound (GEOM::GEOM_List_ptr theShapes);
450 GEOM::GEOM_Object_ptr MakeGlueFaces (GEOM::GEOM_Object_ptr theShape,
451 CORBA::Double theTolerance,
452 CORBA::Boolean doKeepNonSolids);
453 GEOM::GEOM_List_ptr GetGlueFaces (GEOM::GEOM_Object_ptr theShape,
454 CORBA::Double theTolerance);
455 GEOM::GEOM_Object_ptr MakeGlueFacesByList (GEOM::GEOM_Object_ptr theShape,
456 CORBA::Double theTolerance,
457 const GEOM::ListOfGO& theFaces,
458 CORBA::Boolean doKeepNonSolids);
459 GEOM::GEOM_List_ptr MakeExplode (GEOM::GEOM_Object_ptr theShape,
460 CORBA::Long theShapeType,
461 CORBA::Boolean isSorted);
462 CORBA::Long NumberOfFaces (GEOM::GEOM_Object_ptr theShape);
463 CORBA::Long NumberOfEdges (GEOM::GEOM_Object_ptr theShape);
464 GEOM::GEOM_Object_ptr ChangeOrientation (GEOM::GEOM_Object_ptr theShape);
466 GEOM::GEOM_List_ptr GetShapesOnShape (GEOM::GEOM_Object_ptr theCheckShape,
467 GEOM::GEOM_Object_ptr theShape,
468 CORBA::Short theShapeType,
469 GEOM::shape_state theState);
470 GEOM::GEOM_Object_ptr GetShapesOnShapeAsCompound
471 (GEOM::GEOM_Object_ptr theCheckShape,
472 GEOM::GEOM_Object_ptr theShape,
473 CORBA::Short theShapeType,
474 GEOM::shape_state theState);
477 //-----------------------------------------------------------//
478 // BlocksOperations //
479 //-----------------------------------------------------------//
480 GEOM::GEOM_Object_ptr MakeQuad4Vertices (GEOM::GEOM_Object_ptr thePnt1,
481 GEOM::GEOM_Object_ptr thePnt2,
482 GEOM::GEOM_Object_ptr thePnt3,
483 GEOM::GEOM_Object_ptr thePnt4);
484 GEOM::GEOM_Object_ptr MakeQuad (GEOM::GEOM_Object_ptr theEdge1,
485 GEOM::GEOM_Object_ptr theEdge2,
486 GEOM::GEOM_Object_ptr theEdge3,
487 GEOM::GEOM_Object_ptr theEdge4);
488 GEOM::GEOM_Object_ptr MakeQuad2Edges (GEOM::GEOM_Object_ptr theEdge1,
489 GEOM::GEOM_Object_ptr theEdge2);
490 GEOM::GEOM_Object_ptr MakeHexa (GEOM::GEOM_Object_ptr theFace1,
491 GEOM::GEOM_Object_ptr theFace2,
492 GEOM::GEOM_Object_ptr theFace3,
493 GEOM::GEOM_Object_ptr theFace4,
494 GEOM::GEOM_Object_ptr theFace5,
495 GEOM::GEOM_Object_ptr theFace6);
496 GEOM::GEOM_Object_ptr MakeHexa2Faces (GEOM::GEOM_Object_ptr theFace1,
497 GEOM::GEOM_Object_ptr theFace2);
498 GEOM::GEOM_Object_ptr GetPoint (GEOM::GEOM_Object_ptr theShape,
502 CORBA::Double theEpsilon);
503 GEOM::GEOM_Object_ptr GetEdge (GEOM::GEOM_Object_ptr theShape,
504 GEOM::GEOM_Object_ptr thePoint1,
505 GEOM::GEOM_Object_ptr thePoint2);
506 GEOM::GEOM_Object_ptr GetEdgeNearPoint (GEOM::GEOM_Object_ptr theShape,
507 GEOM::GEOM_Object_ptr thePoint);
508 GEOM::GEOM_Object_ptr GetFaceByPoints (GEOM::GEOM_Object_ptr theShape,
509 GEOM::GEOM_Object_ptr thePoint1,
510 GEOM::GEOM_Object_ptr thePoint2,
511 GEOM::GEOM_Object_ptr thePoint3,
512 GEOM::GEOM_Object_ptr thePoint4);
513 GEOM::GEOM_Object_ptr GetFaceByEdges (GEOM::GEOM_Object_ptr theShape,
514 GEOM::GEOM_Object_ptr theEdge1,
515 GEOM::GEOM_Object_ptr theEdge2);
516 GEOM::GEOM_Object_ptr GetOppositeFace (GEOM::GEOM_Object_ptr theBlock,
517 GEOM::GEOM_Object_ptr theFace);
518 GEOM::GEOM_Object_ptr GetFaceNearPoint (GEOM::GEOM_Object_ptr theShape,
519 GEOM::GEOM_Object_ptr thePoint);
520 GEOM::GEOM_Object_ptr GetFaceByNormale (GEOM::GEOM_Object_ptr theBlock,
521 GEOM::GEOM_Object_ptr theVector);
522 CORBA::Boolean IsCompoundOfBlocks (GEOM::GEOM_Object_ptr theCompound,
523 CORBA::Long theMinNbFaces,
524 CORBA::Long theMaxNbFaces,
525 CORBA::Long& theNbBlocks);
526 CORBA::Boolean CheckCompoundOfBlocks (GEOM::GEOM_Object_ptr theCompound,
527 GEOM::GEOM_IBlocksOperations::BCErrors_out theErrors);
528 char* PrintBCErrors (GEOM::GEOM_Object_ptr theCompound,
529 const GEOM::GEOM_IBlocksOperations::BCErrors& theErrors);
530 GEOM::GEOM_List_ptr ExplodeCompoundOfBlocks (GEOM::GEOM_Object_ptr theCompound,
531 CORBA::Long theMinNbFaces,
532 CORBA::Long theMaxNbFaces);
533 GEOM::GEOM_Object_ptr GetBlockNearPoint (GEOM::GEOM_Object_ptr theCompound,
534 GEOM::GEOM_Object_ptr thePoint);
535 GEOM::GEOM_Object_ptr GetBlockByParts (GEOM::GEOM_Object_ptr theCompound,
536 GEOM::GEOM_List_ptr theParts);
537 GEOM::GEOM_List_ptr GetBlocksByParts (GEOM::GEOM_Object_ptr theCompound,
538 GEOM::GEOM_List_ptr theParts);
539 GEOM::GEOM_Object_ptr MakeMultiTransformation1D (GEOM::GEOM_Object_ptr theBlock,
540 CORBA::Long theDirFace1,
541 CORBA::Long theDirFace2,
542 CORBA::Long theNbTimes);
543 GEOM::GEOM_Object_ptr MakeMultiTransformation2D (GEOM::GEOM_Object_ptr theBlock,
544 CORBA::Long theDirFace1U,
545 CORBA::Long theDirFace2U,
546 CORBA::Long theNbTimesU,
547 CORBA::Long theDirFace1V,
548 CORBA::Long theDirFace2V,
549 CORBA::Long theNbTimesV);
551 //-----------------------------------------------------------//
552 // CurvesOperations //
553 //-----------------------------------------------------------//
554 GEOM::GEOM_Object_ptr MakeCirclePntVecR (GEOM::GEOM_Object_ptr theCenter,
555 GEOM::GEOM_Object_ptr theVector,
557 GEOM::GEOM_Object_ptr MakeCircleThreePnt (GEOM::GEOM_Object_ptr thePnt1,
558 GEOM::GEOM_Object_ptr thePnt2,
559 GEOM::GEOM_Object_ptr thePnt3);
560 GEOM::GEOM_Object_ptr MakeCircleCenter2Pnt (GEOM::GEOM_Object_ptr thePnt1,
561 GEOM::GEOM_Object_ptr thePnt2,
562 GEOM::GEOM_Object_ptr thePnt3);
563 GEOM::GEOM_Object_ptr MakeEllipse (GEOM::GEOM_Object_ptr theCenter,
564 GEOM::GEOM_Object_ptr theVector,
565 CORBA::Double theRMajor, CORBA::Double theRMinor);
566 GEOM::GEOM_Object_ptr MakeEllipseVec (GEOM::GEOM_Object_ptr theCenter,
567 GEOM::GEOM_Object_ptr theVector,
568 CORBA::Double theRMajor, CORBA::Double theRMinor,
569 GEOM::GEOM_Object_ptr theVectorMajor);
570 GEOM::GEOM_Object_ptr MakeArc (GEOM::GEOM_Object_ptr thePnt1,
571 GEOM::GEOM_Object_ptr thePnt2,
572 GEOM::GEOM_Object_ptr thePnt3);
573 GEOM::GEOM_Object_ptr MakeArcCenter (GEOM::GEOM_Object_ptr theCenter,
574 GEOM::GEOM_Object_ptr thePnt1,
575 GEOM::GEOM_Object_ptr thePnt2,
576 CORBA::Boolean theSense);
577 GEOM::GEOM_Object_ptr MakeArcOfEllipse (GEOM::GEOM_Object_ptr thePnt1,
578 GEOM::GEOM_Object_ptr thePnt2,
579 GEOM::GEOM_Object_ptr thePnt3);
580 GEOM::GEOM_Object_ptr MakePolyline (GEOM::GEOM_List_ptr thePoints);
581 GEOM::GEOM_Object_ptr MakeSplineBezier (GEOM::GEOM_List_ptr thePoints);
582 GEOM::GEOM_Object_ptr MakeSplineInterpolation (GEOM::GEOM_List_ptr thePoints);
583 GEOM::GEOM_Object_ptr MakeSketcher (const char* theCommand,
584 GEOM::GEOM_List_ptr theWorkingPlane);
585 GEOM::GEOM_Object_ptr Make3DSketcher (GEOM::GEOM_List_ptr theCoordinates);
587 //-----------------------------------------------------------//
588 // LocalOperations //
589 //-----------------------------------------------------------//
590 GEOM::GEOM_Object_ptr MakeFilletAll (GEOM::GEOM_Object_ptr theShape,
592 GEOM::GEOM_Object_ptr MakeFilletEdges (GEOM::GEOM_Object_ptr theShape, CORBA::Double theR,
593 GEOM::GEOM_List_ptr theEdges);
594 GEOM::GEOM_Object_ptr MakeFilletEdgesR1R2 (GEOM::GEOM_Object_ptr theShape, CORBA::Double theR1,
595 CORBA::Double theR2, GEOM::GEOM_List_ptr theEdges);
596 GEOM::GEOM_Object_ptr MakeFilletFaces (GEOM::GEOM_Object_ptr theShape, CORBA::Double theR,
597 GEOM::GEOM_List_ptr theFaces);
598 GEOM::GEOM_Object_ptr MakeFilletFacesR1R2 (GEOM::GEOM_Object_ptr theShape, CORBA::Double theR1,
599 CORBA::Double theR2, GEOM::GEOM_List_ptr theFaces);
600 GEOM::GEOM_Object_ptr MakeFillet2D (GEOM::GEOM_Object_ptr theShape, CORBA::Double theR,
601 GEOM::GEOM_List_ptr theVertexes);
602 GEOM::GEOM_Object_ptr MakeChamferAll (GEOM::GEOM_Object_ptr theShape, CORBA::Double theD);
603 GEOM::GEOM_Object_ptr MakeChamferEdge (GEOM::GEOM_Object_ptr theShape,
604 CORBA::Double theD1, CORBA::Double theD2,
605 CORBA::Long theFace1, CORBA::Long theFace2);
606 GEOM::GEOM_Object_ptr MakeChamferEdgeAD (GEOM::GEOM_Object_ptr theShape,
607 CORBA::Double theD, CORBA::Double theAngle,
608 CORBA::Long theFace1, CORBA::Long theFace2);
609 GEOM::GEOM_Object_ptr MakeChamferFaces (GEOM::GEOM_Object_ptr theShape,
610 CORBA::Double theD1, CORBA::Double theD2,
611 GEOM::GEOM_List_ptr theFaces);
612 GEOM::GEOM_Object_ptr MakeChamferFacesAD (GEOM::GEOM_Object_ptr theShape,
613 CORBA::Double theD, CORBA::Double theAngle,
614 GEOM::GEOM_List_ptr theFaces);
615 GEOM::GEOM_Object_ptr MakeChamferEdges (GEOM::GEOM_Object_ptr theShape,
616 CORBA::Double theD1, CORBA::Double theD2,
617 GEOM::GEOM_List_ptr theEdges);
618 GEOM::GEOM_Object_ptr MakeChamferEdgesAD (GEOM::GEOM_Object_ptr theShape,
619 CORBA::Double theD, CORBA::Double theAngle,
620 GEOM::GEOM_List_ptr theEdges);
621 GEOM::GEOM_Object_ptr MakeArchimede (GEOM::GEOM_Object_ptr theShape,
622 CORBA::Double theWeight,
623 CORBA::Double theWaterDensity,
624 CORBA::Double theMeshingDeflection);
625 CORBA::Long GetSubShapeIndex (GEOM::GEOM_Object_ptr theShape,
626 GEOM::GEOM_Object_ptr theSubShape);
628 //-----------------------------------------------------------//
629 // GroupOperations //
630 //-----------------------------------------------------------//
631 GEOM::GEOM_Object_ptr CreateGroup (GEOM::GEOM_Object_ptr theMainShape,
632 CORBA::Long theShapeType);
633 void AddObject (GEOM::GEOM_Object_ptr theGroup,
634 CORBA::Long theSubShapeId);
635 void RemoveObject (GEOM::GEOM_Object_ptr theGroup,
636 CORBA::Long theSubShapeId);
637 CORBA::Long GetType (GEOM::GEOM_Object_ptr theGroup);
638 GEOM::GEOM_Object_ptr GetMainShape (GEOM::GEOM_Object_ptr theGroup);
639 GEOM::GEOM_List_ptr GetObjects (GEOM::GEOM_Object_ptr theGroup);
642 SALOME_NamingService * name_service;
643 GEOM::GEOM_Gen_var myGeomEngine;
644 CORBA::Long myStudyID;
645 CORBA::Long myLastStudyID; // mkr : PAL10770
646 PortableServer::POA_var myPOA;
648 GEOM::GEOM_IBasicOperations_var myBasicOp;
649 GEOM::GEOM_I3DPrimOperations_var my3DPrimOp;
650 GEOM::GEOM_IBooleanOperations_var myBoolOp;
651 GEOM::GEOM_IInsertOperations_var myInsOp;
652 GEOM::GEOM_ITransformOperations_var myTransfOp;
653 GEOM::GEOM_IShapesOperations_var myShapesOp;
654 GEOM::GEOM_IBlocksOperations_var myBlocksOp;
655 GEOM::GEOM_ICurvesOperations_var myCurvesOp;
656 GEOM::GEOM_ILocalOperations_var myLocalOp;
657 GEOM::GEOM_IGroupOperations_var myGroupOp;