X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_Tools.h;h=ad5fbcbcfc0dde05bf0d3c8ba25088ab373ce6e3;hb=857b1f72d9703c46c6c8c9bb239821d314344c86;hp=c113b832aeb3f24bec19989f54f443b38d016b06;hpb=f81fd8333b11902d0794a8f83b1d880d5636c153;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_Tools.h b/src/PartSet/PartSet_Tools.h old mode 100644 new mode 100755 index c113b832a..ad5fbcbcf --- a/src/PartSet/PartSet_Tools.h +++ b/src/PartSet/PartSet_Tools.h @@ -68,19 +68,6 @@ class PARTSET_EXPORT PartSet_Tools /// \param theSketch the sketch feature static std::shared_ptr convertTo3D(const double theX, const double theY, FeaturePtr theSketch); - /// 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 theSelected the list of selected presentations - /// \param theHighlighted the list of highlighted presentations - static ObjectPtr nearestFeature(QPoint thePoint, Handle_V3d_View theView, FeaturePtr theSketch, - const QList& theSelected, - const QList& theHighlighted); - /// Returns pointer to the root document. static std::shared_ptr document(); @@ -166,10 +153,12 @@ class PARTSET_EXPORT PartSet_Tools /// \param theShape an edge /// \param theObject a selected result object /// \param theSketch a sketch feature + /// \param theTemporary the created external object is temporary, execute is not performed for it /// \return result of created feature static ResultPtr createFixedObjectByExternal(const TopoDS_Shape& theShape, const ObjectPtr& theObject, - CompositeFeaturePtr theSketch); + CompositeFeaturePtr theSketch, + const bool theTemporary = false); /// Checks whether the list of selected presentations contains the given one /// \param theSelected a list of presentations @@ -232,19 +221,6 @@ class PARTSET_EXPORT PartSet_Tools */ static void findCoincidences(FeaturePtr theStartCoin, QList& theList, std::string theAttr); - -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