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
21 #ifndef _GEOMImpl_IHealingOperations_HXX_
22 #define _GEOMImpl_IHealingOperations_HXX_
24 #include "GEOM_IOperations.hxx"
25 #include "GEOM_Engine.hxx"
26 #include "GEOM_Object.hxx"
28 #include <TColStd_HArray1OfExtendedString.hxx>
29 #include <TColStd_HArray1OfInteger.hxx>
33 class GEOMImpl_IHealingOperations : public GEOM_IOperations {
35 Standard_EXPORT GEOMImpl_IHealingOperations(GEOM_Engine* theEngine, int theDocID);
36 Standard_EXPORT ~GEOMImpl_IHealingOperations();
38 // Apply Shape Processing to the selected Object
39 Standard_EXPORT Handle(GEOM_Object) ShapeProcess( Handle(GEOM_Object) theObject,
40 const Handle(TColStd_HArray1OfExtendedString)& theOperations,
41 const Handle(TColStd_HArray1OfExtendedString)& theParams,
42 const Handle(TColStd_HArray1OfExtendedString)& theValues );
44 // Retrieve default Shape Process parameters (from resource file)
45 Standard_EXPORT void GetShapeProcessParameters( list<string>& theOperations,
46 list<string>& theParams,
47 list<string>& theValues );
49 // Retrieve default Shape Process parameters for given operator
50 Standard_EXPORT bool GetOperatorParameters( const string theOperation,
51 list<string>& theParams,
52 list<string>& theValues );
54 // returns all parameters that are valid for the given operation (Shape Process operator)
55 Standard_EXPORT static bool GetParameters( const string theOperation, list<string>& theParams );
57 Standard_EXPORT Handle(GEOM_Object) SuppressFaces( Handle(GEOM_Object) theObject,
58 const Handle(TColStd_HArray1OfInteger)& theFaces);
60 Standard_EXPORT Handle(GEOM_Object) CloseContour( Handle(GEOM_Object) theObject,
61 const Handle(TColStd_HArray1OfInteger)& theWires,
62 bool isCommonVertex );
64 Standard_EXPORT Handle(GEOM_Object) RemoveIntWires( Handle(GEOM_Object) theObject,
65 const Handle(TColStd_HArray1OfInteger)& theWires);
67 Standard_EXPORT Handle(GEOM_Object) FillHoles( Handle(GEOM_Object) theObject,
68 const Handle(TColStd_HArray1OfInteger)& theWires);
70 Standard_EXPORT Handle(GEOM_Object) Sew( Handle(GEOM_Object) theObject,
71 double theTolerance );
73 Standard_EXPORT Handle(GEOM_Object) DivideEdge( Handle(GEOM_Object) theObject,
78 // this function does not use Function-Driver mechanism, it just computes the free
79 // boundary edges and returns them in the sequence. It is called just for information reasons
80 // and it's not intended for history/undo/redo/etc..
81 Standard_EXPORT bool GetFreeBoundary ( Handle(GEOM_Object) theObject,
82 Handle(TColStd_HSequenceOfTransient)& theOutClosedWires,
83 Handle(TColStd_HSequenceOfTransient)& theOutOpenWires );
85 Standard_EXPORT Handle(GEOM_Object) ChangeOrientation( Handle(GEOM_Object) theObject);
86 Standard_EXPORT Handle(GEOM_Object) ChangeOrientationCopy( Handle(GEOM_Object) theObject);