X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesPlugin%2FFeaturesPlugin_Recover.h;h=6b2706d9bc7af03d14df0d308d0dbb0d006895c6;hb=f9426a402de748e9d13085856a7cf72a3659135d;hp=e24db88c1d33279a6eb2701fb7846facd1370e5d;hpb=95b5b61c8b3e0ab0de64955952894cd32bc49e06;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/FeaturesPlugin_Recover.h b/src/FeaturesPlugin/FeaturesPlugin_Recover.h index e24db88c1..6b2706d9b 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Recover.h +++ b/src/FeaturesPlugin/FeaturesPlugin_Recover.h @@ -1,8 +1,22 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D --> - -// File: FeaturesPlugin_Recover.h -// Created: 29 Jul 2016 -// Author: Natalia ERMOLAEVA +// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// +// 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 FEATURESPLUGIN_RECOVER_H_ #define FEATURESPLUGIN_RECOVER_H_ @@ -17,24 +31,32 @@ */ class FeaturesPlugin_Recover : public ModelAPI_Feature { + /// List of already registered unconcealed pairs of unconcealed result and feature that caused + /// concealment. If attributes of this feature were changed, this list helps to synchronise + /// the current state with validators. + std::set > myRegistered; + /// The last stored Base to unregister Unconcealed when even attributes are already erased. + FeaturePtr myCurrentBase; + /// previous state of persistent flag + bool myPersistent; public: /// Extrusion kind inline static const std::string& ID() { - static const std::string MY_GROUP_ID("Recover"); - return MY_GROUP_ID; + static const std::string MY_RECOVER_ID("Recover"); + return MY_RECOVER_ID; } - /// Attribute name of base shape. - inline static const std::string& BASE_SHAPE_ID() + /// Attribute name of base feature. + inline static const std::string& BASE_FEATURE() { - static const std::string MY_BASE_SHAPE_ID("base_shape"); - return MY_BASE_SHAPE_ID; + static const std::string MY_BASE_FEATURE("base_feature"); + return MY_BASE_FEATURE; } - /// Attribute name of base shape. + /// Attribute name of recovered results list. inline static const std::string& RECOVERED_ENTITIES() { - static const std::string MY_RECOVERED_ENTITIES_ID("recovered_entities"); + static const std::string MY_RECOVERED_ENTITIES_ID("recovered"); return MY_RECOVERED_ENTITIES_ID; }