X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_ResultPart.h;h=8397a9766969df1b7f1561410ff00dd7ee34717b;hb=ecec337d46d54cb79cbca6233fb93449513603af;hp=af0f385e8289946c1c90c738e0ad6cd3b3545d6b;hpb=8dc74f82810d5f597b78633b457efb0ef4f89f9f;p=modules%2Fshaper.git diff --git a/src/Model/Model_ResultPart.h b/src/Model/Model_ResultPart.h index af0f385e8..8397a9766 100644 --- a/src/Model/Model_ResultPart.h +++ b/src/Model/Model_ResultPart.h @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + // File: ModelAPI_ResultPart.hxx // Created: 07 Jul 2014 // Author: Mikhail PONIKAROV @@ -19,16 +21,22 @@ class Model_ResultPart : public ModelAPI_ResultPart { public: /// Returns the part-document of this result - MODEL_EXPORT virtual boost::shared_ptr partDoc(); + MODEL_EXPORT virtual std::shared_ptr partDoc(); /// Part has no stored feature: this method returns NULL - MODEL_EXPORT virtual boost::shared_ptr owner(); + MODEL_EXPORT virtual std::shared_ptr owner(); + + /// Sets this document as current and if it is not loaded yet, loads it + MODEL_EXPORT virtual void activate(); - protected: +protected: /// makes a result on a temporary feature (an action) Model_ResultPart(); /// Sets the data manager of an object (document does), here also attributes are initialized - virtual void setData(boost::shared_ptr theData); + virtual void setData(std::shared_ptr theData); + + /// Returns true if document is activated (loaded into the memory) + virtual bool isActivated(); friend class Model_Document; };