X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FShHealOper%2FShHealOper_Tool.hxx;h=665085f583ecf994d87a0f692d18f0957be5605a;hb=2736f682fe0d63fbaf9dff49c46b4fa6c23d72ce;hp=502a60f1a1c210cdba4ff8baac358b42b0421b38;hpb=392885c1a8d50369708bbe5e6b44033ed8b8ba51;p=modules%2Fgeom.git diff --git a/src/ShHealOper/ShHealOper_Tool.hxx b/src/ShHealOper/ShHealOper_Tool.hxx index 502a60f1a..665085f58 100644 --- a/src/ShHealOper/ShHealOper_Tool.hxx +++ b/src/ShHealOper/ShHealOper_Tool.hxx @@ -1,24 +1,25 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2016 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 +// 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. +// 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. +// 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 +// 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 +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // + // File: ShHealOper_Tool.hxx // Created: 26.04.04 11:36:04 // Author: Galina KULIKOVA @@ -26,10 +27,11 @@ #ifndef ShHealOper_Tool_HeaderFile #define ShHealOper_Tool_HeaderFile -#include #include #include +#include "ShHealOper_ModifStats.hxx" + /// Class ShHealOper_Tool // //enumeration for definition of the status of the error if operation failed @@ -51,7 +53,7 @@ class ShHealOper_Tool // Constructor initialized by shape from which faces will be removed. Standard_EXPORT virtual void Init(const TopoDS_Shape& theShape); - //Method for initalization by whole shape. + //Method for initialization by whole shape. inline const TopoDS_Shape& GetResultShape() const { @@ -68,12 +70,12 @@ class ShHealOper_Tool } //Returns modified shape obtained after operation from initial shape. - inline Standard_Boolean IsDone() const + inline Standard_Boolean IsDone() const { return myDone; } //Returns status of the operation. - + inline void SetContext(Handle(ShapeBuild_ReShape)& theContext) { myContext = theContext; @@ -90,17 +92,31 @@ class ShHealOper_Tool { return myErrorStatus; } - protected: + + ShHealOper_ModifStats& GetStatistics() + { + return myStatistics; + } + + const ShHealOper_ModifStats& GetStatistics() const + { + return myStatistics; + } + // Returns statistics of what is done + +protected: // ---------- PROTECTED FIELDS ---------- Handle(ShapeBuild_ReShape) myContext; - TopoDS_Shape myInitShape; - TopoDS_Shape myResultShape; - Standard_Boolean myDone; - ShHealOper_Error myErrorStatus; - public: -// Declaration of CASCADE RTTI -//DEFINE_STANDARD_RTTI (ShHealOper_Tool) + TopoDS_Shape myInitShape; + TopoDS_Shape myResultShape; + Standard_Boolean myDone; + ShHealOper_Error myErrorStatus; + ShHealOper_ModifStats myStatistics; + +public: + // Declaration of CASCADE RTTI + //DEFINE_STANDARD_RTTI (ShHealOper_Tool) }; // Definition of HANDLE object using Standard_DefineHandle.hxx