Salome HOME
Fix for the issue #686: now compounds produced by the Boolean operations can be corre...
[modules/shaper.git] / src / Model / Model_ResultPart.h
index cda7bf6cd5f25a290116d6a99ce03f042d353243..c2c70d94081377e47d23c755112085abff0ba983 100644 (file)
@@ -28,6 +28,10 @@ class Model_ResultPart : public ModelAPI_ResultPart
   /// Sets this document as current and if it is not loaded yet, loads it
   MODEL_EXPORT virtual void activate();
 
+  /// disable all feature of the part on disable of the part result
+  MODEL_EXPORT virtual bool setDisabled(std::shared_ptr<ModelAPI_Result> theThis,
+    const bool theFlag);
+
 protected:
   /// makes a result on a temporary feature (an action)
   Model_ResultPart();
@@ -38,7 +42,7 @@ protected:
   /// Returns true if document is activated (loaded into the memory)
   virtual bool isActivated();
 
-  friend class Model_Document;
+  friend class Model_Objects;
 };
 
 #endif