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 std::string getKind() {return "Point";}
28 /// Creates a new part document if needed
29 PARTSETPLUGIN_EXPORT virtual void execute();
31 /// Request for initialization of data model of the feature: adding all attributes
32 PARTSETPLUGIN_EXPORT virtual void initAttributes();
34 /// Use plugin manager for features creation
35 PartSetPlugin_Point();