From ede12d433e5267ff6031518ba20d9476afea9ac1 Mon Sep 17 00:00:00 2001 From: Paul RASCLE Date: Sun, 20 Sep 2020 21:56:41 +0200 Subject: [PATCH] trying to highlight selected points on bathymetry --- src/HYDROGUI/HYDROGUI_BathymetryPrs.cxx | 2 +- src/HYDROGUI/HYDROGUI_BathymetrySelectionOp.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/HYDROGUI/HYDROGUI_BathymetryPrs.cxx b/src/HYDROGUI/HYDROGUI_BathymetryPrs.cxx index 1b7b1b2c..a1ab3c08 100644 --- a/src/HYDROGUI/HYDROGUI_BathymetryPrs.cxx +++ b/src/HYDROGUI/HYDROGUI_BathymetryPrs.cxx @@ -335,7 +335,7 @@ void HYDROGUI_BathymetryPrs::HilightSelected( const Handle(PrsMgr_PresentationMa if (!anOwner.IsNull()) mySelectedPoints.append(anOwner->GetIndex()); } - + DEBTRACE("points selected " << points->ItemNumber()); Handle(Graphic3d_Group) aGroup = Prs3d_Root::CurrentGroup( aSelectPrs ); //Handle(Graphic3d_Group) aGroup = aSelectPrs->NewGroup(); Handle(Graphic3d_AspectMarker3d) anAspect = new Graphic3d_AspectMarker3d( Aspect_TOM_X, Quantity_NOC_WHITE, 1.0 ); diff --git a/src/HYDROGUI/HYDROGUI_BathymetrySelectionOp.cxx b/src/HYDROGUI/HYDROGUI_BathymetrySelectionOp.cxx index d64a4a2e..c178f396 100644 --- a/src/HYDROGUI/HYDROGUI_BathymetrySelectionOp.cxx +++ b/src/HYDROGUI/HYDROGUI_BathymetrySelectionOp.cxx @@ -131,7 +131,7 @@ void HYDROGUI_BathymetrySelectionOp::activateSelection( bool isActive ) ctx->RemoveFilters(); //ctx->Activate( bath, aSelectionMode, Standard_True ); ctx->SetSelectionModeActive (bath, aSelectionMode, Standard_True, AIS_SelectionModesConcurrency_Multiple, Standard_False); - ctx->SetSelectionModeActive (bath, 0, Standard_True, AIS_SelectionModesConcurrency_Multiple, Standard_False); + //ctx->SetSelectionModeActive (bath, 0, Standard_True, AIS_SelectionModesConcurrency_Multiple, Standard_False); bath->SetAutoHilight( Standard_False ); // True bloque le passage dans hilightSelected... // DEBTRACE("immediateMode: " << ctx->MainPrsMgr()->IsImmediateModeOn()); // if (!ctx->MainPrsMgr()->IsImmediateModeOn()) -- 2.39.2