Salome HOME
Issue #244 : do not allow to select null objects (coming from other documents) yet
[modules/shaper.git] / src / Model / Model_ResultPart.h
index 4123d69e37f640b37255510fc55c1bd612cc3f5d..e26413c3fb13d0b69c59395070c7bee3cd0b3212 100644 (file)
  */
 class Model_ResultPart : public ModelAPI_ResultPart
 {
-public:
+ public:
   /// Returns the part-document of this result
   MODEL_EXPORT virtual boost::shared_ptr<ModelAPI_Document> partDoc();
   /// Part has no stored feature: this method returns NULL
   MODEL_EXPORT virtual boost::shared_ptr<ModelAPI_Feature> owner();
 
+  /// Sets this document as current and if it is not loaded yet, loads it
+  MODEL_EXPORT virtual void activate();
+
 protected:
   /// makes a result on a temporary feature (an action)
   Model_ResultPart();