1 // File: FeaturesPlugin_Extrusion.h
2 // Created: 30 May 2014
3 // Author: Vitaly SMETANNIKOV
5 #ifndef FeaturesPlugin_Extrusion_HeaderFile
6 #define FeaturesPlugin_Extrusion_HeaderFile
8 #include "FeaturesPlugin.h"
9 #include <ModelAPI_Feature.h>
12 const std::string FEATURES_EXTRUSION_KIND("Extrusion");
14 /// attribute name of referenced face
15 const std::string EXTRUSION_FACE = "extrusion_face";
17 /// attribute name of extrusion size
18 const std::string EXTRUSION_SIZE = "extrusion_size";
20 /// attribute name of reverse direction
21 const std::string EXTRUSION_REVERSE = "extrusion_reverse";
24 class FeaturesPlugin_Extrusion: public ModelAPI_Feature
27 /// Returns the kind of a feature
28 FEATURESPLUGIN_EXPORT virtual const std::string& getKind()
29 { static std::string MY_KIND = FEATURES_EXTRUSION_KIND; return MY_KIND; }
31 /// Returns to which group in the document must be added feature
32 FEATURESPLUGIN_EXPORT virtual const std::string& getGroup()
33 { static std::string MY_GROUP = "Construction"; return MY_GROUP; }
35 /// Creates a new part document if needed
36 FEATURESPLUGIN_EXPORT virtual void execute();
38 /// Request for initialization of data model of the feature: adding all attributes
39 FEATURESPLUGIN_EXPORT virtual void initAttributes();
41 /// Use plugin manager for features creation
42 FeaturesPlugin_Extrusion();