Salome HOME
Recover feature
[modules/shaper.git] / src / FeaturesPlugin / FeaturesPlugin_Recover.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
2
3 // File:        FeaturesPlugin_Recover.h
4 // Created:     29 Jul 2016
5 // Author:      Natalia ERMOLAEVA
6
7 #ifndef FEATURESPLUGIN_RECOVER_H_
8 #define FEATURESPLUGIN_RECOVER_H_
9
10 #include "FeaturesPlugin.h"
11 #include <ModelAPI_Feature.h>
12 #include <GeomAPI_Shape.h>
13
14 /**\class FeaturesPlugin_Recover
15  * \ingroup Plugins
16  * \brief Feature for display of concealed attributes of some feature.
17  */
18 class FeaturesPlugin_Recover : public ModelAPI_Feature
19 {
20  public:
21   /// Extrusion kind
22   inline static const std::string& ID()
23   {
24     static const std::string MY_GROUP_ID("Recover");
25     return MY_GROUP_ID;
26   }
27   /// Attribute name of base shape.
28   inline static const std::string& BASE_SHAPE_ID()
29   {
30     static const std::string MY_BASE_SHAPE_ID("base_shape");
31     return MY_BASE_SHAPE_ID;
32   }
33
34   /// Attribute name of base shape.
35   inline static const std::string& RECOVERED_ENTITIES()
36   {
37     static const std::string MY_RECOVERED_ENTITIES_ID("recovered_entities");
38     return MY_RECOVERED_ENTITIES_ID;
39   }
40
41   /// Returns the kind of a feature
42   FEATURESPLUGIN_EXPORT virtual const std::string& getKind()
43   {
44     static std::string MY_KIND = FeaturesPlugin_Recover::ID();
45     return MY_KIND;
46   }
47
48   /// Creates a new part document if needed
49   FEATURESPLUGIN_EXPORT virtual void execute();
50
51   /// Request for initialization of data model of the feature: adding all attributes
52   FEATURESPLUGIN_EXPORT virtual void initAttributes();
53
54   /// Use plugin manager for features creation
55   FeaturesPlugin_Recover();
56
57 };
58
59 #endif