From: vsv Date: Fri, 6 Nov 2015 14:02:10 +0000 (+0300) Subject: Increase selection area for points X-Git-Tag: V_2.0.0_alfa1~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e9001a69d5592586d4aa58fb161d6de7c90aa9ed;p=modules%2Fshaper.git Increase selection area for points --- diff --git a/src/SketchPlugin/SketchPlugin_SketchEntity.h b/src/SketchPlugin/SketchPlugin_SketchEntity.h index a26ef9aa4..b56992b89 100644 --- a/src/SketchPlugin/SketchPlugin_SketchEntity.h +++ b/src/SketchPlugin/SketchPlugin_SketchEntity.h @@ -101,7 +101,7 @@ class SketchPlugin_SketchEntity : public SketchPlugin_Feature, public GeomAPI_IC else if (aShapeType == 7) { // otherwise this is a vertex // The width value do not have effect on the point presentation. // It is defined in order to extend selection area of the object. - thePrs->setWidth(13); + thePrs->setWidth(17); // thePrs->setPointMarker(1, 1.); // Set point as a '+' symbol } return isCustomized; diff --git a/src/XGUI/XGUI_Displayer.cpp b/src/XGUI/XGUI_Displayer.cpp index a191509e5..59e99f4c7 100644 --- a/src/XGUI/XGUI_Displayer.cpp +++ b/src/XGUI/XGUI_Displayer.cpp @@ -221,7 +221,7 @@ bool XGUI_Displayer::display(ObjectPtr theObject, AISObjectPtr theAIS, if(anAISIO->Width() > 1) { for(int aModeIdx = 0; aModeIdx < myActiveSelectionModes.length(); ++aModeIdx) { int aMode = myActiveSelectionModes.value(aModeIdx); - double aPrecision = (aMode == getSelectionMode(TopAbs_VERTEX))? 15 : + double aPrecision = (aMode == getSelectionMode(TopAbs_VERTEX))? 20 : (anAISIO->Width() + 2); aContext->SetSelectionSensitivity(anAISIO, aMode, aPrecision); }