1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
3 // File: FeaturesPlugin_Recover.h
4 // Created: 29 Jul 2016
5 // Author: Natalia ERMOLAEVA
7 #ifndef FEATURESPLUGIN_RECOVER_H_
8 #define FEATURESPLUGIN_RECOVER_H_
10 #include "FeaturesPlugin.h"
11 #include <ModelAPI_Feature.h>
12 #include <GeomAPI_Shape.h>
14 /**\class FeaturesPlugin_Recover
16 * \brief Feature for display of concealed attributes of some feature.
18 class FeaturesPlugin_Recover : public ModelAPI_Feature
22 inline static const std::string& ID()
24 static const std::string MY_GROUP_ID("Recover");
27 /// Attribute name of base shape.
28 inline static const std::string& BASE_SHAPE_ID()
30 static const std::string MY_BASE_SHAPE_ID("base_shape");
31 return MY_BASE_SHAPE_ID;
34 /// Attribute name of base shape.
35 inline static const std::string& RECOVERED_ENTITIES()
37 static const std::string MY_RECOVERED_ENTITIES_ID("recovered_entities");
38 return MY_RECOVERED_ENTITIES_ID;
41 /// Returns the kind of a feature
42 FEATURESPLUGIN_EXPORT virtual const std::string& getKind()
44 static std::string MY_KIND = FeaturesPlugin_Recover::ID();
48 /// Creates a new part document if needed
49 FEATURESPLUGIN_EXPORT virtual void execute();
51 /// Request for initialization of data model of the feature: adding all attributes
52 FEATURESPLUGIN_EXPORT virtual void initAttributes();
54 /// Use plugin manager for features creation
55 FeaturesPlugin_Recover();