1 // Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #ifndef __GEOM_SUPERV_I_H__
21 #define __GEOM_SUPERV_I_H__
24 #include <SALOMEconfig.h>
25 #include CORBA_SERVER_HEADER(GEOM_Superv)
27 #include "GEOM_Gen_i.hh"
28 #include "GEOM_List_i.hh"
30 class GEOM_Superv_i : public virtual POA_GEOM::GEOM_Superv,
31 public Engines_Component_i
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);
41 // generic method to be put in a super class
42 void register_name(char * name);
56 PortableServer::ServantBase_var GetServant(CORBA::Object_ptr theObject,
57 PortableServer::POA_ptr thePOA);
59 //-----------------------------------------------------------------------//
60 // Set current stydy ID //
61 //-----------------------------------------------------------------------//
62 void SetStudyID( CORBA::Long theId );
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);
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);
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);
85 //-----------------------------------------------------------------------//
86 // Inherited methods from SALOMEDS::Driver //
87 //-----------------------------------------------------------------------//
89 SALOMEDS::TMPFile* Save(SALOMEDS::SComponent_ptr theComponent,
91 CORBA::Boolean isMultiFile);
93 SALOMEDS::TMPFile* SaveASCII(SALOMEDS::SComponent_ptr theComponent,
95 CORBA::Boolean isMultiFile);
97 CORBA::Boolean Load(SALOMEDS::SComponent_ptr theComponent,
98 const SALOMEDS::TMPFile& theStream,
100 CORBA::Boolean isMultiFile);
102 CORBA::Boolean LoadASCII(SALOMEDS::SComponent_ptr theComponent,
103 const SALOMEDS::TMPFile& theStream,
105 CORBA::Boolean isMultiFile);
107 void Close(SALOMEDS::SComponent_ptr theComponent);
108 char* ComponentDataType();
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);
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) ;
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);
133 //-----------------------------------------------------------//
134 // Primitives Construction : BasicOperations //
135 //-----------------------------------------------------------//
136 GEOM::GEOM_Object_ptr MakePointXYZ (CORBA::Double theX,
139 GEOM::GEOM_Object_ptr MakePointWithReference (GEOM::GEOM_Object_ptr theReference,
143 GEOM::GEOM_Object_ptr MakePointOnCurve (GEOM::GEOM_Object_ptr theRefCurve,
144 CORBA::Double theParameter);
145 GEOM::GEOM_Object_ptr MakePointOnLinesIntersection (GEOM::GEOM_Object_ptr theRefLine1,
146 GEOM::GEOM_Object_ptr theRefLine2);
147 GEOM::GEOM_Object_ptr MakeTangentOnCurve (GEOM::GEOM_Object_ptr theRefCurve,
148 CORBA::Double theParameter);
149 GEOM::GEOM_Object_ptr MakeVectorDXDYDZ (CORBA::Double theDX,
151 CORBA::Double theDZ);
152 GEOM::GEOM_Object_ptr MakeVectorTwoPnt (GEOM::GEOM_Object_ptr thePnt1,
153 GEOM::GEOM_Object_ptr thePnt2);
154 GEOM::GEOM_Object_ptr MakeLineTwoPnt (GEOM::GEOM_Object_ptr thePnt1,
155 GEOM::GEOM_Object_ptr thePnt2);
156 GEOM::GEOM_Object_ptr MakeLineTwoFaces (GEOM::GEOM_Object_ptr theFace1,
157 GEOM::GEOM_Object_ptr theFace2);
158 GEOM::GEOM_Object_ptr MakePlaneThreePnt (GEOM::GEOM_Object_ptr thePnt1,
159 GEOM::GEOM_Object_ptr thePnt2,
160 GEOM::GEOM_Object_ptr thePnt3,
161 CORBA::Double theTrimSize);
162 GEOM::GEOM_Object_ptr MakePlanePntVec (GEOM::GEOM_Object_ptr thePnt,
163 GEOM::GEOM_Object_ptr theVec,
164 CORBA::Double theTrimSize);
165 GEOM::GEOM_Object_ptr MakePlaneFace (GEOM::GEOM_Object_ptr theFace,
166 CORBA::Double theTrimSize);
167 GEOM::GEOM_Object_ptr MakeMarker (CORBA::Double theOX , CORBA::Double theOY , CORBA::Double theOZ,
168 CORBA::Double theXDX, CORBA::Double theXDY, CORBA::Double theXDZ,
169 CORBA::Double theYDX, CORBA::Double theYDY, CORBA::Double theYDZ);
171 GEOM::GEOM_Object_ptr MakeTangentPlaneOnFace (GEOM::GEOM_Object_ptr theFace,
172 CORBA::Double theParameterU,
173 CORBA::Double theParameterV,
174 CORBA::Double theTrimSize);
176 //-----------------------------------------------------------//
177 // Primitives Construction : 3DPrimOperations //
178 //-----------------------------------------------------------//
179 GEOM::GEOM_Object_ptr MakeBox (CORBA::Double theX1,
184 CORBA::Double theZ2);
185 GEOM::GEOM_Object_ptr MakeBoxDXDYDZ (CORBA::Double theDX,
187 CORBA::Double theDZ);
188 GEOM::GEOM_Object_ptr MakeBoxTwoPnt (GEOM::GEOM_Object_ptr thePnt1,
189 GEOM::GEOM_Object_ptr thePnt2);
190 GEOM::GEOM_Object_ptr MakeFaceHW (CORBA::Double theH,
192 GEOM::GEOM_Object_ptr MakeFacePlaneHW (GEOM::GEOM_Object_ptr theFace,
195 GEOM::GEOM_Object_ptr MakeDiskPntVecR (GEOM::GEOM_Object_ptr theCenter,
196 GEOM::GEOM_Object_ptr theVector,
198 GEOM::GEOM_Object_ptr MakeDiskThreePnt (GEOM::GEOM_Object_ptr thePnt1,
199 GEOM::GEOM_Object_ptr thePnt2,
200 GEOM::GEOM_Object_ptr thePnt3);
201 GEOM::GEOM_Object_ptr MakeCylinderPntVecRH (GEOM::GEOM_Object_ptr thePnt,
202 GEOM::GEOM_Object_ptr theAxis,
203 CORBA::Double theRadius,
204 CORBA::Double theHeight);
205 GEOM::GEOM_Object_ptr MakeCylinderRH (CORBA::Double theR,
207 GEOM::GEOM_Object_ptr MakeSphere (CORBA::Double theX,
210 CORBA::Double theRadius);
211 GEOM::GEOM_Object_ptr MakeSphereR (CORBA::Double theR);
212 GEOM::GEOM_Object_ptr MakeSpherePntR (GEOM::GEOM_Object_ptr thePnt,
214 GEOM::GEOM_Object_ptr MakeTorusPntVecRR (GEOM::GEOM_Object_ptr thePnt,
215 GEOM::GEOM_Object_ptr theVec,
216 CORBA::Double theRMajor,
217 CORBA::Double theRMinor);
218 GEOM::GEOM_Object_ptr MakeTorusRR (CORBA::Double theRMajor,
219 CORBA::Double theRMinor);
220 GEOM::GEOM_Object_ptr MakeConePntVecR1R2H (GEOM::GEOM_Object_ptr thePnt,
221 GEOM::GEOM_Object_ptr theAxis,
224 CORBA::Double theHeight);
225 GEOM::GEOM_Object_ptr MakeConeR1R2H (CORBA::Double theR1,
227 CORBA::Double theHeight);
228 GEOM::GEOM_Object_ptr MakePrismVecH (GEOM::GEOM_Object_ptr theBase,
229 GEOM::GEOM_Object_ptr theVec,
231 GEOM::GEOM_Object_ptr MakePrismVecH2Ways (GEOM::GEOM_Object_ptr theBase,
232 GEOM::GEOM_Object_ptr theVec,
234 GEOM::GEOM_Object_ptr MakePrismTwoPnt (GEOM::GEOM_Object_ptr theBase,
235 GEOM::GEOM_Object_ptr thePoint1,
236 GEOM::GEOM_Object_ptr thePoint2);
237 GEOM::GEOM_Object_ptr MakePrismTwoPnt2Ways (GEOM::GEOM_Object_ptr theBase,
238 GEOM::GEOM_Object_ptr thePoint1,
239 GEOM::GEOM_Object_ptr thePoint2);
240 GEOM::GEOM_Object_ptr MakePrismDXDYDZ (GEOM::GEOM_Object_ptr theBase,
243 CORBA::Double theDZ);
244 GEOM::GEOM_Object_ptr MakePrismDXDYDZ2Ways (GEOM::GEOM_Object_ptr theBase,
247 CORBA::Double theDZ);
248 GEOM::GEOM_Object_ptr MakePipe (GEOM::GEOM_Object_ptr theBase,
249 GEOM::GEOM_Object_ptr thePath);
250 GEOM::GEOM_Object_ptr MakeRevolutionAxisAngle (GEOM::GEOM_Object_ptr theBase,
251 GEOM::GEOM_Object_ptr theAxis,
252 CORBA::Double theAngle);
253 GEOM::GEOM_Object_ptr MakeRevolutionAxisAngle2Ways (GEOM::GEOM_Object_ptr theBase,
254 GEOM::GEOM_Object_ptr theAxis,
255 CORBA::Double theAngle);
256 GEOM::GEOM_Object_ptr MakeFilling (GEOM::GEOM_Object_ptr theShape,
257 CORBA::Long theMinDeg, CORBA::Long theMaxDeg,
258 CORBA::Double theTol2D, CORBA::Double theTol3D,
259 CORBA::Long theNbIter, CORBA::Boolean theApprox);
261 GEOM::GEOM_Object_ptr MakeThruSections(const GEOM::ListOfGO& theSeqSections,
262 CORBA::Boolean theModeSolid,
263 CORBA::Double thePreci,
264 CORBA::Boolean theRuled);
266 GEOM::GEOM_Object_ptr MakePipeWithDifferentSections(const GEOM::ListOfGO& theBases,
267 const GEOM::ListOfGO& theLocations,
268 GEOM::GEOM_Object_ptr thePath,
269 CORBA::Boolean theWithContact,
270 CORBA::Boolean theWithCorrections);
272 GEOM::GEOM_Object_ptr MakePipeWithShellSections(const GEOM::ListOfGO& theBases,
273 const GEOM::ListOfGO& theSubBases,
274 const GEOM::ListOfGO& theLocations,
275 GEOM::GEOM_Object_ptr thePath,
276 CORBA::Boolean theWithContact,
277 CORBA::Boolean theWithCorrections);
279 GEOM::GEOM_Object_ptr MakePipeShellsWithoutPath(const GEOM::ListOfGO& theBases,
280 const GEOM::ListOfGO& theLocations);
282 //-----------------------------------------------------------//
283 // BooleanOperations //
284 //-----------------------------------------------------------//
285 GEOM::GEOM_Object_ptr MakeBoolean (GEOM::GEOM_Object_ptr theShape1,
286 GEOM::GEOM_Object_ptr theShape2,
287 CORBA::Long theOperation);
288 GEOM::GEOM_Object_ptr MakeFuse (GEOM::GEOM_Object_ptr theShape1,
289 GEOM::GEOM_Object_ptr theShape2);
290 GEOM::GEOM_Object_ptr MakePartition (GEOM::GEOM_List_ptr theShapes,
291 GEOM::GEOM_List_ptr theTools,
292 GEOM::GEOM_List_ptr theKeepInside,
293 GEOM::GEOM_List_ptr theRemoveInside,
294 CORBA::Short theLimit,
295 CORBA::Boolean theRemoveWebs,
296 GEOM::GEOM_List_ptr theMaterials,
297 CORBA::Short theKeepNonlimitShapes);
298 GEOM::GEOM_Object_ptr MakeHalfPartition (GEOM::GEOM_Object_ptr theShape,
299 GEOM::GEOM_Object_ptr thePlane);
301 //-----------------------------------------------------------//
302 // InsertOperations //
303 //-----------------------------------------------------------//
304 GEOM::GEOM_Object_ptr MakeCopy (GEOM::GEOM_Object_ptr theOriginal);
305 void Export (GEOM::GEOM_Object_ptr theObject,
306 const char* theFileName,
307 const char* theFormatName);
308 GEOM::GEOM_Object_ptr Import (const char* theFileName,
309 const char* theFormatName);
310 void ImportTranslators (GEOM::string_array_out theFormats,
311 GEOM::string_array_out thePatterns);
312 void ExportTranslators (GEOM::string_array_out theFormats,
313 GEOM::string_array_out thePatterns);
315 //-----------------------------------------------------------//
316 // TransformOperations //
317 //-----------------------------------------------------------//
318 GEOM::GEOM_Object_ptr TranslateTwoPoints (GEOM::GEOM_Object_ptr theObject,
319 GEOM::GEOM_Object_ptr thePoint1,
320 GEOM::GEOM_Object_ptr thePoint2);
321 GEOM::GEOM_Object_ptr TranslateTwoPointsCopy (GEOM::GEOM_Object_ptr theObject,
322 GEOM::GEOM_Object_ptr thePoint1,
323 GEOM::GEOM_Object_ptr thePoint2);
324 GEOM::GEOM_Object_ptr TranslateDXDYDZ (GEOM::GEOM_Object_ptr theObject,
327 CORBA::Double theDZ);
328 GEOM::GEOM_Object_ptr TranslateDXDYDZCopy (GEOM::GEOM_Object_ptr theObject,
331 CORBA::Double theDZ);
332 GEOM::GEOM_Object_ptr TranslateVector (GEOM::GEOM_Object_ptr theObject,
333 GEOM::GEOM_Object_ptr theVector);
334 GEOM::GEOM_Object_ptr TranslateVectorCopy (GEOM::GEOM_Object_ptr theObject,
335 GEOM::GEOM_Object_ptr theVector);
336 GEOM::GEOM_Object_ptr TranslateVectorDistance (GEOM::GEOM_Object_ptr theObject,
337 GEOM::GEOM_Object_ptr theVector,
338 CORBA::Double theDistance,
339 CORBA::Boolean theCopy);
340 GEOM::GEOM_Object_ptr MultiTranslate1D (GEOM::GEOM_Object_ptr theObject,
341 GEOM::GEOM_Object_ptr theVector,
342 CORBA::Double theStep,
343 CORBA::Long theNbTimes);
344 GEOM::GEOM_Object_ptr MultiTranslate2D (GEOM::GEOM_Object_ptr theObject,
345 GEOM::GEOM_Object_ptr theVector1,
346 CORBA::Double theStep1,
347 CORBA::Long theNbTimes1,
348 GEOM::GEOM_Object_ptr theVector2,
349 CORBA::Double theStep2,
350 CORBA::Long theNbTimes2);
351 GEOM::GEOM_Object_ptr Rotate (GEOM::GEOM_Object_ptr theObject,
352 GEOM::GEOM_Object_ptr theAxis,
353 CORBA::Double theAngle);
354 GEOM::GEOM_Object_ptr RotateCopy (GEOM::GEOM_Object_ptr theObject,
355 GEOM::GEOM_Object_ptr theAxis,
356 CORBA::Double theAngle);
358 GEOM::GEOM_Object_ptr RotateThreePoints (GEOM::GEOM_Object_ptr theObject,
359 GEOM::GEOM_Object_ptr theCentPoint,
360 GEOM::GEOM_Object_ptr thePoint1,
361 GEOM::GEOM_Object_ptr thePoint2);
363 GEOM::GEOM_Object_ptr RotateThreePointsCopy (GEOM::GEOM_Object_ptr theObject,
364 GEOM::GEOM_Object_ptr theCentPoint,
365 GEOM::GEOM_Object_ptr thePoint1,
366 GEOM::GEOM_Object_ptr thePoint2);
368 GEOM::GEOM_Object_ptr MultiRotate1D (GEOM::GEOM_Object_ptr theObject,
369 GEOM::GEOM_Object_ptr theAxis,
370 CORBA::Long theNbTimes);
371 GEOM::GEOM_Object_ptr MultiRotate2D (GEOM::GEOM_Object_ptr theObject,
372 GEOM::GEOM_Object_ptr theAxis,
373 CORBA::Double theAngle,
374 CORBA::Long theNbTimes1,
375 CORBA::Double theStep,
376 CORBA::Long theNbTimes2);
377 GEOM::GEOM_Object_ptr MirrorPlane (GEOM::GEOM_Object_ptr theObject,
378 GEOM::GEOM_Object_ptr thePlane);
379 GEOM::GEOM_Object_ptr MirrorPlaneCopy (GEOM::GEOM_Object_ptr theObject,
380 GEOM::GEOM_Object_ptr thePlane);
381 GEOM::GEOM_Object_ptr MirrorAxis (GEOM::GEOM_Object_ptr theObject,
382 GEOM::GEOM_Object_ptr theAxis);
383 GEOM::GEOM_Object_ptr MirrorAxisCopy (GEOM::GEOM_Object_ptr theObject,
384 GEOM::GEOM_Object_ptr theAxis);
385 GEOM::GEOM_Object_ptr MirrorPoint (GEOM::GEOM_Object_ptr theObject,
386 GEOM::GEOM_Object_ptr thePoint);
387 GEOM::GEOM_Object_ptr MirrorPointCopy (GEOM::GEOM_Object_ptr theObject,
388 GEOM::GEOM_Object_ptr thePoint);
389 GEOM::GEOM_Object_ptr OffsetShape (GEOM::GEOM_Object_ptr theObject,
390 CORBA::Double theOffset);
391 GEOM::GEOM_Object_ptr OffsetShapeCopy (GEOM::GEOM_Object_ptr theObject,
392 CORBA::Double theOffset);
393 GEOM::GEOM_Object_ptr ScaleShape (GEOM::GEOM_Object_ptr theObject,
394 GEOM::GEOM_Object_ptr thePoint,
395 CORBA::Double theFactor);
396 GEOM::GEOM_Object_ptr ScaleShapeCopy (GEOM::GEOM_Object_ptr theObject,
397 GEOM::GEOM_Object_ptr thePoint,
398 CORBA::Double theFactor);
399 GEOM::GEOM_Object_ptr ScaleShapeAlongAxes (GEOM::GEOM_Object_ptr theObject,
400 GEOM::GEOM_Object_ptr thePoint,
401 CORBA::Double theFactorX,
402 CORBA::Double theFactorY,
403 CORBA::Double theFactorZ);
404 GEOM::GEOM_Object_ptr ScaleShapeAlongAxesCopy (GEOM::GEOM_Object_ptr theObject,
405 GEOM::GEOM_Object_ptr thePoint,
406 CORBA::Double theFactorX,
407 CORBA::Double theFactorY,
408 CORBA::Double theFactorZ);
409 GEOM::GEOM_Object_ptr PositionShape (GEOM::GEOM_Object_ptr theObject,
410 GEOM::GEOM_Object_ptr theStartLCS,
411 GEOM::GEOM_Object_ptr theEndLCS);
412 GEOM::GEOM_Object_ptr PositionShapeCopy (GEOM::GEOM_Object_ptr theObject,
413 GEOM::GEOM_Object_ptr theStartLCS,
414 GEOM::GEOM_Object_ptr theEndLCS);
416 //-----------------------------------------------------------//
417 // ShapesOperations //
418 //-----------------------------------------------------------//
419 GEOM::GEOM_Object_ptr MakeEdge (GEOM::GEOM_Object_ptr thePnt1,
420 GEOM::GEOM_Object_ptr thePnt2);
421 GEOM::GEOM_Object_ptr MakeWire (GEOM::GEOM_List_ptr theEdgesAndWires);
422 GEOM::GEOM_Object_ptr MakeFace (GEOM::GEOM_Object_ptr theWire,
423 CORBA::Boolean isPlanarWanted);
424 GEOM::GEOM_Object_ptr MakeFaceWires (GEOM::GEOM_List_ptr theWires,
425 CORBA::Boolean isPlanarWanted);
426 GEOM::GEOM_Object_ptr MakeShell (GEOM::GEOM_List_ptr theFacesAndShells);
427 GEOM::GEOM_Object_ptr MakeSolidShell (GEOM::GEOM_Object_ptr theShell);
428 GEOM::GEOM_Object_ptr MakeSolidShells (GEOM::GEOM_List_ptr theShells);
429 GEOM::GEOM_Object_ptr MakeCompound (GEOM::GEOM_List_ptr theShapes);
430 GEOM::GEOM_Object_ptr MakeGlueFaces (GEOM::GEOM_Object_ptr theShape,
431 CORBA::Double theTolerance,
432 CORBA::Boolean doKeepNonSolids);
433 GEOM::GEOM_List_ptr GetGlueFaces (GEOM::GEOM_Object_ptr theShape,
434 CORBA::Double theTolerance);
435 GEOM::GEOM_Object_ptr MakeGlueFacesByList (GEOM::GEOM_Object_ptr theShape,
436 CORBA::Double theTolerance,
437 const GEOM::ListOfGO& theFaces,
438 CORBA::Boolean doKeepNonSolids);
439 GEOM::GEOM_List_ptr MakeExplode (GEOM::GEOM_Object_ptr theShape,
440 CORBA::Long theShapeType,
441 CORBA::Boolean isSorted);
442 CORBA::Long NumberOfFaces (GEOM::GEOM_Object_ptr theShape);
443 CORBA::Long NumberOfEdges (GEOM::GEOM_Object_ptr theShape);
444 GEOM::GEOM_Object_ptr ChangeOrientation (GEOM::GEOM_Object_ptr theShape);
446 GEOM::GEOM_List_ptr GetShapesOnShape (GEOM::GEOM_Object_ptr theCheckShape,
447 GEOM::GEOM_Object_ptr theShape,
448 CORBA::Short theShapeType,
449 GEOM::shape_state theState);
450 GEOM::GEOM_Object_ptr GetShapesOnShapeAsCompound
451 (GEOM::GEOM_Object_ptr theCheckShape,
452 GEOM::GEOM_Object_ptr theShape,
453 CORBA::Short theShapeType,
454 GEOM::shape_state theState);
457 //-----------------------------------------------------------//
458 // BlocksOperations //
459 //-----------------------------------------------------------//
460 GEOM::GEOM_Object_ptr MakeQuad4Vertices (GEOM::GEOM_Object_ptr thePnt1,
461 GEOM::GEOM_Object_ptr thePnt2,
462 GEOM::GEOM_Object_ptr thePnt3,
463 GEOM::GEOM_Object_ptr thePnt4);
464 GEOM::GEOM_Object_ptr MakeQuad (GEOM::GEOM_Object_ptr theEdge1,
465 GEOM::GEOM_Object_ptr theEdge2,
466 GEOM::GEOM_Object_ptr theEdge3,
467 GEOM::GEOM_Object_ptr theEdge4);
468 GEOM::GEOM_Object_ptr MakeQuad2Edges (GEOM::GEOM_Object_ptr theEdge1,
469 GEOM::GEOM_Object_ptr theEdge2);
470 GEOM::GEOM_Object_ptr MakeHexa (GEOM::GEOM_Object_ptr theFace1,
471 GEOM::GEOM_Object_ptr theFace2,
472 GEOM::GEOM_Object_ptr theFace3,
473 GEOM::GEOM_Object_ptr theFace4,
474 GEOM::GEOM_Object_ptr theFace5,
475 GEOM::GEOM_Object_ptr theFace6);
476 GEOM::GEOM_Object_ptr MakeHexa2Faces (GEOM::GEOM_Object_ptr theFace1,
477 GEOM::GEOM_Object_ptr theFace2);
478 GEOM::GEOM_Object_ptr GetPoint (GEOM::GEOM_Object_ptr theShape,
482 CORBA::Double theEpsilon);
483 GEOM::GEOM_Object_ptr GetEdge (GEOM::GEOM_Object_ptr theShape,
484 GEOM::GEOM_Object_ptr thePoint1,
485 GEOM::GEOM_Object_ptr thePoint2);
486 GEOM::GEOM_Object_ptr GetEdgeNearPoint (GEOM::GEOM_Object_ptr theShape,
487 GEOM::GEOM_Object_ptr thePoint);
488 GEOM::GEOM_Object_ptr GetFaceByPoints (GEOM::GEOM_Object_ptr theShape,
489 GEOM::GEOM_Object_ptr thePoint1,
490 GEOM::GEOM_Object_ptr thePoint2,
491 GEOM::GEOM_Object_ptr thePoint3,
492 GEOM::GEOM_Object_ptr thePoint4);
493 GEOM::GEOM_Object_ptr GetFaceByEdges (GEOM::GEOM_Object_ptr theShape,
494 GEOM::GEOM_Object_ptr theEdge1,
495 GEOM::GEOM_Object_ptr theEdge2);
496 GEOM::GEOM_Object_ptr GetOppositeFace (GEOM::GEOM_Object_ptr theBlock,
497 GEOM::GEOM_Object_ptr theFace);
498 GEOM::GEOM_Object_ptr GetFaceNearPoint (GEOM::GEOM_Object_ptr theShape,
499 GEOM::GEOM_Object_ptr thePoint);
500 GEOM::GEOM_Object_ptr GetFaceByNormale (GEOM::GEOM_Object_ptr theBlock,
501 GEOM::GEOM_Object_ptr theVector);
502 CORBA::Boolean IsCompoundOfBlocks (GEOM::GEOM_Object_ptr theCompound,
503 CORBA::Long theMinNbFaces,
504 CORBA::Long theMaxNbFaces,
505 CORBA::Long& theNbBlocks);
506 CORBA::Boolean CheckCompoundOfBlocks (GEOM::GEOM_Object_ptr theCompound,
507 GEOM::GEOM_IBlocksOperations::BCErrors_out theErrors);
508 char* PrintBCErrors (GEOM::GEOM_Object_ptr theCompound,
509 const GEOM::GEOM_IBlocksOperations::BCErrors& theErrors);
510 GEOM::GEOM_List_ptr ExplodeCompoundOfBlocks (GEOM::GEOM_Object_ptr theCompound,
511 CORBA::Long theMinNbFaces,
512 CORBA::Long theMaxNbFaces);
513 GEOM::GEOM_Object_ptr GetBlockNearPoint (GEOM::GEOM_Object_ptr theCompound,
514 GEOM::GEOM_Object_ptr thePoint);
515 GEOM::GEOM_Object_ptr GetBlockByParts (GEOM::GEOM_Object_ptr theCompound,
516 GEOM::GEOM_List_ptr theParts);
517 GEOM::GEOM_List_ptr GetBlocksByParts (GEOM::GEOM_Object_ptr theCompound,
518 GEOM::GEOM_List_ptr theParts);
519 GEOM::GEOM_Object_ptr MakeMultiTransformation1D (GEOM::GEOM_Object_ptr theBlock,
520 CORBA::Long theDirFace1,
521 CORBA::Long theDirFace2,
522 CORBA::Long theNbTimes);
523 GEOM::GEOM_Object_ptr MakeMultiTransformation2D (GEOM::GEOM_Object_ptr theBlock,
524 CORBA::Long theDirFace1U,
525 CORBA::Long theDirFace2U,
526 CORBA::Long theNbTimesU,
527 CORBA::Long theDirFace1V,
528 CORBA::Long theDirFace2V,
529 CORBA::Long theNbTimesV);
531 //-----------------------------------------------------------//
532 // CurvesOperations //
533 //-----------------------------------------------------------//
534 GEOM::GEOM_Object_ptr MakeCirclePntVecR (GEOM::GEOM_Object_ptr theCenter,
535 GEOM::GEOM_Object_ptr theVector,
537 GEOM::GEOM_Object_ptr MakeCircleThreePnt (GEOM::GEOM_Object_ptr thePnt1,
538 GEOM::GEOM_Object_ptr thePnt2,
539 GEOM::GEOM_Object_ptr thePnt3);
540 GEOM::GEOM_Object_ptr MakeCircleCenter2Pnt (GEOM::GEOM_Object_ptr thePnt1,
541 GEOM::GEOM_Object_ptr thePnt2,
542 GEOM::GEOM_Object_ptr thePnt3);
543 GEOM::GEOM_Object_ptr MakeEllipse (GEOM::GEOM_Object_ptr theCenter,
544 GEOM::GEOM_Object_ptr theVector,
545 CORBA::Double theRMajor, CORBA::Double theRMinor);
546 GEOM::GEOM_Object_ptr MakeArc (GEOM::GEOM_Object_ptr thePnt1,
547 GEOM::GEOM_Object_ptr thePnt2,
548 GEOM::GEOM_Object_ptr thePnt3);
549 GEOM::GEOM_Object_ptr MakeArcCenter (GEOM::GEOM_Object_ptr theCenter,
550 GEOM::GEOM_Object_ptr thePnt1,
551 GEOM::GEOM_Object_ptr thePnt2,
552 CORBA::Boolean theSense);
553 GEOM::GEOM_Object_ptr MakePolyline (GEOM::GEOM_List_ptr thePoints);
554 GEOM::GEOM_Object_ptr MakeSplineBezier (GEOM::GEOM_List_ptr thePoints);
555 GEOM::GEOM_Object_ptr MakeSplineInterpolation (GEOM::GEOM_List_ptr thePoints);
556 GEOM::GEOM_Object_ptr MakeSketcher (const char* theCommand,
557 GEOM::GEOM_List_ptr theWorkingPlane);
559 //-----------------------------------------------------------//
560 // LocalOperations //
561 //-----------------------------------------------------------//
562 GEOM::GEOM_Object_ptr MakeFilletAll (GEOM::GEOM_Object_ptr theShape,
564 GEOM::GEOM_Object_ptr MakeFilletEdges (GEOM::GEOM_Object_ptr theShape, CORBA::Double theR,
565 GEOM::GEOM_List_ptr theEdges);
566 GEOM::GEOM_Object_ptr MakeFilletEdgesR1R2 (GEOM::GEOM_Object_ptr theShape, CORBA::Double theR1,
567 CORBA::Double theR2, GEOM::GEOM_List_ptr theEdges);
568 GEOM::GEOM_Object_ptr MakeFilletFaces (GEOM::GEOM_Object_ptr theShape, CORBA::Double theR,
569 GEOM::GEOM_List_ptr theFaces);
570 GEOM::GEOM_Object_ptr MakeFilletFacesR1R2 (GEOM::GEOM_Object_ptr theShape, CORBA::Double theR1,
571 CORBA::Double theR2, GEOM::GEOM_List_ptr theFaces);
572 GEOM::GEOM_Object_ptr MakeChamferAll (GEOM::GEOM_Object_ptr theShape, CORBA::Double theD);
573 GEOM::GEOM_Object_ptr MakeChamferEdge (GEOM::GEOM_Object_ptr theShape,
574 CORBA::Double theD1, CORBA::Double theD2,
575 CORBA::Long theFace1, CORBA::Long theFace2);
576 GEOM::GEOM_Object_ptr MakeChamferEdgeAD (GEOM::GEOM_Object_ptr theShape,
577 CORBA::Double theD, CORBA::Double theAngle,
578 CORBA::Long theFace1, CORBA::Long theFace2);
579 GEOM::GEOM_Object_ptr MakeChamferFaces (GEOM::GEOM_Object_ptr theShape,
580 CORBA::Double theD1, CORBA::Double theD2,
581 GEOM::GEOM_List_ptr theFaces);
582 GEOM::GEOM_Object_ptr MakeChamferFacesAD (GEOM::GEOM_Object_ptr theShape,
583 CORBA::Double theD, CORBA::Double theAngle,
584 GEOM::GEOM_List_ptr theFaces);
585 GEOM::GEOM_Object_ptr MakeChamferEdges (GEOM::GEOM_Object_ptr theShape,
586 CORBA::Double theD1, CORBA::Double theD2,
587 GEOM::GEOM_List_ptr theEdges);
588 GEOM::GEOM_Object_ptr MakeChamferEdgesAD (GEOM::GEOM_Object_ptr theShape,
589 CORBA::Double theD, CORBA::Double theAngle,
590 GEOM::GEOM_List_ptr theEdges);
591 GEOM::GEOM_Object_ptr MakeArchimede (GEOM::GEOM_Object_ptr theShape,
592 CORBA::Double theWeight,
593 CORBA::Double theWaterDensity,
594 CORBA::Double theMeshingDeflection);
595 CORBA::Long GetSubShapeIndex (GEOM::GEOM_Object_ptr theShape,
596 GEOM::GEOM_Object_ptr theSubShape);
598 //-----------------------------------------------------------//
599 // GroupOperations //
600 //-----------------------------------------------------------//
601 GEOM::GEOM_Object_ptr CreateGroup (GEOM::GEOM_Object_ptr theMainShape,
602 CORBA::Long theShapeType);
603 void AddObject (GEOM::GEOM_Object_ptr theGroup,
604 CORBA::Long theSubShapeId);
605 void RemoveObject (GEOM::GEOM_Object_ptr theGroup,
606 CORBA::Long theSubShapeId);
607 CORBA::Long GetType (GEOM::GEOM_Object_ptr theGroup);
608 GEOM::GEOM_Object_ptr GetMainShape (GEOM::GEOM_Object_ptr theGroup);
609 GEOM::GEOM_List_ptr GetObjects (GEOM::GEOM_Object_ptr theGroup);
612 SALOME_NamingService * name_service;
613 GEOM::GEOM_Gen_var myGeomEngine;
614 CORBA::Long myStudyID;
615 CORBA::Long myLastStudyID; // mkr : PAL10770
616 PortableServer::POA_var myPOA;
618 GEOM::GEOM_IBasicOperations_var myBasicOp;
619 GEOM::GEOM_I3DPrimOperations_var my3DPrimOp;
620 GEOM::GEOM_IBooleanOperations_var myBoolOp;
621 GEOM::GEOM_IInsertOperations_var myInsOp;
622 GEOM::GEOM_ITransformOperations_var myTransfOp;
623 GEOM::GEOM_IShapesOperations_var myShapesOp;
624 GEOM::GEOM_IBlocksOperations_var myBlocksOp;
625 GEOM::GEOM_ICurvesOperations_var myCurvesOp;
626 GEOM::GEOM_ILocalOperations_var myLocalOp;
627 GEOM::GEOM_IGroupOperations_var myGroupOp;