Salome HOME
Reverted some changes in salome build/run scripts.
[modules/shaper.git] / src / FeaturesPlugin / FeaturesPlugin_Recover.h
index e24db88c1d33279a6eb2701fb7846facd1370e5d..6b2706d9bc7af03d14df0d308d0dbb0d006895c6 100644 (file)
@@ -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<mailto:webmaster.salome@opencascade.com>
+//
 
 #ifndef FEATURESPLUGIN_RECOVER_H_
 #define FEATURESPLUGIN_RECOVER_H_
  */
 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<std::shared_ptr<ModelAPI_Object> > 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;
   }