Salome HOME
Update SketchBuilder to work on faces with holes (issue #1320)
[modules/shaper.git] / src / ModelAPI / ModelAPI_Object.h
index 3ef14da91a56321ccbbe7bb8f8e88ed5418e7808..0d9c067d61b761fd715ad6fd252a190512bbe086 100644 (file)
@@ -57,6 +57,10 @@ class ModelAPI_Object: public ModelAPI_Entity
   /// Returns the feature is disabled or not.
   virtual bool isDisabled() = 0;
 
+  /// Returns the parameters of color definition in the resources config manager
+  virtual void colorConfigInfo(std::string& theSection, std::string& theName,
+                               std::string& theDefault) {}
+
   /// Called on change of any argument-attribute of this object
   /// \param theID identifier of changed attribute
   MODELAPI_EXPORT virtual void attributeChanged(const std::string& theID);
@@ -77,6 +81,10 @@ class ModelAPI_Object: public ModelAPI_Entity
   MODELAPI_EXPORT virtual void setDisplayed(const bool theDisplay);
 
  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() = 0;
+
   /// Sets the data manager of an object (document does)
   MODELAPI_EXPORT virtual void setData(std::shared_ptr<ModelAPI_Data> theData);