X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_Objects.h;h=517311b1edd765c0ae73ccfda572204cab7bbf41;hb=45400ecc7d183dd2d2edb875bdb36f8fc031bc2c;hp=9f947c776f62d0f392f076e63198c4d11736242b;hpb=83e85cedfb936e7755500322e1afa638d318a863;p=modules%2Fshaper.git diff --git a/src/Model/Model_Objects.h b/src/Model/Model_Objects.h index 9f947c776..517311b1e 100644 --- a/src/Model/Model_Objects.h +++ b/src/Model/Model_Objects.h @@ -95,6 +95,10 @@ class Model_Objects //! Returns the feature by zero-based index: features in the history or not std::shared_ptr internalFeature(const int theIndex); + //! Returns feature by the id of the feature (produced by the Data "featureId" method) + std::shared_ptr featureById(const int theId); + + /// Creates a construction result std::shared_ptr createConstruction( const std::shared_ptr& theFeatureData, const int theIndex = 0); @@ -140,9 +144,10 @@ class Model_Objects //! Synchronizes myFeatures list with the updated document //! \param theUpdated list of labels that are marked as modified, so featrues must be also //! \param theUpdateReferences causes the update of back-references + //! \param theOpen - on open nothing must be reexecuted, except not persistent results //! \param theFlush makes flush all events in the end of all modifications of this method void synchronizeFeatures(const TDF_LabelList& theUpdated, const bool theUpdateReferences, - const bool theFlush); + const bool theOpen, const bool theFlush); //! Synchronizes the BackReferences list in Data of Features and Results void synchronizeBackRefs();