X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FNETGENPlugin%2FNETGENPlugin_NETGEN_2D_ONLY.hxx;h=73a04d3f92854ba6e14242db7b5187ec3ad896cd;hb=2d646f5c7d5ad52f0a47ea87c18d9ce74273599b;hp=f4ff38f4fa675bc9d30fd00a9cc540d3ccc2467f;hpb=b8fc64c6d71bf196b76b855ca89dd86267bd7478;p=plugins%2Fnetgenplugin.git diff --git a/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.hxx b/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.hxx index f4ff38f..73a04d3 100644 --- a/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.hxx +++ b/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.hxx @@ -1,9 +1,9 @@ -// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2023 CEA/DEN, EDF R&D, OPEN CASCADE // // 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. +// 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 @@ -42,7 +42,7 @@ class NETGENPlugin_Hypothesis_2D; class NETGENPlugin_NETGEN_2D_ONLY: public SMESH_2D_Algo { public: - NETGENPlugin_NETGEN_2D_ONLY(int hypId, int studyId, SMESH_Gen* gen); + NETGENPlugin_NETGEN_2D_ONLY(int hypId, SMESH_Gen* gen); virtual ~NETGENPlugin_NETGEN_2D_ONLY(); virtual bool CheckHypothesis(SMESH_Mesh& aMesh, @@ -52,9 +52,9 @@ public: virtual bool Compute(SMESH_Mesh& aMesh, const TopoDS_Shape& aShape); -#ifdef WITH_SMESH_CANCEL_COMPUTE virtual void CancelCompute(); -#endif + + virtual double GetProgress() const; virtual bool Evaluate(SMESH_Mesh& aMesh, const TopoDS_Shape& aShape, MapShapeNbElems& aResMap); @@ -64,6 +64,8 @@ protected: const StdMeshers_LengthFromEdges* _hypLengthFromEdges; const SMESHDS_Hypothesis* _hypQuadranglePreference; const NETGENPlugin_Hypothesis_2D* _hypParameters; + + double _progressByTic; }; #endif