Salome HOME
Merge with version on tag OCC-V2_1_0d
[modules/geom.git] / src / GEOMImpl / GEOMImpl_IHealingOperations.hxx
1
2 #ifndef _GEOMImpl_IHealingOperations_HXX_
3 #define _GEOMImpl_IHealingOperations_HXX_
4
5 #include "GEOM_IOperations.hxx"
6 #include "GEOM_Engine.hxx"
7 #include "GEOM_Object.hxx"
8
9 #include <TColStd_HArray1OfExtendedString.hxx>
10 #include <TColStd_HArray1OfInteger.hxx>
11
12 #include <list>
13
14 class GEOMImpl_IHealingOperations : public GEOM_IOperations {
15  public:
16   GEOMImpl_IHealingOperations(GEOM_Engine* theEngine, int theDocID);
17   ~GEOMImpl_IHealingOperations();
18
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 );
24
25   // Retrieve default Shape Process parameters (from resource file)
26         void GetShapeProcessParameters( list<string>& theOperations,
27                                         list<string>& theParams,
28                                   list<string>& theValues );
29
30   // returns all parameters that are valid for the given operation (Shape Process operator)
31   static bool GetParameters( const string theOperation, list<string>& theParams );                                      
32
33   Handle(GEOM_Object) SuppressFaces( Handle(GEOM_Object) theObject,
34                                      const Handle(TColStd_HArray1OfInteger)& theFaces);
35
36   Handle(GEOM_Object) CloseContour( Handle(GEOM_Object) theObject,
37                                     const Handle(TColStd_HArray1OfInteger)& theWires,
38                                     bool isCommonVertex );
39
40   Handle(GEOM_Object) RemoveIntWires( Handle(GEOM_Object) theObject,
41                                       const Handle(TColStd_HArray1OfInteger)& theWires);
42
43   Handle(GEOM_Object) FillHoles( Handle(GEOM_Object) theObject,
44                                  const Handle(TColStd_HArray1OfInteger)& theWires);
45                                       
46   Handle(GEOM_Object) Sew( Handle(GEOM_Object) theObject,
47                            double theTolerance );
48
49   Handle(GEOM_Object) DivideEdge( Handle(GEOM_Object) theObject,
50                                   int theIndex,  
51                                   double theValue,
52                                   bool isByParameter );
53
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 );
60 };
61
62 #endif