X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGEOMImpl%2FGEOMImpl_IHealingOperations.hxx;h=27c0cc42ed91d68cf75a7354c46a0345d72895db;hb=HEAD;hp=e2af51e10cae0e8e38bdb29a8f4deb2fc25223d2;hpb=0c260c9c89412d7fa89290e575f226608b48469b;p=modules%2Fgeom.git diff --git a/src/GEOMImpl/GEOMImpl_IHealingOperations.hxx b/src/GEOMImpl/GEOMImpl_IHealingOperations.hxx index e2af51e10..27c0cc42e 100644 --- a/src/GEOMImpl/GEOMImpl_IHealingOperations.hxx +++ b/src/GEOMImpl/GEOMImpl_IHealingOperations.hxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -27,14 +27,17 @@ #include "GEOM_Engine.hxx" #include "GEOM_Object.hxx" +#include #include #include #include +class ShHealOper_ModifStats; + class GEOMImpl_IHealingOperations : public GEOM_IOperations { public: - Standard_EXPORT GEOMImpl_IHealingOperations(GEOM_Engine* theEngine, int theDocID); + Standard_EXPORT GEOMImpl_IHealingOperations(GEOM_Engine* theEngine); Standard_EXPORT ~GEOMImpl_IHealingOperations(); // Apply Shape Processing to the selected Object @@ -81,9 +84,9 @@ class GEOMImpl_IHealingOperations : public GEOM_IOperations { double theValue, bool isByParameter ); - Standard_EXPORT Handle(GEOM_Object) DivideEdgeByPoint( Handle(GEOM_Object) theObject, - int theIndex, - Handle(GEOM_Object) thePoint ); + Standard_EXPORT Handle(GEOM_Object) DivideEdgeByPoint( Handle(GEOM_Object) theObject, + int theIndex, + std::list& thePoint ); Standard_EXPORT Handle(GEOM_Object) FuseCollinearEdgesWithinWire (Handle(GEOM_Object) theWire, @@ -100,8 +103,25 @@ class GEOMImpl_IHealingOperations : public GEOM_IOperations { Standard_EXPORT Handle(GEOM_Object) ChangeOrientationCopy( Handle(GEOM_Object) theObject); Standard_EXPORT Handle(GEOM_Object) LimitTolerance( Handle(GEOM_Object) theObject, - double theTolerance ); + double theTolerance, + TopAbs_ShapeEnum theType = TopAbs_SHAPE ); + + // This function doesn't do any healing. + // The only goal is to provide Python dump functionality for + // algorithms entirely implemented in Python. + Standard_EXPORT void FuncToPythonDump( + Handle(GEOM_Object) theObject, + Handle(GEOM_Object) result, + const char* imports, + const char* funcName, + const char* args + ); + + const ShHealOper_ModifStats* GetStatistics() { return myModifStats; } + +private: + ShHealOper_ModifStats* myModifStats; }; #endif