Salome HOME
Implementation of Point feature (without computation of result yet) plus some debug...
[modules/shaper.git] / src / PartSetPlugin / PartSetPlugin_Part.h
1 // File:        PartSetPlugin_Part.h
2 // Created:     27 Mar 2014
3 // Author:      Mikhail PONIKAROV
4
5 #ifndef PartSetPlugin_Part_HeaderFile
6 #define PartSetPlugin_Part_HeaderFile
7
8 #include "PartSetPlugin.h"
9 #include <ModelAPI_Feature.h>
10
11 /// part reference attribute
12 const std::string PART_ATTR_DOC_REF = "PartDocument";
13
14 /**\class PartSetPlugin_Part
15  * \ingroup DataModel
16  * \brief Feature for creation of the new part in PartSet.
17  */
18 class PartSetPlugin_Part: public ModelAPI_Feature
19 {
20 public:
21   /// Returns the kind of a feature
22   PARTSETPLUGIN_EXPORT virtual std::string getKind() {return "Part";}
23
24   /// Creates a new part document if needed
25   PARTSETPLUGIN_EXPORT virtual void execute();
26
27   /// Request for initialization of data model of the feature: adding all attributes
28   PARTSETPLUGIN_EXPORT virtual void initAttributes();
29
30   /// Use plugin manager for features creation
31   PartSetPlugin_Part();
32 };
33
34 #endif