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 GEOM::ListOfGO* PublishNamedShapesInStudy(SALOMEDS::Study_ptr theStudy,
129 //SALOMEDS::SObject_ptr theSObject,
130 CORBA::Object_ptr theObject);
132 CORBA::Boolean CanCopy(SALOMEDS::SObject_ptr theObject);
133 SALOMEDS::TMPFile* CopyFrom(SALOMEDS::SObject_ptr theObject, CORBA::Long& theObjectID);
134 CORBA::Boolean CanPaste(const char* theComponentName, CORBA::Long theObjectID);
135 SALOMEDS::SObject_ptr PasteInto(const SALOMEDS::TMPFile& theStream,
136 CORBA::Long theObjectID,
137 SALOMEDS::SObject_ptr theObject);
139 //-----------------------------------------------------------//
140 // Primitives Construction : BasicOperations //
141 //-----------------------------------------------------------//
142 GEOM::GEOM_Object_ptr MakePointXYZ (CORBA::Double theX,
145 GEOM::GEOM_Object_ptr MakePointWithReference (GEOM::GEOM_Object_ptr theReference,
149 GEOM::GEOM_Object_ptr MakePointOnCurve (GEOM::GEOM_Object_ptr theRefCurve,
150 CORBA::Double theParameter);
151 GEOM::GEOM_Object_ptr MakePointOnLinesIntersection (GEOM::GEOM_Object_ptr theRefLine1,
152 GEOM::GEOM_Object_ptr theRefLine2);
153 GEOM::GEOM_Object_ptr MakeTangentOnCurve (GEOM::GEOM_Object_ptr theRefCurve,
154 CORBA::Double theParameter);
155 GEOM::GEOM_Object_ptr MakeVectorDXDYDZ (CORBA::Double theDX,
157 CORBA::Double theDZ);
158 GEOM::GEOM_Object_ptr MakeVectorTwoPnt (GEOM::GEOM_Object_ptr thePnt1,
159 GEOM::GEOM_Object_ptr thePnt2);
160 GEOM::GEOM_Object_ptr MakeLineTwoPnt (GEOM::GEOM_Object_ptr thePnt1,
161 GEOM::GEOM_Object_ptr thePnt2);
162 GEOM::GEOM_Object_ptr MakeLineTwoFaces (GEOM::GEOM_Object_ptr theFace1,
163 GEOM::GEOM_Object_ptr theFace2);
164 GEOM::GEOM_Object_ptr MakePlaneThreePnt (GEOM::GEOM_Object_ptr thePnt1,
165 GEOM::GEOM_Object_ptr thePnt2,
166 GEOM::GEOM_Object_ptr thePnt3,
167 CORBA::Double theTrimSize);
168 GEOM::GEOM_Object_ptr MakePlanePntVec (GEOM::GEOM_Object_ptr thePnt,
169 GEOM::GEOM_Object_ptr theVec,
170 CORBA::Double theTrimSize);
171 GEOM::GEOM_Object_ptr MakePlaneFace (GEOM::GEOM_Object_ptr theFace,
172 CORBA::Double theTrimSize);
173 GEOM::GEOM_Object_ptr MakePlane2Vec (GEOM::GEOM_Object_ptr theVec1,
174 GEOM::GEOM_Object_ptr theVec2,
175 CORBA::Double theTrimSize);
176 GEOM::GEOM_Object_ptr MakePlaneLCS (GEOM::GEOM_Object_ptr theLCS,
177 CORBA::Double theTrimSize,
178 CORBA::Double theOrientation);
179 GEOM::GEOM_Object_ptr MakeMarker (CORBA::Double theOX , CORBA::Double theOY , CORBA::Double theOZ,
180 CORBA::Double theXDX, CORBA::Double theXDY, CORBA::Double theXDZ,
181 CORBA::Double theYDX, CORBA::Double theYDY, CORBA::Double theYDZ);
183 GEOM::GEOM_Object_ptr MakeTangentPlaneOnFace (GEOM::GEOM_Object_ptr theFace,
184 CORBA::Double theParameterU,
185 CORBA::Double theParameterV,
186 CORBA::Double theTrimSize);
188 //-----------------------------------------------------------//
189 // Primitives Construction : 3DPrimOperations //
190 //-----------------------------------------------------------//
191 GEOM::GEOM_Object_ptr MakeBox (CORBA::Double theX1,
196 CORBA::Double theZ2);
197 GEOM::GEOM_Object_ptr MakeBoxDXDYDZ (CORBA::Double theDX,
199 CORBA::Double theDZ);
200 GEOM::GEOM_Object_ptr MakeBoxTwoPnt (GEOM::GEOM_Object_ptr thePnt1,
201 GEOM::GEOM_Object_ptr thePnt2);
202 GEOM::GEOM_Object_ptr MakeFaceHW (CORBA::Double theH,
204 CORBA::Short theOrientation);
205 GEOM::GEOM_Object_ptr MakeFaceObjHW (GEOM::GEOM_Object_ptr theObj,
208 GEOM::GEOM_Object_ptr MakeDiskPntVecR (GEOM::GEOM_Object_ptr theCenter,
209 GEOM::GEOM_Object_ptr theVector,
211 GEOM::GEOM_Object_ptr MakeDiskThreePnt (GEOM::GEOM_Object_ptr thePnt1,
212 GEOM::GEOM_Object_ptr thePnt2,
213 GEOM::GEOM_Object_ptr thePnt3);
214 GEOM::GEOM_Object_ptr MakeDiskR (CORBA::Double theR,
215 CORBA::Short theOrientation);
216 GEOM::GEOM_Object_ptr MakeCylinderPntVecRH (GEOM::GEOM_Object_ptr thePnt,
217 GEOM::GEOM_Object_ptr theAxis,
218 CORBA::Double theRadius,
219 CORBA::Double theHeight);
220 GEOM::GEOM_Object_ptr MakeCylinderRH (CORBA::Double theR,
222 GEOM::GEOM_Object_ptr MakeSphere (CORBA::Double theX,
225 CORBA::Double theRadius);
226 GEOM::GEOM_Object_ptr MakeSphereR (CORBA::Double theR);
227 GEOM::GEOM_Object_ptr MakeSpherePntR (GEOM::GEOM_Object_ptr thePnt,
229 GEOM::GEOM_Object_ptr MakeTorusPntVecRR (GEOM::GEOM_Object_ptr thePnt,
230 GEOM::GEOM_Object_ptr theVec,
231 CORBA::Double theRMajor,
232 CORBA::Double theRMinor);
233 GEOM::GEOM_Object_ptr MakeTorusRR (CORBA::Double theRMajor,
234 CORBA::Double theRMinor);
235 GEOM::GEOM_Object_ptr MakeConePntVecR1R2H (GEOM::GEOM_Object_ptr thePnt,
236 GEOM::GEOM_Object_ptr theAxis,
239 CORBA::Double theHeight);
240 GEOM::GEOM_Object_ptr MakeConeR1R2H (CORBA::Double theR1,
242 CORBA::Double theHeight);
243 GEOM::GEOM_Object_ptr MakePrismVecH (GEOM::GEOM_Object_ptr theBase,
244 GEOM::GEOM_Object_ptr theVec,
246 GEOM::GEOM_Object_ptr MakePrismVecH2Ways (GEOM::GEOM_Object_ptr theBase,
247 GEOM::GEOM_Object_ptr theVec,
249 GEOM::GEOM_Object_ptr MakePrismTwoPnt (GEOM::GEOM_Object_ptr theBase,
250 GEOM::GEOM_Object_ptr thePoint1,
251 GEOM::GEOM_Object_ptr thePoint2);
252 GEOM::GEOM_Object_ptr MakePrismTwoPnt2Ways (GEOM::GEOM_Object_ptr theBase,
253 GEOM::GEOM_Object_ptr thePoint1,
254 GEOM::GEOM_Object_ptr thePoint2);
255 GEOM::GEOM_Object_ptr MakePrismDXDYDZ (GEOM::GEOM_Object_ptr theBase,
258 CORBA::Double theDZ);
259 GEOM::GEOM_Object_ptr MakePrismDXDYDZ2Ways (GEOM::GEOM_Object_ptr theBase,
262 CORBA::Double theDZ);
263 GEOM::GEOM_Object_ptr MakePipe (GEOM::GEOM_Object_ptr theBase,
264 GEOM::GEOM_Object_ptr thePath);
265 GEOM::GEOM_Object_ptr MakeRevolutionAxisAngle (GEOM::GEOM_Object_ptr theBase,
266 GEOM::GEOM_Object_ptr theAxis,
267 CORBA::Double theAngle);
268 GEOM::GEOM_Object_ptr MakeRevolutionAxisAngle2Ways (GEOM::GEOM_Object_ptr theBase,
269 GEOM::GEOM_Object_ptr theAxis,
270 CORBA::Double theAngle);
271 GEOM::GEOM_Object_ptr MakeFilling (GEOM::GEOM_Object_ptr theShape,
272 CORBA::Long theMinDeg, CORBA::Long theMaxDeg,
273 CORBA::Double theTol2D, CORBA::Double theTol3D,
274 CORBA::Long theNbIter, CORBA::Boolean theApprox);
276 GEOM::GEOM_Object_ptr MakeThruSections(const GEOM::ListOfGO& theSeqSections,
277 CORBA::Boolean theModeSolid,
278 CORBA::Double thePreci,
279 CORBA::Boolean theRuled);
281 GEOM::GEOM_Object_ptr MakePipeWithDifferentSections(const GEOM::ListOfGO& theBases,
282 const GEOM::ListOfGO& theLocations,
283 GEOM::GEOM_Object_ptr thePath,
284 CORBA::Boolean theWithContact,
285 CORBA::Boolean theWithCorrections);
287 GEOM::GEOM_Object_ptr MakePipeWithShellSections(const GEOM::ListOfGO& theBases,
288 const GEOM::ListOfGO& theSubBases,
289 const GEOM::ListOfGO& theLocations,
290 GEOM::GEOM_Object_ptr thePath,
291 CORBA::Boolean theWithContact,
292 CORBA::Boolean theWithCorrections);
294 GEOM::GEOM_Object_ptr MakePipeShellsWithoutPath(const GEOM::ListOfGO& theBases,
295 const GEOM::ListOfGO& theLocations);
297 GEOM::GEOM_Object_ptr MakePipeBiNormalAlongVector (GEOM::GEOM_Object_ptr theBase,
298 GEOM::GEOM_Object_ptr thePath,
299 GEOM::GEOM_Object_ptr theVec);
301 //-----------------------------------------------------------//
302 // BooleanOperations //
303 //-----------------------------------------------------------//
304 GEOM::GEOM_Object_ptr MakeBoolean (GEOM::GEOM_Object_ptr theShape1,
305 GEOM::GEOM_Object_ptr theShape2,
306 CORBA::Long theOperation);
307 GEOM::GEOM_Object_ptr MakeFuse (GEOM::GEOM_Object_ptr theShape1,
308 GEOM::GEOM_Object_ptr theShape2);
309 GEOM::GEOM_Object_ptr MakePartition (GEOM::GEOM_List_ptr theShapes,
310 GEOM::GEOM_List_ptr theTools,
311 GEOM::GEOM_List_ptr theKeepInside,
312 GEOM::GEOM_List_ptr theRemoveInside,
313 CORBA::Short theLimit,
314 CORBA::Boolean theRemoveWebs,
315 GEOM::GEOM_List_ptr theMaterials,
316 CORBA::Short theKeepNonlimitShapes);
317 GEOM::GEOM_Object_ptr MakeHalfPartition (GEOM::GEOM_Object_ptr theShape,
318 GEOM::GEOM_Object_ptr thePlane);
320 //-----------------------------------------------------------//
321 // InsertOperations //
322 //-----------------------------------------------------------//
323 GEOM::GEOM_Object_ptr MakeCopy (GEOM::GEOM_Object_ptr theOriginal);
324 void Export (GEOM::GEOM_Object_ptr theObject,
325 const char* theFileName,
326 const char* theFormatName);
327 GEOM::GEOM_Object_ptr Import (const char* theFileName,
328 const char* theFormatName);
329 void ImportTranslators (GEOM::string_array_out theFormats,
330 GEOM::string_array_out thePatterns);
331 void ExportTranslators (GEOM::string_array_out theFormats,
332 GEOM::string_array_out thePatterns);
334 //-----------------------------------------------------------//
335 // TransformOperations //
336 //-----------------------------------------------------------//
337 GEOM::GEOM_Object_ptr TranslateTwoPoints (GEOM::GEOM_Object_ptr theObject,
338 GEOM::GEOM_Object_ptr thePoint1,
339 GEOM::GEOM_Object_ptr thePoint2);
340 GEOM::GEOM_Object_ptr TranslateTwoPointsCopy (GEOM::GEOM_Object_ptr theObject,
341 GEOM::GEOM_Object_ptr thePoint1,
342 GEOM::GEOM_Object_ptr thePoint2);
343 GEOM::GEOM_Object_ptr TranslateDXDYDZ (GEOM::GEOM_Object_ptr theObject,
346 CORBA::Double theDZ);
347 GEOM::GEOM_Object_ptr TranslateDXDYDZCopy (GEOM::GEOM_Object_ptr theObject,
350 CORBA::Double theDZ);
351 GEOM::GEOM_Object_ptr TranslateVector (GEOM::GEOM_Object_ptr theObject,
352 GEOM::GEOM_Object_ptr theVector);
353 GEOM::GEOM_Object_ptr TranslateVectorCopy (GEOM::GEOM_Object_ptr theObject,
354 GEOM::GEOM_Object_ptr theVector);
355 GEOM::GEOM_Object_ptr TranslateVectorDistance (GEOM::GEOM_Object_ptr theObject,
356 GEOM::GEOM_Object_ptr theVector,
357 CORBA::Double theDistance,
358 CORBA::Boolean theCopy);
359 GEOM::GEOM_Object_ptr MultiTranslate1D (GEOM::GEOM_Object_ptr theObject,
360 GEOM::GEOM_Object_ptr theVector,
361 CORBA::Double theStep,
362 CORBA::Long theNbTimes);
363 GEOM::GEOM_Object_ptr MultiTranslate2D (GEOM::GEOM_Object_ptr theObject,
364 GEOM::GEOM_Object_ptr theVector1,
365 CORBA::Double theStep1,
366 CORBA::Long theNbTimes1,
367 GEOM::GEOM_Object_ptr theVector2,
368 CORBA::Double theStep2,
369 CORBA::Long theNbTimes2);
370 GEOM::GEOM_Object_ptr Rotate (GEOM::GEOM_Object_ptr theObject,
371 GEOM::GEOM_Object_ptr theAxis,
372 CORBA::Double theAngle);
373 GEOM::GEOM_Object_ptr RotateCopy (GEOM::GEOM_Object_ptr theObject,
374 GEOM::GEOM_Object_ptr theAxis,
375 CORBA::Double theAngle);
377 GEOM::GEOM_Object_ptr RotateThreePoints (GEOM::GEOM_Object_ptr theObject,
378 GEOM::GEOM_Object_ptr theCentPoint,
379 GEOM::GEOM_Object_ptr thePoint1,
380 GEOM::GEOM_Object_ptr thePoint2);
382 GEOM::GEOM_Object_ptr RotateThreePointsCopy (GEOM::GEOM_Object_ptr theObject,
383 GEOM::GEOM_Object_ptr theCentPoint,
384 GEOM::GEOM_Object_ptr thePoint1,
385 GEOM::GEOM_Object_ptr thePoint2);
387 GEOM::GEOM_Object_ptr MultiRotate1D (GEOM::GEOM_Object_ptr theObject,
388 GEOM::GEOM_Object_ptr theAxis,
389 CORBA::Long theNbTimes);
390 GEOM::GEOM_Object_ptr MultiRotate2D (GEOM::GEOM_Object_ptr theObject,
391 GEOM::GEOM_Object_ptr theAxis,
392 CORBA::Double theAngle,
393 CORBA::Long theNbTimes1,
394 CORBA::Double theStep,
395 CORBA::Long theNbTimes2);
396 GEOM::GEOM_Object_ptr MirrorPlane (GEOM::GEOM_Object_ptr theObject,
397 GEOM::GEOM_Object_ptr thePlane);
398 GEOM::GEOM_Object_ptr MirrorPlaneCopy (GEOM::GEOM_Object_ptr theObject,
399 GEOM::GEOM_Object_ptr thePlane);
400 GEOM::GEOM_Object_ptr MirrorAxis (GEOM::GEOM_Object_ptr theObject,
401 GEOM::GEOM_Object_ptr theAxis);
402 GEOM::GEOM_Object_ptr MirrorAxisCopy (GEOM::GEOM_Object_ptr theObject,
403 GEOM::GEOM_Object_ptr theAxis);
404 GEOM::GEOM_Object_ptr MirrorPoint (GEOM::GEOM_Object_ptr theObject,
405 GEOM::GEOM_Object_ptr thePoint);
406 GEOM::GEOM_Object_ptr MirrorPointCopy (GEOM::GEOM_Object_ptr theObject,
407 GEOM::GEOM_Object_ptr thePoint);
408 GEOM::GEOM_Object_ptr OffsetShape (GEOM::GEOM_Object_ptr theObject,
409 CORBA::Double theOffset);
410 GEOM::GEOM_Object_ptr OffsetShapeCopy (GEOM::GEOM_Object_ptr theObject,
411 CORBA::Double theOffset);
412 GEOM::GEOM_Object_ptr ScaleShape (GEOM::GEOM_Object_ptr theObject,
413 GEOM::GEOM_Object_ptr thePoint,
414 CORBA::Double theFactor);
415 GEOM::GEOM_Object_ptr ScaleShapeCopy (GEOM::GEOM_Object_ptr theObject,
416 GEOM::GEOM_Object_ptr thePoint,
417 CORBA::Double theFactor);
418 GEOM::GEOM_Object_ptr ScaleShapeAlongAxes (GEOM::GEOM_Object_ptr theObject,
419 GEOM::GEOM_Object_ptr thePoint,
420 CORBA::Double theFactorX,
421 CORBA::Double theFactorY,
422 CORBA::Double theFactorZ);
423 GEOM::GEOM_Object_ptr ScaleShapeAlongAxesCopy (GEOM::GEOM_Object_ptr theObject,
424 GEOM::GEOM_Object_ptr thePoint,
425 CORBA::Double theFactorX,
426 CORBA::Double theFactorY,
427 CORBA::Double theFactorZ);
428 GEOM::GEOM_Object_ptr PositionShape (GEOM::GEOM_Object_ptr theObject,
429 GEOM::GEOM_Object_ptr theStartLCS,
430 GEOM::GEOM_Object_ptr theEndLCS);
431 GEOM::GEOM_Object_ptr PositionShapeCopy (GEOM::GEOM_Object_ptr theObject,
432 GEOM::GEOM_Object_ptr theStartLCS,
433 GEOM::GEOM_Object_ptr theEndLCS);
434 GEOM::GEOM_Object_ptr PositionAlongPath (GEOM::GEOM_Object_ptr theObject,
435 GEOM::GEOM_Object_ptr thePath,
436 CORBA::Double theDistance,
437 CORBA::Boolean theCopy,
438 CORBA::Boolean theReverse);
440 //-----------------------------------------------------------//
441 // ShapesOperations //
442 //-----------------------------------------------------------//
443 GEOM::GEOM_Object_ptr MakeEdge (GEOM::GEOM_Object_ptr thePnt1,
444 GEOM::GEOM_Object_ptr thePnt2);
445 GEOM::GEOM_Object_ptr MakeWire (GEOM::GEOM_List_ptr theEdgesAndWires,
446 CORBA::Double theTolerance);
447 GEOM::GEOM_Object_ptr MakeFace (GEOM::GEOM_Object_ptr theWire,
448 CORBA::Boolean isPlanarWanted);
449 GEOM::GEOM_Object_ptr MakeFaceWires (GEOM::GEOM_List_ptr theWires,
450 CORBA::Boolean isPlanarWanted);
451 GEOM::GEOM_Object_ptr MakeShell (GEOM::GEOM_List_ptr theFacesAndShells);
452 GEOM::GEOM_Object_ptr MakeSolidShell (GEOM::GEOM_Object_ptr theShell);
453 GEOM::GEOM_Object_ptr MakeSolidShells (GEOM::GEOM_List_ptr theShells);
454 GEOM::GEOM_Object_ptr MakeCompound (GEOM::GEOM_List_ptr theShapes);
455 GEOM::GEOM_Object_ptr MakeGlueFaces (GEOM::GEOM_Object_ptr theShape,
456 CORBA::Double theTolerance,
457 CORBA::Boolean doKeepNonSolids);
458 GEOM::GEOM_List_ptr GetGlueFaces (GEOM::GEOM_Object_ptr theShape,
459 CORBA::Double theTolerance);
460 GEOM::GEOM_Object_ptr MakeGlueFacesByList (GEOM::GEOM_Object_ptr theShape,
461 CORBA::Double theTolerance,
462 const GEOM::ListOfGO& theFaces,
463 CORBA::Boolean doKeepNonSolids);
464 GEOM::GEOM_List_ptr MakeExplode (GEOM::GEOM_Object_ptr theShape,
465 CORBA::Long theShapeType,
466 CORBA::Boolean isSorted);
467 CORBA::Long NumberOfFaces (GEOM::GEOM_Object_ptr theShape);
468 CORBA::Long NumberOfEdges (GEOM::GEOM_Object_ptr theShape);
469 GEOM::GEOM_Object_ptr ChangeOrientation (GEOM::GEOM_Object_ptr theShape);
471 GEOM::GEOM_List_ptr GetShapesOnShape (GEOM::GEOM_Object_ptr theCheckShape,
472 GEOM::GEOM_Object_ptr theShape,
473 CORBA::Short theShapeType,
474 GEOM::shape_state theState);
475 GEOM::GEOM_Object_ptr GetShapesOnShapeAsCompound
476 (GEOM::GEOM_Object_ptr theCheckShape,
477 GEOM::GEOM_Object_ptr theShape,
478 CORBA::Short theShapeType,
479 GEOM::shape_state theState);
482 //-----------------------------------------------------------//
483 // BlocksOperations //
484 //-----------------------------------------------------------//
485 GEOM::GEOM_Object_ptr MakeQuad4Vertices (GEOM::GEOM_Object_ptr thePnt1,
486 GEOM::GEOM_Object_ptr thePnt2,
487 GEOM::GEOM_Object_ptr thePnt3,
488 GEOM::GEOM_Object_ptr thePnt4);
489 GEOM::GEOM_Object_ptr MakeQuad (GEOM::GEOM_Object_ptr theEdge1,
490 GEOM::GEOM_Object_ptr theEdge2,
491 GEOM::GEOM_Object_ptr theEdge3,
492 GEOM::GEOM_Object_ptr theEdge4);
493 GEOM::GEOM_Object_ptr MakeQuad2Edges (GEOM::GEOM_Object_ptr theEdge1,
494 GEOM::GEOM_Object_ptr theEdge2);
495 GEOM::GEOM_Object_ptr MakeHexa (GEOM::GEOM_Object_ptr theFace1,
496 GEOM::GEOM_Object_ptr theFace2,
497 GEOM::GEOM_Object_ptr theFace3,
498 GEOM::GEOM_Object_ptr theFace4,
499 GEOM::GEOM_Object_ptr theFace5,
500 GEOM::GEOM_Object_ptr theFace6);
501 GEOM::GEOM_Object_ptr MakeHexa2Faces (GEOM::GEOM_Object_ptr theFace1,
502 GEOM::GEOM_Object_ptr theFace2);
503 GEOM::GEOM_Object_ptr GetPoint (GEOM::GEOM_Object_ptr theShape,
507 CORBA::Double theEpsilon);
508 GEOM::GEOM_Object_ptr GetEdge (GEOM::GEOM_Object_ptr theShape,
509 GEOM::GEOM_Object_ptr thePoint1,
510 GEOM::GEOM_Object_ptr thePoint2);
511 GEOM::GEOM_Object_ptr GetEdgeNearPoint (GEOM::GEOM_Object_ptr theShape,
512 GEOM::GEOM_Object_ptr thePoint);
513 GEOM::GEOM_Object_ptr GetFaceByPoints (GEOM::GEOM_Object_ptr theShape,
514 GEOM::GEOM_Object_ptr thePoint1,
515 GEOM::GEOM_Object_ptr thePoint2,
516 GEOM::GEOM_Object_ptr thePoint3,
517 GEOM::GEOM_Object_ptr thePoint4);
518 GEOM::GEOM_Object_ptr GetFaceByEdges (GEOM::GEOM_Object_ptr theShape,
519 GEOM::GEOM_Object_ptr theEdge1,
520 GEOM::GEOM_Object_ptr theEdge2);
521 GEOM::GEOM_Object_ptr GetOppositeFace (GEOM::GEOM_Object_ptr theBlock,
522 GEOM::GEOM_Object_ptr theFace);
523 GEOM::GEOM_Object_ptr GetFaceNearPoint (GEOM::GEOM_Object_ptr theShape,
524 GEOM::GEOM_Object_ptr thePoint);
525 GEOM::GEOM_Object_ptr GetFaceByNormale (GEOM::GEOM_Object_ptr theBlock,
526 GEOM::GEOM_Object_ptr theVector);
527 CORBA::Boolean IsCompoundOfBlocks (GEOM::GEOM_Object_ptr theCompound,
528 CORBA::Long theMinNbFaces,
529 CORBA::Long theMaxNbFaces,
530 CORBA::Long& theNbBlocks);
531 CORBA::Boolean CheckCompoundOfBlocks (GEOM::GEOM_Object_ptr theCompound,
532 GEOM::GEOM_IBlocksOperations::BCErrors_out theErrors);
533 char* PrintBCErrors (GEOM::GEOM_Object_ptr theCompound,
534 const GEOM::GEOM_IBlocksOperations::BCErrors& theErrors);
535 GEOM::GEOM_List_ptr ExplodeCompoundOfBlocks (GEOM::GEOM_Object_ptr theCompound,
536 CORBA::Long theMinNbFaces,
537 CORBA::Long theMaxNbFaces);
538 GEOM::GEOM_Object_ptr GetBlockNearPoint (GEOM::GEOM_Object_ptr theCompound,
539 GEOM::GEOM_Object_ptr thePoint);
540 GEOM::GEOM_Object_ptr GetBlockByParts (GEOM::GEOM_Object_ptr theCompound,
541 GEOM::GEOM_List_ptr theParts);
542 GEOM::GEOM_List_ptr GetBlocksByParts (GEOM::GEOM_Object_ptr theCompound,
543 GEOM::GEOM_List_ptr theParts);
544 GEOM::GEOM_Object_ptr MakeMultiTransformation1D (GEOM::GEOM_Object_ptr theBlock,
545 CORBA::Long theDirFace1,
546 CORBA::Long theDirFace2,
547 CORBA::Long theNbTimes);
548 GEOM::GEOM_Object_ptr MakeMultiTransformation2D (GEOM::GEOM_Object_ptr theBlock,
549 CORBA::Long theDirFace1U,
550 CORBA::Long theDirFace2U,
551 CORBA::Long theNbTimesU,
552 CORBA::Long theDirFace1V,
553 CORBA::Long theDirFace2V,
554 CORBA::Long theNbTimesV);
556 //-----------------------------------------------------------//
557 // CurvesOperations //
558 //-----------------------------------------------------------//
559 GEOM::GEOM_Object_ptr MakeCirclePntVecR (GEOM::GEOM_Object_ptr theCenter,
560 GEOM::GEOM_Object_ptr theVector,
562 GEOM::GEOM_Object_ptr MakeCircleThreePnt (GEOM::GEOM_Object_ptr thePnt1,
563 GEOM::GEOM_Object_ptr thePnt2,
564 GEOM::GEOM_Object_ptr thePnt3);
565 GEOM::GEOM_Object_ptr MakeCircleCenter2Pnt (GEOM::GEOM_Object_ptr thePnt1,
566 GEOM::GEOM_Object_ptr thePnt2,
567 GEOM::GEOM_Object_ptr thePnt3);
568 GEOM::GEOM_Object_ptr MakeEllipse (GEOM::GEOM_Object_ptr theCenter,
569 GEOM::GEOM_Object_ptr theVector,
570 CORBA::Double theRMajor, CORBA::Double theRMinor);
571 GEOM::GEOM_Object_ptr MakeEllipseVec (GEOM::GEOM_Object_ptr theCenter,
572 GEOM::GEOM_Object_ptr theVector,
573 CORBA::Double theRMajor, CORBA::Double theRMinor,
574 GEOM::GEOM_Object_ptr theVectorMajor);
575 GEOM::GEOM_Object_ptr MakeArc (GEOM::GEOM_Object_ptr thePnt1,
576 GEOM::GEOM_Object_ptr thePnt2,
577 GEOM::GEOM_Object_ptr thePnt3);
578 GEOM::GEOM_Object_ptr MakeArcCenter (GEOM::GEOM_Object_ptr theCenter,
579 GEOM::GEOM_Object_ptr thePnt1,
580 GEOM::GEOM_Object_ptr thePnt2,
581 CORBA::Boolean theSense);
582 GEOM::GEOM_Object_ptr MakeArcOfEllipse (GEOM::GEOM_Object_ptr thePnt1,
583 GEOM::GEOM_Object_ptr thePnt2,
584 GEOM::GEOM_Object_ptr thePnt3);
585 GEOM::GEOM_Object_ptr MakePolyline (GEOM::GEOM_List_ptr thePoints);
586 GEOM::GEOM_Object_ptr MakeSplineBezier (GEOM::GEOM_List_ptr thePoints);
587 GEOM::GEOM_Object_ptr MakeSplineInterpolation (GEOM::GEOM_List_ptr thePoints);
588 GEOM::GEOM_Object_ptr MakeSketcher (const char* theCommand,
589 GEOM::GEOM_List_ptr theWorkingPlane);
590 GEOM::GEOM_Object_ptr Make3DSketcher (GEOM::GEOM_List_ptr theCoordinates);
592 //-----------------------------------------------------------//
593 // LocalOperations //
594 //-----------------------------------------------------------//
595 GEOM::GEOM_Object_ptr MakeFilletAll (GEOM::GEOM_Object_ptr theShape,
597 GEOM::GEOM_Object_ptr MakeFilletEdges (GEOM::GEOM_Object_ptr theShape, CORBA::Double theR,
598 GEOM::GEOM_List_ptr theEdges);
599 GEOM::GEOM_Object_ptr MakeFilletEdgesR1R2 (GEOM::GEOM_Object_ptr theShape, CORBA::Double theR1,
600 CORBA::Double theR2, GEOM::GEOM_List_ptr theEdges);
601 GEOM::GEOM_Object_ptr MakeFilletFaces (GEOM::GEOM_Object_ptr theShape, CORBA::Double theR,
602 GEOM::GEOM_List_ptr theFaces);
603 GEOM::GEOM_Object_ptr MakeFilletFacesR1R2 (GEOM::GEOM_Object_ptr theShape, CORBA::Double theR1,
604 CORBA::Double theR2, GEOM::GEOM_List_ptr theFaces);
605 GEOM::GEOM_Object_ptr MakeFillet2D (GEOM::GEOM_Object_ptr theShape, CORBA::Double theR,
606 GEOM::GEOM_List_ptr theVertexes);
607 GEOM::GEOM_Object_ptr MakeChamferAll (GEOM::GEOM_Object_ptr theShape, CORBA::Double theD);
608 GEOM::GEOM_Object_ptr MakeChamferEdge (GEOM::GEOM_Object_ptr theShape,
609 CORBA::Double theD1, CORBA::Double theD2,
610 CORBA::Long theFace1, CORBA::Long theFace2);
611 GEOM::GEOM_Object_ptr MakeChamferEdgeAD (GEOM::GEOM_Object_ptr theShape,
612 CORBA::Double theD, CORBA::Double theAngle,
613 CORBA::Long theFace1, CORBA::Long theFace2);
614 GEOM::GEOM_Object_ptr MakeChamferFaces (GEOM::GEOM_Object_ptr theShape,
615 CORBA::Double theD1, CORBA::Double theD2,
616 GEOM::GEOM_List_ptr theFaces);
617 GEOM::GEOM_Object_ptr MakeChamferFacesAD (GEOM::GEOM_Object_ptr theShape,
618 CORBA::Double theD, CORBA::Double theAngle,
619 GEOM::GEOM_List_ptr theFaces);
620 GEOM::GEOM_Object_ptr MakeChamferEdges (GEOM::GEOM_Object_ptr theShape,
621 CORBA::Double theD1, CORBA::Double theD2,
622 GEOM::GEOM_List_ptr theEdges);
623 GEOM::GEOM_Object_ptr MakeChamferEdgesAD (GEOM::GEOM_Object_ptr theShape,
624 CORBA::Double theD, CORBA::Double theAngle,
625 GEOM::GEOM_List_ptr theEdges);
626 GEOM::GEOM_Object_ptr MakeArchimede (GEOM::GEOM_Object_ptr theShape,
627 CORBA::Double theWeight,
628 CORBA::Double theWaterDensity,
629 CORBA::Double theMeshingDeflection);
630 CORBA::Long GetSubShapeIndex (GEOM::GEOM_Object_ptr theShape,
631 GEOM::GEOM_Object_ptr theSubShape);
633 //-----------------------------------------------------------//
634 // GroupOperations //
635 //-----------------------------------------------------------//
636 GEOM::GEOM_Object_ptr CreateGroup (GEOM::GEOM_Object_ptr theMainShape,
637 CORBA::Long theShapeType);
638 void AddObject (GEOM::GEOM_Object_ptr theGroup,
639 CORBA::Long theSubShapeId);
640 void RemoveObject (GEOM::GEOM_Object_ptr theGroup,
641 CORBA::Long theSubShapeId);
642 CORBA::Long GetType (GEOM::GEOM_Object_ptr theGroup);
643 GEOM::GEOM_Object_ptr GetMainShape (GEOM::GEOM_Object_ptr theGroup);
644 GEOM::GEOM_List_ptr GetObjects (GEOM::GEOM_Object_ptr theGroup);
647 SALOME_NamingService * name_service;
648 GEOM::GEOM_Gen_var myGeomEngine;
649 CORBA::Long myStudyID;
650 CORBA::Long myLastStudyID; // mkr : PAL10770
651 PortableServer::POA_var myPOA;
653 GEOM::GEOM_IBasicOperations_var myBasicOp;
654 GEOM::GEOM_I3DPrimOperations_var my3DPrimOp;
655 GEOM::GEOM_IBooleanOperations_var myBoolOp;
656 GEOM::GEOM_IInsertOperations_var myInsOp;
657 GEOM::GEOM_ITransformOperations_var myTransfOp;
658 GEOM::GEOM_IShapesOperations_var myShapesOp;
659 GEOM::GEOM_IBlocksOperations_var myBlocksOp;
660 GEOM::GEOM_ICurvesOperations_var myCurvesOp;
661 GEOM::GEOM_ILocalOperations_var myLocalOp;
662 GEOM::GEOM_IGroupOperations_var myGroupOp;