]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
some more tests on bathy selection
authorPaul RASCLE <paul.rascle@openfields.fr>
Sat, 19 Sep 2020 20:54:40 +0000 (22:54 +0200)
committerYOANN AUDOUIN <B61570@dsp0851742.postes.calibre.edf.fr>
Fri, 30 Oct 2020 16:08:09 +0000 (17:08 +0100)
src/HYDROGUI/HYDROGUI_BathymetryPrs.cxx
src/HYDROGUI/HYDROGUI_BathymetrySelectionOp.cxx

index 0c9a95877faf9481dd330133b2187503ab40ca74..e968bd00320368ac0cbe838745cec581d052c157 100644 (file)
@@ -198,20 +198,21 @@ void HYDROGUI_BathymetryPrs::ComputeSelection( const Handle(SelectMgr_Selection)
   {
     case 0:
     {
-      DEBTRACE("Bounding box selection");
-      AIS_PointCloud::ComputeSelection( theSelection, SM_BndBox);
+      DEBTRACE("Points selection");
+      AIS_PointCloud::ComputeSelection( theSelection, SM_Points);
       break;
     }
     case 1:
     {
       DEBTRACE("Subset of points detection");
-      AIS_PointCloud::ComputeSelection( theSelection, SM_SubsetOfPoints ); // SM_Points ?
+      AIS_PointCloud::ComputeSelection( theSelection, SM_SubsetOfPoints );
       break;
     }
     default:
     {
-      DEBTRACE("Do Nothing");
-      return;
+      DEBTRACE("Bounding box selection");
+      AIS_PointCloud::ComputeSelection( theSelection, SM_BndBox);
+      break;
     }
   }
 
index 577eb7a1b6ef7bc3419288f070627a3fa90d7b6a..c7037f83abf53eacb0d578fbc46d722df0aebd48 100644 (file)
@@ -114,7 +114,7 @@ void HYDROGUI_BathymetrySelectionOp::activateSelection( bool isActive )
       DEBTRACE("bathy name: " << bath->GetShape()->getObject()->GetName().toStdString());
       ctx->Deactivate(bath);
       //ctx->Activate( bath, aSelectionMode, Standard_True );
-      ctx->SetSelectionModeActive (bath, aSelectionMode, Standard_True, AIS_SelectionModesConcurrency_Multiple, Standard_False);
+      ctx->SetSelectionModeActive (bath, aSelectionMode, Standard_True, AIS_SelectionModesConcurrency_Single, Standard_False);
       bath->SetAutoHilight( Standard_False ); // True bloque le passage dans hilightSelected...
 //      DEBTRACE("immediateMode: " << ctx->MainPrsMgr()->IsImmediateModeOn());
 //      if (!ctx->MainPrsMgr()->IsImmediateModeOn())
@@ -130,7 +130,7 @@ void HYDROGUI_BathymetrySelectionOp::activateSelection( bool isActive )
       bath->SetAutoHilight( Standard_True );
       bath->GetShape()->TextLabels( false );
       ctx->Deactivate( bath );
-      ctx->SetSelectionModeActive (bath, 0, Standard_True, AIS_SelectionModesConcurrency_Multiple, Standard_False);
+      ctx->SetSelectionModeActive (bath, 2, Standard_True, AIS_SelectionModesConcurrency_Multiple, Standard_False);
     }
     //ctx->CloseLocalContext( -1, Standard_True );
   }