From 3081d9bf708e6bc37303270d10b93660fb8d77d8 Mon Sep 17 00:00:00 2001 From: ouv Date: Wed, 3 Mar 2010 12:32:25 +0000 Subject: [PATCH] 0020735: EDF 1308 VISU: Gauss point picking not possible when a mesh representation is displayed --- src/OBJECT/VISU_GaussPtsAct.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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, -- 2.39.2