Salome HOME
refs #80 - Sketch base GUI: create/draw point, circle and arc
[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 /// Extrusion kind
12 const std::string CONSTRUCTION_EXTRUSION_KIND("Extrusion");
13
14 /// attribute name of referenced face
15 const std::string EXTRUSION_FACE = "extrusion_face";
16
17 /// attribute name of extrusion size
18 const std::string EXTRUSION_SIZE = "extrusion_size";
19
20 /// attribute name of reverce direction
21 const std::string EXTRUSION_REVERSE = "extrusion_reverse";
22
23
24 class ConstructionPlugin_Extrusion: public ModelAPI_Feature
25 {
26 public:
27   /// Returns the kind of a feature
28   CONSTRUCTIONPLUGIN_EXPORT virtual const std::string& getKind() 
29   { static std::string MY_KIND = CONSTRUCTION_EXTRUSION_KIND; return MY_KIND; }
30
31   /// Returns to which group in the document must be added feature
32   CONSTRUCTIONPLUGIN_EXPORT virtual const std::string& getGroup() 
33   { static std::string MY_GROUP = "Construction";  return MY_GROUP; }
34
35   /// Creates a new part document if needed
36   CONSTRUCTIONPLUGIN_EXPORT virtual void execute();
37
38   /// Request for initialization of data model of the feature: adding all attributes
39   CONSTRUCTIONPLUGIN_EXPORT virtual void initAttributes();
40
41   /// Use plugin manager for features creation
42   ConstructionPlugin_Extrusion();
43 };
44
45 #endif