]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
clear selected points on bathymetry when switch off selection mode
authorPaul RASCLE <paul.rascle@openfields.fr>
Sun, 20 Sep 2020 19:17:49 +0000 (21:17 +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_BathymetryPrs.h
src/HYDROGUI/HYDROGUI_BathymetrySelectionOp.cxx

index 3dc4ab96b56ff9a4c6994b5e901bb834d17a2404..1b7b1b2c6db2f1db742beacd47ba58a49bb62a50 100644 (file)
@@ -353,6 +353,7 @@ void HYDROGUI_BathymetryPrs::ClearSelected()
   Handle(Prs3d_Presentation) aSelectPrs = GetSelectPresentation( NULL );  
   if( !aSelectPrs.IsNull() )
     aSelectPrs->Clear(); 
+  //mySelectedPoints.clear();
 }
 
 void HYDROGUI_BathymetryPrs::SetTextLabels( const QVector<int>& theTextIndices )
index 26154eb6e07a02f85975b52236c947f8ca788133..dcce6a9a824338830710d0dca4dcf63c741ed8c5 100644 (file)
@@ -47,6 +47,7 @@ public:
                                 const SelectMgr_SequenceOfOwner& theOwners );
 
   virtual void ClearSelected();
+  virtual void ClearSelectedPoints() {mySelectedPoints.clear();};
 
   void SetTextLabels( const QVector<int>& );
 
index aa21b0046331c17c568501ee06eb9a2579e9f89c..d64a4a2e166713b15a87402f8931554575eca200 100644 (file)
@@ -144,6 +144,7 @@ void HYDROGUI_BathymetrySelectionOp::activateSelection( bool isActive )
     foreach( Handle(HYDROGUI_BathymetryPrs) bath, baths )
     {
       bath->ClearSelected();
+      bath->ClearSelectedPoints();
       bath->SetAutoHilight( Standard_True );
       bath->GetShape()->TextLabels( false );
       ctx->Deactivate( bath );