X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesPlugin%2FFeaturesPlugin_Recover.h;h=5cd5704844dec52b6b5e087906668056ae68116b;hb=5a5362530345c00af26fc8226f3066f749dde392;hp=de1937a157aca646dfbffb3e1f2a32323728542e;hpb=6e421e939851e0de46554ae45a3ca0e1f67cd91d;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/FeaturesPlugin_Recover.h b/src/FeaturesPlugin/FeaturesPlugin_Recover.h index de1937a15..5cd570484 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Recover.h +++ b/src/FeaturesPlugin/FeaturesPlugin_Recover.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2019 CEA/DEN, EDF R&D +// Copyright (C) 2014-2022 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 @@ -38,6 +38,8 @@ class FeaturesPlugin_Recover : public ModelAPI_Feature FeaturePtr myCurrentBase; /// previous state of persistent flag bool myPersistent; + /// necessity to clean recovered list while changing the type of recover + bool myClearListOnTypeChange; public: /// Extrusion kind inline static const std::string& ID() @@ -59,6 +61,26 @@ class FeaturesPlugin_Recover : public ModelAPI_Feature return MY_RECOVERED_ENTITIES_ID; } + /// Attribute name of the type of recover. + inline static const std::string& METHOD() + { + static const std::string MY_METHOD_ID("method"); + return MY_METHOD_ID; + } + + /// Value of default method, recovering concealed objects only. + inline static const std::string& METHOD_DEFAULT() + { + static const std::string MY_METHOD_ID("default"); + return MY_METHOD_ID; + } + /// Value of method, recovering parent compounds of concealed objects. + inline static const std::string& METHOD_COMPOUND() + { + static const std::string MY_METHOD_ID("compound"); + return MY_METHOD_ID; + } + /// Returns the kind of a feature FEATURESPLUGIN_EXPORT virtual const std::string& getKind() { @@ -66,12 +88,16 @@ class FeaturesPlugin_Recover : public ModelAPI_Feature return MY_KIND; } - /// Creates a new part document if needed + /// Performs the algorithm and stores results it in the data structure. FEATURESPLUGIN_EXPORT virtual void execute(); /// Request for initialization of data model of the feature: adding all attributes FEATURESPLUGIN_EXPORT virtual void initAttributes(); + /// Called on change of any argument-attribute of this object + /// \param theID identifier of changed attribute + FEATURESPLUGIN_EXPORT virtual void attributeChanged(const std::string& theID); + /// Use plugin manager for features creation FeaturesPlugin_Recover();