Salome HOME
Define guards are corrected according to the code style
[modules/shaper.git] / src / ConstructionPlugin / ConstructionPlugin_Point.h
1 // File:        ConstructionPlugin_Point.h
2 // Created:     3 Apr 2014
3 // Author:      Mikhail PONIKAROV
4
5 #ifndef ConstructionPlugin_Point_H_
6 #define ConstructionPlugin_Point_H_
7
8 #include "ConstructionPlugin.h"
9 #include <ModelAPI_Feature.h>
10
11 /// Point kind
12 const std::string CONSTRUCTION_POINT_KIND("Point");
13
14 /// attribute name for X coordinate
15 const std::string POINT_ATTR_X = "x";
16 /// attribute name for Y coordinate
17 const std::string POINT_ATTR_Y = "y";
18 /// attribute name for Z coordinate
19 const std::string POINT_ATTR_Z = "z";
20
21 /**\class ConstructionPlugin_Point
22  * \ingroup DataModel
23  * \brief Feature for creation of the new part in PartSet.
24  */
25 class ConstructionPlugin_Point: public ModelAPI_Feature
26 {
27 public:
28   /// Returns the kind of a feature
29   CONSTRUCTIONPLUGIN_EXPORT virtual const std::string& getKind() 
30   {static std::string MY_KIND = CONSTRUCTION_POINT_KIND; return MY_KIND;}
31
32   /// Returns to which group in the document must be added feature
33   CONSTRUCTIONPLUGIN_EXPORT virtual const std::string& getGroup() 
34   {static std::string MY_GROUP = "Construction"; return MY_GROUP;}
35
36   /// Creates a new part document if needed
37   CONSTRUCTIONPLUGIN_EXPORT virtual void execute();
38
39   /// Request for initialization of data model of the feature: adding all attributes
40   CONSTRUCTIONPLUGIN_EXPORT virtual void initAttributes();
41
42   /// Use plugin manager for features creation
43   ConstructionPlugin_Point();
44 };
45
46 #endif