Salome HOME
Join modifications from BR_Dev_For_4_0 tag V4_1_1.
[modules/geom.git] / src / GEOMImpl / GEOMImpl_IHealingOperations.hxx
1 // Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
3 // 
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.
8 // 
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.
13 //
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
17 //
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 //
20
21 using namespace std;
22
23 #ifndef _GEOMImpl_IHealingOperations_HXX_
24 #define _GEOMImpl_IHealingOperations_HXX_
25
26 #include "GEOM_IOperations.hxx"
27 #include "GEOM_Engine.hxx"
28 #include "GEOM_Object.hxx"
29
30 #include <TColStd_HArray1OfExtendedString.hxx>
31 #include <TColStd_HArray1OfInteger.hxx>
32
33 #include <list>
34
35 class GEOMImpl_IHealingOperations : public GEOM_IOperations {
36  public:
37   Standard_EXPORT GEOMImpl_IHealingOperations(GEOM_Engine* theEngine, int theDocID);
38   Standard_EXPORT ~GEOMImpl_IHealingOperations();
39
40   // Apply Shape Processing to the selected Object
41   Standard_EXPORT Handle(GEOM_Object) ShapeProcess( Handle(GEOM_Object) theObject,
42                                     const Handle(TColStd_HArray1OfExtendedString)& theOperations,
43                                     const Handle(TColStd_HArray1OfExtendedString)& theParams,
44                                     const Handle(TColStd_HArray1OfExtendedString)& theValues );
45
46   // Retrieve default Shape Process parameters (from resource file)
47   Standard_EXPORT void GetShapeProcessParameters( list<string>& theOperations,
48                                   list<string>& theParams,
49                                   list<string>& theValues );
50
51   // Retrieve default Shape Process parameters for given operator
52   Standard_EXPORT bool GetOperatorParameters( const string theOperation, 
53                               list<string>& theParams,
54                               list<string>& theValues );
55
56   // returns all parameters that are valid for the given operation (Shape Process operator)
57   Standard_EXPORT static bool GetParameters( const string theOperation, list<string>& theParams );                                      
58
59   Standard_EXPORT Handle(GEOM_Object) SuppressFaces( Handle(GEOM_Object) theObject,
60                                      const Handle(TColStd_HArray1OfInteger)& theFaces);
61
62   Standard_EXPORT Handle(GEOM_Object) CloseContour( Handle(GEOM_Object) theObject,
63                                     const Handle(TColStd_HArray1OfInteger)& theWires,
64                                     bool isCommonVertex );
65
66   Standard_EXPORT Handle(GEOM_Object) RemoveIntWires( Handle(GEOM_Object) theObject,
67                                       const Handle(TColStd_HArray1OfInteger)& theWires);
68
69   Standard_EXPORT Handle(GEOM_Object) FillHoles( Handle(GEOM_Object) theObject,
70                                  const Handle(TColStd_HArray1OfInteger)& theWires);
71                                       
72   Standard_EXPORT Handle(GEOM_Object) Sew( Handle(GEOM_Object) theObject,
73                            double theTolerance );
74
75   Standard_EXPORT Handle(GEOM_Object) DivideEdge( Handle(GEOM_Object) theObject,
76                                   int theIndex,  
77                                   double theValue,
78                                   bool isByParameter );
79
80   // this function does not use Function-Driver mechanism, it just computes the free
81   // boundary edges and returns them in the sequence.  It is called just for information reasons
82   // and it's not intended for history/undo/redo/etc..
83   Standard_EXPORT bool GetFreeBoundary ( Handle(GEOM_Object) theObject, 
84                          Handle(TColStd_HSequenceOfTransient)& theOutClosedWires, 
85                          Handle(TColStd_HSequenceOfTransient)& theOutOpenWires );
86
87   Standard_EXPORT Handle(GEOM_Object) ChangeOrientation( Handle(GEOM_Object) theObject);
88   Standard_EXPORT Handle(GEOM_Object) ChangeOrientationCopy( Handle(GEOM_Object) theObject);
89
90 };
91
92 #endif