Salome HOME
Sources formated according to the codeing standards
[modules/shaper.git] / src / PartSetPlugin / PartSetPlugin_Remove.h
1 // File:        PartSetPlugin_Remove.h
2 // Created:     20 May 2014
3 // Author:      Mikhail PONIKAROV
4
5 #ifndef PartSetPlugin_Remove_H_
6 #define PartSetPlugin_Remove_H_
7
8 #include "PartSetPlugin.h"
9 #include <ModelAPI_Feature.h>
10
11 /**\class PartSetPlugin_Remove
12  * \ingroup DataModel
13  * \brief Feature for creation of the new part in PartSet.
14  */
15 class PartSetPlugin_Remove : public ModelAPI_Feature
16 {
17  public:
18   /// Remove kind
19   inline static const std::string& ID()
20   {
21     static const std::string MY_REMOVE_KIND("Remove");
22     return MY_REMOVE_KIND;
23   }
24   /// Returns the kind of a feature
25   PARTSETPLUGIN_EXPORT virtual const std::string& getKind()
26   {
27     static std::string MY_KIND = PartSetPlugin_Remove::ID();
28     return MY_KIND;
29   }
30
31   /// Returns to which group in the document must be added feature
32   PARTSETPLUGIN_EXPORT virtual const std::string& getGroup()
33   {
34     static std::string MY_GROUP = "Parts";
35     return MY_GROUP;
36   }
37
38   /// Request for initialization of data model of the feature: adding all attributes
39   PARTSETPLUGIN_EXPORT virtual void initAttributes()
40   {
41   }
42
43   /// Not normal feature that stored in the tree
44   PARTSETPLUGIN_EXPORT virtual bool isAction()
45   {
46     return true;
47   }
48
49   /// Performs the "remove"
50   PARTSETPLUGIN_EXPORT virtual void execute();
51
52   /// Use plugin manager for features creation
53   PartSetPlugin_Remove()
54   {
55   }
56 };
57
58 #endif