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=bf9b2baceb0d04f37fdb8aaf5f04411f40bf3130;hpb=96912644cf6607688466ac69f1f098fd2fff37b7;p=modules%2Fshaper.git diff --git a/src/Model/Model_Objects.h b/src/Model/Model_Objects.h index bf9b2bace..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. @@ -83,6 +83,9 @@ class Model_Objects //! Returns the number of features in the group int size(const std::string& theGroupID); + ///! Returns all (and disabled) results of the given type. Not fast method (iterates all features). + void allResults(const std::string& theGroupID, std::list& theResults); + /// Creates a construction cresults std::shared_ptr createConstruction( const std::shared_ptr& theFeatureData, const int theIndex = 0); @@ -104,7 +107,7 @@ class Model_Objects feature(const std::shared_ptr& theResult); //! Sets the owner of this manager - void setOwner(DocumentPtr theDoc) {myDoc = theDoc;} + void setOwner(DocumentPtr theDoc); //! Returns the owner of this manager DocumentPtr owner() {return myDoc;} @@ -167,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