X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelAPI%2FModelAPI_Document.h;h=6fe1c9121fbdbeda6def3657e870fb062f3cd1e8;hb=c66d90377083e2611816b72500533d4ffbc73e19;hp=8c1297359b113bdbe76c4156f6aa546717d14d64;hpb=b4bccdade3d22c8375bcd5e374a9e99ab6fce250;p=modules%2Fshaper.git diff --git a/src/ModelAPI/ModelAPI_Document.h b/src/ModelAPI/ModelAPI_Document.h index 8c1297359..6fe1c9121 100644 --- a/src/ModelAPI/ModelAPI_Document.h +++ b/src/ModelAPI/ModelAPI_Document.h @@ -25,6 +25,7 @@ class ModelAPI_ResultPart; class ModelAPI_ResultGroup; class ModelAPI_ResultParameter; class ModelAPI_Data; +class GeomAPI_Shape; /**\class ModelAPI_Document * \ingroup DataModel @@ -157,6 +158,11 @@ public: /// Returns true if document is opened and valid virtual bool isOpened() = 0; + /// Returns the feature that produced the given face of the given result. + virtual std::shared_ptr producedByFeature( + std::shared_ptr theResult, + const std::shared_ptr& theShape) = 0; + protected: //! Only for SWIG wrapping it is here