]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
0020735: EDF 1308 VISU: Gauss point picking not possible when a mesh representation... V5_1_main_20100309
authorouv <ouv@opencascade.com>
Wed, 3 Mar 2010 12:32:25 +0000 (12:32 +0000)
committerouv <ouv@opencascade.com>
Wed, 3 Mar 2010 12:32:25 +0000 (12:32 +0000)
src/OBJECT/VISU_GaussPtsAct.cxx

index 1071352ae6e480900e5a9d99d259e0a371bb6491..7556eb3304ad29dcd2185951258830ca7e7a759f 100644 (file)
@@ -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,