Salome HOME
Explicit initialization of myDisabled and myConcealed fields of base objects (to...
[modules/shaper.git] / src / ModelAPI / ModelAPI_Feature.h
index aed22e183c7df08f3ace228016203629588fd89b..2508e6a2ea9f726e3d789a208c2d4e5b15c257e6 100644 (file)
@@ -195,7 +195,13 @@ class ModelAPI_Feature : public ModelAPI_Object
   {
     return data()->attribute(theID);
   }
- // -----------------------------------------------------------------------------------------------
+  protected:
+  /// This method is called just after creation of the object: it must initialize
+  /// all fields, normally initialized in the constructor
+  MODELAPI_EXPORT virtual void init();
+
+  friend class Model_Document;
+  friend class Model_Objects;
 };
 
 //! Pointer on feature object