Salome HOME
Constriction type for all sketch entities
[modules/shaper.git] / src / ModelAPI / ModelAPI_Feature.h
index 183077f4fff6e55b47067a7430f0f83b4226ab38..e5701200fedbc8755f1c58c1f104aca8ffe4d825 100644 (file)
@@ -49,12 +49,14 @@ class ModelAPI_Feature : public ModelAPI_Object
     return group();
   }
 
-  /// Request for initialization of data model of the feature: adding all attributes
-  virtual void initAttributes() = 0;
-
   /// Computes or recomputes the results
   virtual void execute() = 0;
 
+  /// Computes the attribute value on the base of other attributes if the value can be computed
+  /// \param theAttributeId an attribute index to be computed
+  /// \return a boolean value about it is computed
+  virtual bool compute(const std::string& theAttributeId) { return false; };
+
   /// Registers error during the execution, causes the ExecutionFailed state
   virtual void setError(const std::string& theError) {
     data()->setError(theError);