Salome HOME
Merge branch 'master' of newgeom:newgeom
[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 /**\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   /// Returns the kind of a feature
19   PARTSETPLUGIN_EXPORT virtual const std::string& getKind() 
20   {static std::string MY_KIND = "Remove"; return MY_KIND;}
21
22   /// Returns to which group in the document must be added feature
23   PARTSETPLUGIN_EXPORT virtual const std::string& getGroup() 
24   {static std::string MY_GROUP = "Parts"; return MY_GROUP;}
25
26   /// Request for initialization of data model of the feature: adding all attributes
27   PARTSETPLUGIN_EXPORT virtual void initAttributes() {}
28
29   /// Not normal feature that stored in the tree
30   PARTSETPLUGIN_EXPORT virtual bool isAction() {return true;}
31
32   /// Performs the "remove"
33   PARTSETPLUGIN_EXPORT virtual void execute();
34
35   /// Use plugin manager for features creation
36   PartSetPlugin_Remove() {}
37 };
38
39 #endif