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