Salome HOME
Initial part document shapes management implementation.
[modules/shaper.git] / src / Model / Model_ResultPart.h
index e88d22aa28caa47d10dc550521524220bd9b4e12..2afb017ee7f7a2869916de6ace0204a800604f4d 100644 (file)
@@ -10,7 +10,7 @@
 #include "Model.h"
 #include <ModelAPI_ResultPart.h>
 
-/**\class ModelAPI_ResultPart
+/**\class Model_ResultPart
  * \ingroup DataModel
  * \brief The Part document, result of a creation of new part feature.
  *
@@ -28,6 +28,13 @@ 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);
+
+  /// Result shape of part document is compound of bodies inside of this part
+  MODEL_EXPORT virtual std::shared_ptr<GeomAPI_Shape> shape();
+
 protected:
   /// makes a result on a temporary feature (an action)
   Model_ResultPart();
@@ -35,7 +42,10 @@ protected:
   /// Sets the data manager of an object (document does), here also attributes are initialized
   virtual void setData(std::shared_ptr<ModelAPI_Data> theData);
 
-  friend class Model_Document;
+  /// Returns true if document is activated (loaded into the memory)
+  virtual bool isActivated();
+
+  friend class Model_Objects;
 };
 
 #endif