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