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>
11 /// attribute name for X coordinate
12 const std::string POINT_ATTR_X = "x";
13 /// attribute name for Y coordinate
14 const std::string POINT_ATTR_Y = "y";
15 /// attribute name for Z coordinate
16 const std::string POINT_ATTR_Z = "z";
18 /**\class ConstructionPlugin_Point
20 * \brief Feature for creation of the new part in PartSet.
22 class ConstructionPlugin_Point: public ModelAPI_Feature
25 /// Returns the kind of a feature
26 CONSTRUCTIONPLUGIN_EXPORT virtual const std::string& getKind()
27 {static std::string MY_KIND = "Point"; return MY_KIND;}
29 /// Returns to which group in the document must be added feature
30 CONSTRUCTIONPLUGIN_EXPORT virtual const std::string& getGroup()
31 {static std::string MY_GROUP = "Construction"; return MY_GROUP;}
33 /// Creates a new part document if needed
34 CONSTRUCTIONPLUGIN_EXPORT virtual void execute();
36 /// Request for initialization of data model of the feature: adding all attributes
37 CONSTRUCTIONPLUGIN_EXPORT virtual void initAttributes();
39 /// Use plugin manager for features creation
40 ConstructionPlugin_Point();