1 // File: PartSetPlugin_Remove.h
2 // Created: 20 May 2014
3 // Author: Mikhail PONIKAROV
5 #ifndef PartSetPlugin_Remove_HeaderFile
6 #define PartSetPlugin_Remove_HeaderFile
8 #include "PartSetPlugin.h"
9 #include <ModelAPI_Feature.h>
11 /**\class PartSetPlugin_Remove
13 * \brief Feature for creation of the new part in PartSet.
15 class PartSetPlugin_Remove: public ModelAPI_Feature
19 inline static const std::string& ID()
21 static const std::string MY_REMOVE_KIND("Remove");
22 return MY_REMOVE_KIND;
24 /// Returns the kind of a feature
25 PARTSETPLUGIN_EXPORT virtual const std::string& getKind()
26 {static std::string MY_KIND = PartSetPlugin_Remove::ID(); return MY_KIND;}
28 /// Returns to which group in the document must be added feature
29 PARTSETPLUGIN_EXPORT virtual const std::string& getGroup()
30 {static std::string MY_GROUP = "Parts"; return MY_GROUP;}
32 /// Request for initialization of data model of the feature: adding all attributes
33 PARTSETPLUGIN_EXPORT virtual void initAttributes() {}
35 /// Not normal feature that stored in the tree
36 PARTSETPLUGIN_EXPORT virtual bool isAction() {return true;}
38 /// Performs the "remove"
39 PARTSETPLUGIN_EXPORT virtual void execute();
41 /// Use plugin manager for features creation
42 PartSetPlugin_Remove() {}