1 // Copyright (C) 2007-2014 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, or (at your option) any later version.
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
23 //=============================================================================
24 // File : GEOMImpl_IShapesOperations.hxx
26 // Author : modified by Lioka RAZAFINDRAZAKA (CEA) 22/06/2007
28 //=============================================================================
30 #ifndef _GEOMImpl_IShapesOperations_HXX_
31 #define _GEOMImpl_IShapesOperations_HXX_
33 #include "GEOM_IOperations.hxx"
35 #include "GEOMAlgo_State.hxx"
37 #include <TColStd_HSequenceOfTransient.hxx>
38 #include <TColStd_HSequenceOfInteger.hxx>
40 #include <Geom_Surface.hxx>
45 class Handle(GEOM_Object);
46 class Handle(TColStd_HArray1OfInteger);
49 class GEOMImpl_IShapesOperations : public GEOM_IOperations
58 All = Groups | Fields | SubShapes,
61 Standard_EXPORT GEOMImpl_IShapesOperations(GEOM_Engine* theEngine, int theDocID);
62 Standard_EXPORT ~GEOMImpl_IShapesOperations();
64 Standard_EXPORT Handle(GEOM_Object) MakeEdge (Handle(GEOM_Object) thePoint1,
65 Handle(GEOM_Object) thePoint2);
67 Standard_EXPORT Handle(GEOM_Object) MakeEdgeOnCurveByLength (Handle(GEOM_Object) theCurve,
68 const Standard_Real theLength,
69 Handle(GEOM_Object) theStartPoint);
71 Standard_EXPORT Handle(GEOM_Object) MakeEdgeWire (Handle(GEOM_Object) theWire,
72 const Standard_Real theLinearTolerance,
73 const Standard_Real theAngularTolerance);
75 Standard_EXPORT Handle(GEOM_Object) MakeWire (std::list<Handle(GEOM_Object)> theEdgesAndWires,
76 const Standard_Real theTolerance);
78 Standard_EXPORT Handle(GEOM_Object) MakeFace (Handle(GEOM_Object) theWire, const bool isPlanarWanted);
80 Standard_EXPORT Handle(GEOM_Object) MakeFaceWires (std::list<Handle(GEOM_Object)> theWires,
81 const bool isPlanarWanted);
83 Standard_EXPORT Handle(GEOM_Object) MakeFaceFromSurface
84 (Handle(GEOM_Object) theFace,
85 Handle(GEOM_Object) theWire);
87 Standard_EXPORT Handle(GEOM_Object) MakeFaceWithConstraints (std::list<Handle(GEOM_Object)> theConstraints);
89 Standard_EXPORT Handle(GEOM_Object) MakeShell (std::list<Handle(GEOM_Object)> theShapes);
91 Standard_EXPORT Handle(GEOM_Object) MakeSolidShells (std::list<Handle(GEOM_Object)> theShells);
93 Standard_EXPORT Handle(GEOM_Object) MakeCompound (std::list<Handle(GEOM_Object)> theShapes);
95 Standard_EXPORT Handle(GEOM_Object) MakeSolidFromConnectedFaces (std::list<Handle(GEOM_Object)> theFacesOrShells,
96 const Standard_Boolean isIntersect);
98 Standard_EXPORT Handle(GEOM_Object) MakeGlueFaces (std::list< Handle(GEOM_Object) >& theShapes,
99 const Standard_Real theTolerance,
100 const Standard_Boolean doKeepNonSolids);
102 Standard_EXPORT Handle(GEOM_Object) MakeGlueFacesByList (std::list< Handle(GEOM_Object) >& theShapes,
103 const Standard_Real theTolerance,
104 std::list<Handle(GEOM_Object)>& theFaces,
105 const Standard_Boolean doKeepNonSolids,
106 const Standard_Boolean doGlueAllEdges);
108 Standard_EXPORT Handle(GEOM_Object) MakeGlueEdges (std::list< Handle(GEOM_Object) >& theShapes,
109 const Standard_Real theTolerance);
111 Standard_EXPORT Handle(TColStd_HSequenceOfTransient) GetGlueShapes (std::list< Handle(GEOM_Object) >& theShapes,
112 const Standard_Real theTolerance,
113 const TopAbs_ShapeEnum theType);
115 Standard_EXPORT Handle(GEOM_Object) MakeGlueEdgesByList (std::list< Handle(GEOM_Object) >& theShapes,
116 const Standard_Real theTolerance,
117 std::list<Handle(GEOM_Object)> & theEdges);
119 Standard_EXPORT Handle(TColStd_HSequenceOfTransient) GetExistingSubObjects(Handle(GEOM_Object) theShape,
120 const Standard_Boolean theGroupsOnly);
121 Standard_EXPORT Handle(TColStd_HSequenceOfTransient) GetExistingSubObjects(Handle(GEOM_Object) theShape,
122 const Standard_Integer theTypes = All);
125 EXPLODE_OLD_INCLUDE_MAIN,
126 EXPLODE_NEW_INCLUDE_MAIN,
127 EXPLODE_NEW_EXCLUDE_MAIN
130 Standard_EXPORT Handle(TColStd_HSequenceOfTransient) MakeExplode
131 (Handle(GEOM_Object) theShape,
132 const Standard_Integer theShapeType,
133 const Standard_Boolean isSorted,
134 const ExplodeType theExplodeType = EXPLODE_NEW_INCLUDE_MAIN);
136 Standard_EXPORT Handle(TColStd_HSequenceOfInteger) SubShapeAllIDs
137 (Handle(GEOM_Object) theShape,
138 const Standard_Integer theShapeType,
139 const Standard_Boolean isSorted,
140 const ExplodeType theExplodeType = EXPLODE_NEW_INCLUDE_MAIN);
142 Standard_EXPORT Handle(GEOM_Object) GetSubShape (Handle(GEOM_Object) theMainShape,
143 const Standard_Integer theID);
145 Standard_EXPORT Handle(TColStd_HSequenceOfTransient) MakeSubShapes
146 (Handle(GEOM_Object) theMainShape,
147 Handle(TColStd_HArray1OfInteger) theIndices);
149 Standard_EXPORT Standard_Integer GetSubShapeIndex (Handle(GEOM_Object) theMainShape,
150 Handle(GEOM_Object) theSubShape);
152 Standard_EXPORT Handle(TColStd_HSequenceOfInteger) GetSubShapesIndices (Handle(GEOM_Object) theMainShape,
153 std::list<Handle(GEOM_Object)> theSubShapes);
155 Standard_EXPORT Standard_Integer GetTopologyIndex (Handle(GEOM_Object) theMainShape,
156 Handle(GEOM_Object) theSubShape);
158 Standard_EXPORT TCollection_AsciiString GetShapeTypeString (Handle(GEOM_Object) theShape);
160 Standard_EXPORT Standard_Boolean IsSubShapeBelongsTo(Handle(GEOM_Object) theSubObject,
161 const Standard_Integer theSubObjectIndex,
162 Handle(GEOM_Object) theObject,
163 const Standard_Integer theObjectIndex);
165 Standard_EXPORT Standard_Integer NumberOfSubShapes (Handle(GEOM_Object) theShape,
166 const Standard_Integer theShapeType);
168 Standard_EXPORT Handle(GEOM_Object) ReverseShape(Handle(GEOM_Object) theShapes);
170 Standard_EXPORT Handle(TColStd_HSequenceOfInteger) GetFreeFacesIDs (Handle(GEOM_Object) theShape);
172 Standard_EXPORT Handle(TColStd_HSequenceOfTransient)
173 GetSharedShapes (Handle(GEOM_Object) theShape1,
174 Handle(GEOM_Object) theShape2,
175 const Standard_Integer theShapeType);
177 Standard_EXPORT Handle(TColStd_HSequenceOfTransient)
178 GetSharedShapes (std::list<Handle(GEOM_Object)>& theShapes,
179 const Standard_Integer theShapeType,
180 const bool theMultiShare = true);
182 Standard_EXPORT Handle(TColStd_HSequenceOfTransient)
183 GetShapesOnPlane (const Handle(GEOM_Object)& theShape,
184 const Standard_Integer theShapeType,
185 const Handle(GEOM_Object)& theAx1,
186 const GEOMAlgo_State theState);
188 Standard_EXPORT Handle(TColStd_HSequenceOfTransient)
189 GetShapesOnPlaneWithLocation (const Handle(GEOM_Object)& theShape,
190 const Standard_Integer theShapeType,
191 const Handle(GEOM_Object)& theAx1,
192 const Handle(GEOM_Object)& thePnt,
193 const GEOMAlgo_State theState);
196 Standard_EXPORT Handle(TColStd_HSequenceOfTransient)
197 GetShapesOnCylinder (const Handle(GEOM_Object)& theShape,
198 const Standard_Integer theShapeType,
199 const Handle(GEOM_Object)& theAxis,
200 const Standard_Real theRadius,
201 const GEOMAlgo_State theState);
203 Standard_EXPORT Handle(TColStd_HSequenceOfTransient)
204 GetShapesOnCylinderWithLocation (const Handle(GEOM_Object)& theShape,
205 const Standard_Integer theShapeType,
206 const Handle(GEOM_Object)& theAxis,
207 const Handle(GEOM_Object)& thePnt,
208 const Standard_Real theRadius,
209 const GEOMAlgo_State theState);
211 Standard_EXPORT Handle(TColStd_HSequenceOfTransient)
212 GetShapesOnSphere (const Handle(GEOM_Object)& theShape,
213 const Standard_Integer theShapeType,
214 const Handle(GEOM_Object)& theCenter,
215 const Standard_Real theRadius,
216 const GEOMAlgo_State theState);
218 Standard_EXPORT Handle(TColStd_HSequenceOfInteger)
219 GetShapesOnPlaneIDs (const Handle(GEOM_Object)& theShape,
220 const Standard_Integer theShapeType,
221 const Handle(GEOM_Object)& theAx1,
222 const GEOMAlgo_State theState);
224 Standard_EXPORT Handle(TColStd_HSequenceOfInteger)
225 GetShapesOnPlaneWithLocationIDs (const Handle(GEOM_Object)& theShape,
226 const Standard_Integer theShapeType,
227 const Handle(GEOM_Object)& theAx1,
228 const Handle(GEOM_Object)& thePnt,
229 const GEOMAlgo_State theState);
231 Standard_EXPORT Handle(TColStd_HSequenceOfInteger)
232 GetShapesOnCylinderIDs (const Handle(GEOM_Object)& theShape,
233 const Standard_Integer theShapeType,
234 const Handle(GEOM_Object)& theAxis,
235 const Standard_Real theRadius,
236 const GEOMAlgo_State theState);
238 Standard_EXPORT Handle(TColStd_HSequenceOfInteger)
239 GetShapesOnCylinderWithLocationIDs (const Handle(GEOM_Object)& theShape,
240 const Standard_Integer theShapeType,
241 const Handle(GEOM_Object)& theAxis,
242 const Handle(GEOM_Object)& thePnt,
243 const Standard_Real theRadius,
244 const GEOMAlgo_State theState);
246 Standard_EXPORT Handle(TColStd_HSequenceOfInteger)
247 GetShapesOnSphereIDs (const Handle(GEOM_Object)& theShape,
248 const Standard_Integer theShapeType,
249 const Handle(GEOM_Object)& theCenter,
250 const Standard_Real theRadius,
251 const GEOMAlgo_State theState);
254 * \brief Find sub-shapes complying with given status about quadrangle
255 * \param theShape - the shape to explore
256 * \param theShapeType - type of sub-shape of theShape
257 * \param theTopLeftPoint - top left quadrangle corner
258 * \param theTopRigthPoint - top right quadrangle corner
259 * \param theBottomLeftPoint - bottom left quadrangle corner
260 * \param theBottomRigthPoint - bottom right quadrangle corner
261 * \param theState - required state
262 * \retval Handle(TColStd_HSequenceOfInteger) - IDs of found sub-shapes
264 Standard_EXPORT Handle(TColStd_HSequenceOfTransient)
265 GetShapesOnQuadrangle (const Handle(GEOM_Object)& theShape,
266 const Standard_Integer theShapeType,
267 const Handle(GEOM_Object)& theTopLeftPoint,
268 const Handle(GEOM_Object)& theTopRigthPoint,
269 const Handle(GEOM_Object)& theBottomLeftPoint,
270 const Handle(GEOM_Object)& theBottomRigthPoint,
271 const GEOMAlgo_State theState);
274 * \brief Find IDs of sub-shapes complying with given status about quadrangle
275 * \param theShape - the shape to explore
276 * \param theShapeType - type of sub-shape of theShape
277 * \param theTopLeftPoint - top left quadrangle corner
278 * \param theTopRigthPoint - top right quadrangle corner
279 * \param theBottomLeftPoint - bottom left quadrangle corner
280 * \param theBottomRigthPoint - bottom right quadrangle corner
281 * \param theState - required state
282 * \retval Handle(TColStd_HSequenceOfInteger) - IDs of found sub-shapes
284 Standard_EXPORT Handle(TColStd_HSequenceOfInteger)
285 GetShapesOnQuadrangleIDs (const Handle(GEOM_Object)& theShape,
286 const Standard_Integer theShapeType,
287 const Handle(GEOM_Object)& theTopLeftPoint,
288 const Handle(GEOM_Object)& theTopRigthPoint,
289 const Handle(GEOM_Object)& theBottomLeftPoint,
290 const Handle(GEOM_Object)& theBottomRigthPoint,
291 const GEOMAlgo_State theState);
293 Standard_EXPORT Handle(GEOM_Object) GetShapesOnCylinderOld (Handle(GEOM_Object) theShape,
294 const Standard_Integer theShapeType,
295 Handle(GEOM_Object) theAxis,
296 const Standard_Real theRadius);
298 Standard_EXPORT Handle(GEOM_Object) GetShapesOnSphereOld (Handle(GEOM_Object) theShape,
299 const Standard_Integer theShapeType,
300 Handle(GEOM_Object) theCenter,
301 const Standard_Real theRadius);
303 Standard_EXPORT Handle(GEOM_Object) GetInPlace (Handle(GEOM_Object) theShapeWhere,
304 Handle(GEOM_Object) theShapeWhat);
306 Standard_EXPORT Handle(GEOM_Object) GetInPlaceOld (Handle(GEOM_Object) theShapeWhere,
307 Handle(GEOM_Object) theShapeWhat);
309 Standard_EXPORT Handle(GEOM_Object) GetInPlaceByHistory (Handle(GEOM_Object) theShapeWhere,
310 Handle(GEOM_Object) theShapeWhat);
313 * \brief Searches a shape equal to theWhat in the context of theWhere
314 * \param theShapeWhere - a context shap
315 * \param theShapeWhat - a sample shape
316 * \retval Handle(GEOM_Object) - found shape
318 Standard_EXPORT Handle(GEOM_Object) GetSame(const Handle(GEOM_Object)& theShapeWhere,
319 const Handle(GEOM_Object)& theShapeWhat);
322 * \brief Searches a shape equal to theWhat in the context of theWhere
323 * \param theShapeWhere - a context shap
324 * \param theShapeWhat - a sample shape
325 * \retval Handle(TColStd_HSequenceOfInteger) - IDs of found sub-shapes
327 Standard_EXPORT Handle(TColStd_HSequenceOfInteger) GetSameIDs(const Handle(GEOM_Object)& theShapeWhere,
328 const Handle(GEOM_Object)& theShapeWhat);
331 * \brief Find IDs of sub-shapes complying with given status about surface
332 * \param theBox - the box to check state of sub-shapes against
333 * \param theShape - the shape to explore
334 * \param theShapeType - type of sub-shape of theShape
335 * \param theState - required state
336 * \retval Handle(TColStd_HSequenceOfInteger) - IDs of found sub-shapes
338 Standard_EXPORT Handle(TColStd_HSequenceOfInteger)
339 GetShapesOnBoxIDs(const Handle(GEOM_Object)& theBox,
340 const Handle(GEOM_Object)& theShape,
341 const Standard_Integer theShapeType,
342 GEOMAlgo_State theState);
345 * \brief Find sub-shapes complying with given status about surface
346 * \param theBox - the box to check state of sub-shapes against
347 * \param theShape - the shape to explore
348 * \param theShapeType - type of sub-shape of theShape
349 * \param theState - required state
350 * \retval Handle(TColStd_HSequenceOfTransient) - found shape objects
352 Standard_EXPORT Handle(TColStd_HSequenceOfTransient)
353 GetShapesOnBox(const Handle(GEOM_Object)& theBox,
354 const Handle(GEOM_Object)& theShape,
355 const Standard_Integer theShapeType,
356 GEOMAlgo_State theState);
359 * \brief Find IDs of sub-shapes complying with given status about surface
360 * \param theCheckShape - the shape to check state of sub-shapes against
361 * \param theShape - the shape to explore
362 * \param theShapeType - type of sub-shape of theShape
363 * \param theState - required state
364 * \retval Handle(TColStd_HSequenceOfInteger) - IDs of found sub-shapes
366 Standard_EXPORT Handle(TColStd_HSequenceOfInteger)
367 GetShapesOnShapeIDs(const Handle(GEOM_Object)& theCheckShape,
368 const Handle(GEOM_Object)& theShape,
369 const Standard_Integer theShapeType,
370 GEOMAlgo_State theState);
373 * \brief Find sub-shapes complying with given status about surface
374 * \param theCheckShape - the shape to check state of sub-shapes against
375 * \param theShape - the shape to explore
376 * \param theShapeType - type of sub-shape of theShape
377 * \param theState - required state
378 * \retval Handle(TColStd_HSequenceOfTransient) - found shape objects
380 Standard_EXPORT Handle(TColStd_HSequenceOfTransient)
381 GetShapesOnShape(const Handle(GEOM_Object)& theCheckShape,
382 const Handle(GEOM_Object)& theShape,
383 const Standard_Integer theShapeType,
384 GEOMAlgo_State theState);
385 Standard_EXPORT Handle(GEOM_Object)
386 GetShapesOnShapeAsCompound(const Handle(GEOM_Object)& theCheckShape,
387 const Handle(GEOM_Object)& theShape,
388 const Standard_Integer theShapeType,
389 GEOMAlgo_State theState);
391 Standard_EXPORT Handle(GEOM_Object)
392 ExtendEdge(const Handle(GEOM_Object) &theEdge,
393 const Standard_Real theMin,
394 const Standard_Real theMax);
396 Standard_EXPORT Handle(GEOM_Object)
397 ExtendFace(const Handle(GEOM_Object) &theFace,
398 const Standard_Real theUMin,
399 const Standard_Real theUMax,
400 const Standard_Real theVMin,
401 const Standard_Real theVMax);
403 Standard_EXPORT Handle(GEOM_Object)
404 MakeSurfaceFromFace(const Handle(GEOM_Object) &theFace);
407 Handle(GEOM_Object) MakeShape (std::list<Handle(GEOM_Object)> theShapes,
408 const Standard_Integer theObjectType,
409 const Standard_Integer theFunctionType,
410 const TCollection_AsciiString& theMethodName);
412 // ----------------------------------------------------
413 // methods common for all GetShapesOnXXX() functions
414 // ----------------------------------------------------
417 * \brief Checks if theShapeType parameter of GetShapesOnXXX() is OK
418 * \param theShapeType - the shape type to check
419 * \retval bool - result of the check
421 bool checkTypeShapesOn(const Standard_Integer theShapeType);
424 * \brief Creates Geom_Plane
425 * \param theAx1 - edge defining plane normal
426 * \retval Handle(Geom_Surface) - resulting surface
428 Handle(Geom_Surface) makePlane(const TopoDS_Shape& theAx1);
431 * \brief Creates Geom_CylindricalSurface
432 * \param theAx1 - edge defining cylinder axis
433 * \param theRadius - cylinder radius
434 * \retval Handle(Geom_Surface) - resulting surface
436 Handle(Geom_Surface) makeCylinder(const TopoDS_Shape& theAx1,
437 const Standard_Real theRadius);
440 * \brief Find IDs of sub-shapes complying with given status about surface
441 * \param theSurface - the surface to check state of sub-shapes against
442 * \param theShape - the shape to explore
443 * \param theShapeType - type of sub-shape of theShape
444 * \param theState - required state
445 * \retval Handle(TColStd_HSequenceOfInteger) - IDs of found sub-shapes
447 Handle(TColStd_HSequenceOfInteger)
448 getShapesOnSurfaceIDs(const Handle(Geom_Surface)& theSurface,
449 const TopoDS_Shape& theShape,
450 TopAbs_ShapeEnum theShapeType,
451 GEOMAlgo_State theState);
454 * \brief Find sub-shapes complying with given status about surface
455 * \param theSurface - the surface to check state of sub-shapes against
456 * \param theShape - the shape to explore
457 * \param theShapeType - type of sub-shape of theShape
458 * \param theState - required state
459 * \param theShapeEntries - outgoing entries like "entry1, entry2, ..."
460 * \retval Handle(TColStd_HSequenceOfTransient) - found shape objects
462 Handle(TColStd_HSequenceOfTransient)
463 getShapesOnSurface(const Handle(Geom_Surface)& theSurface,
464 const Handle(GEOM_Object)& theShape,
465 TopAbs_ShapeEnum theShapeType,
466 GEOMAlgo_State theState,
467 TCollection_AsciiString & theShapeEntries);
470 * \brief Find IDs of sub-shapes complying with given status about quadrangle
471 * \param theShape - the shape to explore
472 * \param theShapeType - type of sub-shape of theShape
473 * \param theTopLeftPoint - top left quadrangle corner
474 * \param theTopRigthPoint - top right quadrangle corner
475 * \param theBottomLeftPoint - bottom left quadrangle corner
476 * \param theBottomRigthPoint - bottom right quadrangle corner
477 * \param theState - required state
478 * \retval Handle(TColStd_HSequenceOfInteger) - IDs of found sub-shapes
480 Handle(TColStd_HSequenceOfInteger)
481 getShapesOnQuadrangleIDs (const Handle(GEOM_Object)& theShape,
482 const Standard_Integer theShapeType,
483 const Handle(GEOM_Object)& theTopLeftPoint,
484 const Handle(GEOM_Object)& theTopRigthPoint,
485 const Handle(GEOM_Object)& theBottomLeftPoint,
486 const Handle(GEOM_Object)& theBottomRigthPoint,
487 const GEOMAlgo_State theState);
490 * \brief Find IDs of sub-shapes complying with given status about surface
491 * \param theBox - the box to check state of sub-shapes against
492 * \param theShape - the shape to explore
493 * \param theShapeType - type of sub-shape of theShape
494 * \param theState - required state
495 * \retval Handle(TColStd_HSequenceOfInteger) - IDs of found sub-shapes
497 Handle(TColStd_HSequenceOfInteger) getShapesOnBoxIDs(const Handle(GEOM_Object)& theBox,
498 const Handle(GEOM_Object)& theShape,
499 const Standard_Integer theShapeType,
500 GEOMAlgo_State theState);
503 * \brief Find IDs of sub-shapes complying with given status about surface
504 * \param theCheckShape - the shape to check state of sub-shapes against
505 * \param theShape - the shape to explore
506 * \param theShapeType - type of sub-shape of theShape
507 * \param theState - required state
508 * \retval Handle(TColStd_HSequenceOfInteger) - IDs of found sub-shapes
510 Handle(TColStd_HSequenceOfInteger) getShapesOnShapeIDs
511 (const Handle(GEOM_Object)& theCheckShape,
512 const Handle(GEOM_Object)& theShape,
513 const Standard_Integer theShapeType,
514 GEOMAlgo_State theState);
517 * \brief Find shape objects and their entries by their ids
518 * \param theShape - the main shape
519 * \param theShapeIDs - theShapeIDs - incoming shape ids
520 * \param theShapeEntries - outgoing entries like "entry1, entry2, ..."
521 * \retval Handle(TColStd_HSequenceOfTransient) - found shape objects
523 Handle(TColStd_HSequenceOfTransient)
524 getObjectsShapesOn(const Handle(GEOM_Object)& theShape,
525 const Handle(TColStd_HSequenceOfInteger)& theShapeIDs,
526 TCollection_AsciiString & theShapeEntries);
529 * \brief Select the object created last
530 * \param theObj1 - Object 1
531 * \param theObj2 - Object 2
532 * \retval Handle(GEOM_Object) - selected object
534 static Handle(GEOM_Object) getCreatedLast(const Handle(GEOM_Object)& theObj1,
535 const Handle(GEOM_Object)& theObj2);