Salome HOME
6d557a3abfb27a8aa8b5e9fb5df0c1dc27c3f436
[modules/shaper.git] / src / ConstructionPlugin / ConstructionPlugin_Extrusion.h
1 // File:        ConstructionPlugin_Extrusion.h
2 // Created:     30 May 2014
3 // Author:      Vitaly SMETANNIKOV
4
5 #ifndef ConstructionPlugin_Extrusion_HeaderFile
6 #define ConstructionPlugin_Extrusion_HeaderFile
7
8 #include "ConstructionPlugin.h"
9 #include <ModelAPI_Feature.h>
10
11 /// attribute name of referenced face
12 const std::string EXTRUSION_FACE = "extrusion_select_face";
13
14 /// attribute name of extrusion size
15 const std::string EXTRUSION_SIZE = "extrusion_size";
16
17 /// attribute name of reverce direction
18 const std::string EXTRUSION_REVERCE = "extrusion_reverse";
19
20
21 class ConstructionPlugin_Extrusion: public ModelAPI_Feature
22 {
23 public:
24   /// Returns the kind of a feature
25   CONSTRUCTIONPLUGIN_EXPORT virtual const std::string& getKind() 
26   { static std::string MY_KIND = "Extrusion"; return MY_KIND; }
27
28   /// Returns to which group in the document must be added feature
29   CONSTRUCTIONPLUGIN_EXPORT virtual const std::string& getGroup() 
30   { static std::string MY_GROUP = "Construction";  return MY_GROUP; }
31
32   /// Creates a new part document if needed
33   CONSTRUCTIONPLUGIN_EXPORT virtual void execute();
34
35   /// Request for initialization of data model of the feature: adding all attributes
36   CONSTRUCTIONPLUGIN_EXPORT virtual void initAttributes();
37
38   /// Use plugin manager for features creation
39   ConstructionPlugin_Extrusion();
40 };
41
42 #endif