Salome HOME
Merge branch 'master' of newgeom:newgeom
[modules/shaper.git] / src / ConstructionPlugin / ConstructionPlugin_Point.h
index a0dda28dd782103e9e37f42c4a77b0b3f6d47979..4e62d79ae32ba190e60128af6c0012975173c48e 100644 (file)
@@ -2,8 +2,8 @@
 // Created:     3 Apr 2014
 // Author:      Mikhail PONIKAROV
 
-#ifndef ConstructionPlugin_Point_HeaderFile
-#define ConstructionPlugin_Point_HeaderFile
+#ifndef ConstructionPlugin_Point_H_
+#define ConstructionPlugin_Point_H_
 
 #include "ConstructionPlugin.h"
 #include <ModelAPI_Feature.h>
@@ -22,16 +22,22 @@ const std::string POINT_ATTR_Z = "z";
  * \ingroup DataModel
  * \brief Feature for creation of the new part in PartSet.
  */
-class ConstructionPlugin_Point: public ModelAPI_Feature
+class ConstructionPlugin_Point : public ModelAPI_Feature
 {
-public:
+ public:
   /// Returns the kind of a feature
-  CONSTRUCTIONPLUGIN_EXPORT virtual const std::string& getKind() 
-  {static std::string MY_KIND = CONSTRUCTION_POINT_KIND; return MY_KIND;}
+  CONSTRUCTIONPLUGIN_EXPORT virtual const std::string& getKind()
+  {
+    static std::string MY_KIND = CONSTRUCTION_POINT_KIND;
+    return MY_KIND;
+  }
 
   /// Returns to which group in the document must be added feature
-  CONSTRUCTIONPLUGIN_EXPORT virtual const std::string& getGroup() 
-  {static std::string MY_GROUP = "Construction"; return MY_GROUP;}
+  CONSTRUCTIONPLUGIN_EXPORT virtual const std::string& getGroup()
+  {
+    static std::string MY_GROUP = "Construction";
+    return MY_GROUP;
+  }
 
   /// Creates a new part document if needed
   CONSTRUCTIONPLUGIN_EXPORT virtual void execute();
@@ -39,6 +45,9 @@ public:
   /// Request for initialization of data model of the feature: adding all attributes
   CONSTRUCTIONPLUGIN_EXPORT virtual void initAttributes();
 
+  /// Construction result is allways recomuted on the fly
+  CONSTRUCTIONPLUGIN_EXPORT virtual bool isPersistentResult() {return false;}
+
   /// Use plugin manager for features creation
   ConstructionPlugin_Point();
 };