Salome HOME
Merge branch 'master' of newgeom:newgeom.git
[modules/shaper.git] / src / FeaturesPlugin / FeaturesPlugin_Group.h
1 // File:        FeaturesPlugin_Group.h
2 // Created:     08 Oct 2014
3 // Author:      Sergey BELASH
4
5 #ifndef FEATURESPLUGIN_GROUP_H_
6 #define FEATURESPLUGIN_GROUP_H_
7
8 #include "FeaturesPlugin.h"
9 #include <ModelAPI_Feature.h>
10 #include <GeomAPI_Shape.h>
11
12 class FeaturesPlugin_Group : public ModelAPI_Feature
13 {
14  public:
15   /// Extrusion kind
16   inline static const std::string& ID()
17   {
18     static const std::string MY_GROUP_ID("Group");
19     return MY_GROUP_ID;
20   }
21   /// attribute name of group type
22   inline static const std::string& NAME_ID()
23   {
24     static const std::string MY_GROUP_NAME_ID("group_name");
25     return MY_GROUP_NAME_ID;
26   }
27   /// attribute name of group type
28   inline static const std::string& TYPE_ID()
29   {
30     static const std::string MY_GROUP_TYPE_ID("group_type");
31     return MY_GROUP_TYPE_ID;
32   }
33   /// attribute name of selected entities list
34   inline static const std::string& LIST_ID()
35   {
36     static const std::string MY_GROUP_LIST_ID("group_list");
37     return MY_GROUP_LIST_ID;
38   }
39
40   /// Returns the kind of a feature
41   FEATURESPLUGIN_EXPORT virtual const std::string& getKind()
42   {
43     static std::string MY_KIND = FeaturesPlugin_Group::ID();
44     return MY_KIND;
45   }
46
47   /// Creates a new part document if needed
48   FEATURESPLUGIN_EXPORT virtual void execute();
49
50   /// Request for initialization of data model of the feature: adding all attributes
51   FEATURESPLUGIN_EXPORT virtual void initAttributes();
52
53   /// Use plugin manager for features creation
54   FeaturesPlugin_Group();
55
56 };
57
58 #endif