X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_Objects.h;h=ef1d403b64cdc18275bc0bb93e001d65d61e8a24;hb=refs%2Ftags%2FV_1.2.1;hp=06848a8584b7e3850c675b28792fd7628b14bb6c;hpb=91968c131d13ed6e682b23f029f8bc441fc9e05d;p=modules%2Fshaper.git diff --git a/src/Model/Model_Objects.h b/src/Model/Model_Objects.h index 06848a858..ef1d403b6 100644 --- a/src/Model/Model_Objects.h +++ b/src/Model/Model_Objects.h @@ -53,7 +53,7 @@ class Model_Objects //! Returns the existing feature by the label //! \param theLabel base label of the feature - FeaturePtr feature(TDF_Label& theLabel) const; + FeaturePtr feature(TDF_Label theLabel) const; //! Returns the existing object: result or feature //! \param theLabel base label of the object @@ -67,7 +67,7 @@ class Model_Objects const std::string& theGroupID, const std::string& theName); //! Returns the result by the result name - ResultPtr Model_Objects::findByName(const std::string theName); + ResultPtr findByName(const std::string theName); //! Returns the object index in the group. Object must be visible. Otherwise returns -1. @@ -170,6 +170,10 @@ class Model_Objects /// Returns to the last (from the history point of view) feature, any: invisible or disabled FeaturePtr lastFeature(); + /// Returns the result group identifier of the given feature (for this at least one result must + /// be created before) + std::string featureResultGroup(FeaturePtr theFeature); + private: TDF_Label myMain; ///< main label of the data storage