]> SALOME platform Git repositories - modules/shaper.git/blob - src/PartSetPlugin/PartSetPlugin_Point.h
Salome HOME
Merge branch 'master' of newgeom:newgeom
[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 std::string getKind() {return "Point";}
27
28   /// Creates a new part document if needed
29   PARTSETPLUGIN_EXPORT virtual void execute();
30
31   /// Request for initialization of data model of the feature: adding all attributes
32   PARTSETPLUGIN_EXPORT virtual void initAttributes();
33
34   /// Use plugin manager for features creation
35   PartSetPlugin_Point();
36 };
37
38 #endif