]> SALOME platform Git repositories - modules/geom.git/blobdiff - src/GEOMImpl/GEOMImpl_IHealingOperations.hxx
Salome HOME
22763: [EDF] Shape processing
[modules/geom.git] / src / GEOMImpl / GEOMImpl_IHealingOperations.hxx
index 3203ea99ae926bcdc26aa9dc66006ee597c40a0a..df2952a9a679709d473a993d2b08c0223235b4bc 100644 (file)
@@ -1,3 +1,24 @@
+// Copyright (C) 2007-2014  CEA/DEN, EDF R&D, OPEN CASCADE
+//
+// Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
 
 #ifndef _GEOMImpl_IHealingOperations_HXX_
 #define _GEOMImpl_IHealingOperations_HXX_
 
 #include <list>
 
+class ShHealOper_ModifStats;
+
 class GEOMImpl_IHealingOperations : public GEOM_IOperations {
  public:
-  GEOMImpl_IHealingOperations(GEOM_Engine* theEngine, int theDocID);
-  ~GEOMImpl_IHealingOperations();
+  Standard_EXPORT GEOMImpl_IHealingOperations(GEOM_Engine* theEngine, int theDocID);
+  Standard_EXPORT ~GEOMImpl_IHealingOperations();
 
   // Apply Shape Processing to the selected Object
-  Handle(GEOM_Object) ShapeProcess( Handle(GEOM_Object) theObject,
-                                    const Handle(TColStd_HArray1OfExtendedString)& theOperations,
-                                    const Handle(TColStd_HArray1OfExtendedString)& theParams,
-                                    const Handle(TColStd_HArray1OfExtendedString)& theValues );
+  Standard_EXPORT Handle(GEOM_Object) ShapeProcess( Handle(GEOM_Object) theObject,
+                            const Handle(TColStd_HArray1OfExtendedString)& theOperations,
+                            const Handle(TColStd_HArray1OfExtendedString)& theParams,
+                            const Handle(TColStd_HArray1OfExtendedString)& theValues );
 
   // Retrieve default Shape Process parameters (from resource file)
-  void GetShapeProcessParameters( list<string>& theOperations,
-                                  list<string>& theParams,
-                                  list<string>& theValues );
+  Standard_EXPORT void GetShapeProcessParameters( std::list<std::string>& theOperations,
+                                                  std::list<std::string>& theParams,
+                                                  std::list<std::string>& theValues );
 
   // Retrieve default Shape Process parameters for given operator
-  bool GetOperatorParameters( const string theOperation, 
-                              list<string>& theParams,
-                              list<string>& theValues );
+  Standard_EXPORT bool GetOperatorParameters( const std::string&      theOperation,
+                                              std::list<std::string>& theParams,
+                                              std::list<std::string>& theValues );
 
   // returns all parameters that are valid for the given operation (Shape Process operator)
-  static bool GetParameters( const string theOperation, list<string>& theParams );                                      
+  Standard_EXPORT static bool GetParameters( const std::string theOperation,
+                                             std::list<std::string>& theParams );
 
-  Handle(GEOM_Object) SuppressFaces( Handle(GEOM_Object) theObject,
+  Standard_EXPORT Handle(GEOM_Object) SuppressFaces( Handle(GEOM_Object) theObject,
                                      const Handle(TColStd_HArray1OfInteger)& theFaces);
 
-  Handle(GEOM_Object) CloseContour( Handle(GEOM_Object) theObject,
+  Standard_EXPORT Handle(GEOM_Object) CloseContour( Handle(GEOM_Object) theObject,
                                     const Handle(TColStd_HArray1OfInteger)& theWires,
                                     bool isCommonVertex );
 
-  Handle(GEOM_Object) RemoveIntWires( Handle(GEOM_Object) theObject,
+  Standard_EXPORT Handle(GEOM_Object) RemoveIntWires( Handle(GEOM_Object) theObject,
                                       const Handle(TColStd_HArray1OfInteger)& theWires);
 
-  Handle(GEOM_Object) FillHoles( Handle(GEOM_Object) theObject,
+  Standard_EXPORT Handle(GEOM_Object) FillHoles( Handle(GEOM_Object) theObject,
                                  const Handle(TColStd_HArray1OfInteger)& theWires);
-                                      
-  Handle(GEOM_Object) Sew( Handle(GEOM_Object) theObject,
-                           double theTolerance );
 
-  Handle(GEOM_Object) DivideEdge( Handle(GEOM_Object) theObject,
-                                  int theIndex,  
-                                  double theValue,
-                                  bool isByParameter );
+  Standard_EXPORT Handle(GEOM_Object) Sew( std::list<Handle(GEOM_Object)> & theObject,
+                                           double                           theTolerance,
+                                           bool                             isAllowNonManifold);
+
+  Standard_EXPORT Handle(GEOM_Object) RemoveInternalFaces (std::list< Handle(GEOM_Object)> & theSolids);
+
+  Standard_EXPORT Handle(GEOM_Object) DivideEdge( Handle(GEOM_Object) theObject,
+                                                  int                 theIndex,
+                                                  double              theValue,
+                                                  bool                isByParameter );
+
+  Standard_EXPORT Handle(GEOM_Object) DivideEdgeByPoint( Handle(GEOM_Object)             theObject,
+                                                         int                             theIndex,
+                                                         std::list<Handle(GEOM_Object)>& thePoint );
+
+  Standard_EXPORT Handle(GEOM_Object) FuseCollinearEdgesWithinWire
+                                     (Handle(GEOM_Object) theWire,
+                                      std::list<Handle(GEOM_Object)> theVertices);
 
   // this function does not use Function-Driver mechanism, it just computes the free
   // boundary edges and returns them in the sequence.  It is called just for information reasons
   // and it's not intended for history/undo/redo/etc..
-  bool GetFreeBoundary ( Handle(GEOM_Object) theObject, 
-                         Handle(TColStd_HSequenceOfTransient)& theOutClosedWires, 
-                         Handle(TColStd_HSequenceOfTransient)& theOutOpenWires );
+  Standard_EXPORT bool GetFreeBoundary ( Handle(TColStd_HSequenceOfTransient)& theObjects,
+                                         Handle(TColStd_HSequenceOfTransient)& theOutClosedWires,
+                                         Handle(TColStd_HSequenceOfTransient)& theOutOpenWires );
+
+  Standard_EXPORT Handle(GEOM_Object) ChangeOrientation( Handle(GEOM_Object) theObject);
+  Standard_EXPORT Handle(GEOM_Object) ChangeOrientationCopy( Handle(GEOM_Object) theObject);
+
+  Standard_EXPORT Handle(GEOM_Object) LimitTolerance( Handle(GEOM_Object) theObject,
+                                                      double theTolerance );
+
+  const ShHealOper_ModifStats* GetStatistics() { return myModifStats; }
+
+private:
+
+  ShHealOper_ModifStats* myModifStats;
 };
 
 #endif