Salome HOME
Make PyConsole, PyEvent, PyInterp as shared libraries
[modules/shaper.git] / src / PartSetPlugin / PartSetPlugin_Point.h
1 // File:        PartSetPlugin_Point.h
2 // Created:     3 Apr 2014
3 // Author:      Mikhail PONIKAROV
4
5 #ifndef PartSetPlugin_Point_HeaderFile
6 #define PartSetPlugin_Point_HeaderFile
7
8 #include "PartSetPlugin.h"
9 #include <ModelAPI_Feature.h>
10
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";
17
18 /**\class PartSetPlugin_Point
19  * \ingroup DataModel
20  * \brief Feature for creation of the new part in PartSet.
21  */
22 class PartSetPlugin_Point: public ModelAPI_Feature
23 {
24 public:
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;}
28
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;}
32
33   /// Creates a new part document if needed
34   PARTSETPLUGIN_EXPORT virtual void execute();
35
36   /// Request for initialization of data model of the feature: adding all attributes
37   PARTSETPLUGIN_EXPORT virtual void initAttributes();
38
39   /// Use plugin manager for features creation
40   PartSetPlugin_Point();
41 };
42
43 #endif