1 // File: PartSetPlugin_Point.h
3 // Author: Mikhail PONIKAROV
5 #ifndef PartSetPlugin_Point_HeaderFile
6 #define PartSetPlugin_Point_HeaderFile
8 #include "PartSetPlugin.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 PartSetPlugin_Point
20 * \brief Feature for creation of the new part in PartSet.
22 class PartSetPlugin_Point: public ModelAPI_Feature
25 /// Returns the kind of a feature
26 PARTSETPLUGIN_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 PARTSETPLUGIN_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 PARTSETPLUGIN_EXPORT virtual void execute();
36 /// Request for initialization of data model of the feature: adding all attributes
37 PARTSETPLUGIN_EXPORT virtual void initAttributes();
39 /// Use plugin manager for features creation
40 PartSetPlugin_Point();