1 // File: ConstructionPlugin_Point.h
3 // Author: Mikhail PONIKAROV
5 #ifndef ConstructionPlugin_Point_HeaderFile
6 #define ConstructionPlugin_Point_HeaderFile
8 #include "ConstructionPlugin.h"
9 #include <ModelAPI_Feature.h>
12 const std::string CONSTRUCTION_POINT_KIND("Point");
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";
21 /**\class ConstructionPlugin_Point
23 * \brief Feature for creation of the new part in PartSet.
25 class ConstructionPlugin_Point: public ModelAPI_Feature
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;}
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;}
36 /// Creates a new part document if needed
37 CONSTRUCTIONPLUGIN_EXPORT virtual void execute();
39 /// Request for initialization of data model of the feature: adding all attributes
40 CONSTRUCTIONPLUGIN_EXPORT virtual void initAttributes();
42 /// Use plugin manager for features creation
43 ConstructionPlugin_Point();