From: Paul RASCLE Date: Sun, 20 Sep 2020 19:56:41 +0000 (+0200) Subject: trying to highlight selected points on bathymetry X-Git-Tag: SH_V2_2_0~36 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ede12d433e5267ff6031518ba20d9476afea9ac1;p=modules%2Fhydro.git trying to highlight selected points on bathymetry --- 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())