1 // File: ConstructionPlugin_Point.h
3 // Author: Mikhail PONIKAROV
5 #ifndef ConstructionPlugin_Point_H_
6 #define ConstructionPlugin_Point_H_
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()
31 static std::string MY_KIND = CONSTRUCTION_POINT_KIND;
35 /// Returns to which group in the document must be added feature
36 CONSTRUCTIONPLUGIN_EXPORT virtual const std::string& getGroup()
38 static std::string MY_GROUP = "Construction";
42 /// Creates a new part document if needed
43 CONSTRUCTIONPLUGIN_EXPORT virtual void execute();
45 /// Request for initialization of data model of the feature: adding all attributes
46 CONSTRUCTIONPLUGIN_EXPORT virtual void initAttributes();
48 /// Construction result is allways recomuted on the fly
49 CONSTRUCTIONPLUGIN_EXPORT virtual bool isPersistentResult() {return false;}
51 /// Use plugin manager for features creation
52 ConstructionPlugin_Point();