From: ouv Date: Wed, 3 Mar 2010 12:32:25 +0000 (+0000) Subject: 0020735: EDF 1308 VISU: Gauss point picking not possible when a mesh representation... X-Git-Tag: V5_1_main_20100309 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3081d9bf708e6bc37303270d10b93660fb8d77d8;p=modules%2Fvisu.git 0020735: EDF 1308 VISU: Gauss point picking not possible when a mesh representation is displayed --- diff --git a/src/OBJECT/VISU_GaussPtsAct.cxx b/src/OBJECT/VISU_GaussPtsAct.cxx index 1071352a..7556eb33 100644 --- a/src/OBJECT/VISU_GaussPtsAct.cxx +++ b/src/OBJECT/VISU_GaussPtsAct.cxx @@ -758,6 +758,7 @@ VISU_GaussPtsAct VISU_PickingSettings* aPickingSettings = VISU_PickingSettings::Get(); if(aSelectionMode == GaussPointSelection && theIsHighlight){ + SVTK::TPickLimiter aPickLimiter( myPointPicker, this ); myPointPicker->Pick(theSelectionEvent->myX, theSelectionEvent->myY, 0.0, @@ -886,8 +887,9 @@ VISU_GaussPtsAct theIsHighlight); if(aSelectionMode == GaussPointSelection && !theSelectionEvent->myIsRectangle){ - vtkRenderer *aRenderer = theInteractorStyle->GetCurrentRenderer(); + + SVTK::TPickLimiter aPickLimiter( myPointPicker, this ); myPointPicker->Pick(theSelectionEvent->myX, theSelectionEvent->myY, 0.0, @@ -1029,7 +1031,8 @@ VISU_GaussPtsAct // myCursorPyramidSelected->SetVisibility(anIsVisible); //GetScalarBarCtrl()->Update(); -// myIsHighlighted = aCurrentHasIndex; + // to fix a bug with incorrect representation after the first highlight action + myIsHighlighted = aCurrentHasIndex; // Zoom if necessary // ChangeZoom(myPickingSettings,