Salome HOME
Merge branch 'master' of newgeom:newgeom
[modules/shaper.git] / src / PartSetPlugin / PartSetPlugin_Part.h
index c40f1633dbef112e4456c8a5bd58d8fb974f8f98..eaae463ad2831260dc75a595e9c8a761f645e09c 100644 (file)
@@ -19,7 +19,12 @@ class PartSetPlugin_Part: public ModelAPI_Feature
 {
 public:
   /// Returns the kind of a feature
-  PARTSETPLUGIN_EXPORT virtual std::string getKind() {return "Part";}
+  PARTSETPLUGIN_EXPORT virtual const std::string& getKind() 
+  {static std::string MY_KIND = "Part"; return MY_KIND;}
+
+  /// Returns to which group in the document must be added feature
+  PARTSETPLUGIN_EXPORT virtual const std::string& getGroup() 
+  {static std::string MY_GROUP = "Parts"; return MY_GROUP;}
 
   /// Creates a new part document if needed
   PARTSETPLUGIN_EXPORT virtual void execute();
@@ -27,6 +32,11 @@ public:
   /// Request for initialization of data model of the feature: adding all attributes
   PARTSETPLUGIN_EXPORT virtual void initAttributes();
 
+  PARTSETPLUGIN_EXPORT virtual boost::shared_ptr<ModelAPI_Document> documentToAdd();
+
+  /// Returns true if this feature must be displayed in the history (top level of Part tree)
+  PARTSETPLUGIN_EXPORT virtual bool isInHistory() {return false;}
+
   /// Use plugin manager for features creation
   PartSetPlugin_Part();
 };