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