X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_Tools.h;h=30838ae09f66fc9869e36d6e48c87a3d5a7421e0;hb=d22fc665c79c31c9eea0625e04c2e941adfdf7be;hp=912db7307b5b9de3be76a4e3ca7b53b629193fb4;hpb=652a5949418f13aa7db1f1d405a369f4644ba33a;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_Tools.h b/src/PartSet/PartSet_Tools.h index 912db7307..30838ae09 100644 --- a/src/PartSet/PartSet_Tools.h +++ b/src/PartSet/PartSet_Tools.h @@ -160,6 +160,18 @@ class PARTSET_EXPORT PartSet_Tools /// \param theY the output vertical coordinate of the point static bool hasVertexShape(const ModuleBase_ViewerPrs& thePrs, FeaturePtr theSketch, Handle_V3d_View theView, double& theX, double& theY); +protected: + /// Returns an object that is under the mouse point. Firstly it checks the highlighting, + /// if it exists, the first object is returned. Secondly, there is an iteration on + /// the selected list to find the point. Thirdly, if the object is not found under the + /// the point, the first selected object is returned. + /// \param thePoint a screen point + /// \param theView a 3D view + /// \param theSketch the sketch feature + /// \param thePresentations the list of presentations + static ObjectPtr nearestFeature(QPoint thePoint, Handle_V3d_View theView, FeaturePtr theSketch, + const QList& thePresentations); + }; #endif