/// \param theSketch the sketch feature
static std::shared_ptr<GeomAPI_Pnt> 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<ModuleBase_ViewerPrs>& theSelected,
- const QList<ModuleBase_ViewerPrs>& theHighlighted);
-
/// Returns pointer to the root document.
static std::shared_ptr<ModelAPI_Document> document();
/// \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
*/
static void findCoincidences(FeaturePtr theStartCoin, QList<FeaturePtr>& 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<ModuleBase_ViewerPrs>& thePresentations);
-
};
#endif