Salome HOME
It replaces direct names of construction and partset features to the specific kind.
[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_HeaderFile
6 #define PartSetPlugin_Remove_HeaderFile
7
8 #include "PartSetPlugin.h"
9 #include <ModelAPI_Feature.h>
10
11 /// Extrusion kind
12 const std::string PARTSET_REMOVE_KIND("Remove");
13
14 /**\class PartSetPlugin_Remove
15  * \ingroup DataModel
16  * \brief Feature for creation of the new part in PartSet.
17  */
18 class PartSetPlugin_Remove: public ModelAPI_Feature
19 {
20 public:
21   /// Returns the kind of a feature
22   PARTSETPLUGIN_EXPORT virtual const std::string& getKind() 
23   {static std::string MY_KIND = PARTSET_REMOVE_KIND; return MY_KIND;}
24
25   /// Returns to which group in the document must be added feature
26   PARTSETPLUGIN_EXPORT virtual const std::string& getGroup() 
27   {static std::string MY_GROUP = "Parts"; return MY_GROUP;}
28
29   /// Request for initialization of data model of the feature: adding all attributes
30   PARTSETPLUGIN_EXPORT virtual void initAttributes() {}
31
32   /// Not normal feature that stored in the tree
33   PARTSETPLUGIN_EXPORT virtual bool isAction() {return true;}
34
35   /// Performs the "remove"
36   PARTSETPLUGIN_EXPORT virtual void execute();
37
38   /// Use plugin manager for features creation
39   PartSetPlugin_Remove() {}
40 };
41
42 #endif