Salome HOME
Merge branch 'Dev_1.1.0' of newgeom:newgeom.git into Dev_1.1.0
[modules/shaper.git] / src / ParametersPlugin / ParametersPlugin_Parameter.h
index e7574fd2a758d943fcafbcbabfa833de9c5545f5..c36d7764fa3e5d1059cf4bac2168b0ff4af43bb8 100644 (file)
 #include "ParametersPlugin.h"
 #include <ModelAPI_Feature.h>
 
+class ParametersPlugin_PyInterp;
+
 class ParametersPlugin_Parameter : public ModelAPI_Feature
 {
  public:
+  virtual ~ParametersPlugin_Parameter();
+
   /// Extrusion kind
   inline static const std::string& ID()
   {
@@ -47,8 +51,18 @@ class ParametersPlugin_Parameter : public ModelAPI_Feature
   /// Request for initialization of data model of the feature: adding all attributes
   PARAMETERSPLUGIN_EXPORT virtual void initAttributes();
 
+  PARAMETERSPLUGIN_EXPORT virtual bool isInHistory(); //false
+
+  PARAMETERSPLUGIN_EXPORT virtual void attributeChanged(const std::string& theID);
+
   /// Use plugin manager for features creation
   ParametersPlugin_Parameter();
+
+ protected:
+  double evaluate(const std::string& theExpression, std::string& theError);
+
+ private:
+  ParametersPlugin_PyInterp* myInterp;
 };
 
 #endif