2 #ifndef _GEOMImpl_IHealingOperations_HXX_
3 #define _GEOMImpl_IHealingOperations_HXX_
5 #include "GEOM_IOperations.hxx"
6 #include "GEOM_Engine.hxx"
7 #include "GEOM_Object.hxx"
9 #include <TColStd_HArray1OfExtendedString.hxx>
10 #include <TColStd_HArray1OfInteger.hxx>
14 class GEOMImpl_IHealingOperations : public GEOM_IOperations {
16 GEOMImpl_IHealingOperations(GEOM_Engine* theEngine, int theDocID);
17 ~GEOMImpl_IHealingOperations();
19 // Apply Shape Processing to the selected Object
20 Handle(GEOM_Object) ShapeProcess( Handle(GEOM_Object) theObject,
21 const Handle(TColStd_HArray1OfExtendedString)& theOperations,
22 const Handle(TColStd_HArray1OfExtendedString)& theParams,
23 const Handle(TColStd_HArray1OfExtendedString)& theValues );
25 // Retrieve default Shape Process parameters (from resource file)
26 void GetShapeProcessParameters( list<string>& theOperations,
27 list<string>& theParams,
28 list<string>& theValues );
30 // returns all parameters that are valid for the given operation (Shape Process operator)
31 static bool GetParameters( const string theOperation, list<string>& theParams );
33 Handle(GEOM_Object) SuppressFaces( Handle(GEOM_Object) theObject,
34 const Handle(TColStd_HArray1OfInteger)& theFaces);
36 Handle(GEOM_Object) CloseContour( Handle(GEOM_Object) theObject,
37 const Handle(TColStd_HArray1OfInteger)& theWires,
38 bool isCommonVertex );
40 Handle(GEOM_Object) RemoveIntWires( Handle(GEOM_Object) theObject,
41 const Handle(TColStd_HArray1OfInteger)& theWires);
43 Handle(GEOM_Object) FillHoles( Handle(GEOM_Object) theObject,
44 const Handle(TColStd_HArray1OfInteger)& theWires);
46 Handle(GEOM_Object) Sew( Handle(GEOM_Object) theObject,
47 double theTolerance );
49 Handle(GEOM_Object) DivideEdge( Handle(GEOM_Object) theObject,
54 // this function does not use Function-Driver mechanism, it just computes the free
55 // boundary edges and returns them in the sequence. It is called just for information reasons
56 // and it's not intended for history/undo/redo/etc..
57 bool GetFreeBoundary ( Handle(GEOM_Object) theObject,
58 Handle(TColStd_HSequenceOfTransient)& theOutClosedWires,
59 Handle(TColStd_HSequenceOfTransient)& theOutOpenWires );