From: ouv Date: Fri, 30 May 2008 08:16:26 +0000 (+0000) Subject: Bug IPAL19726 - Qt4 porting: problems with gauss points' selection X-Git-Tag: before_mergefrom_BR_Dev_For_4_0_07Jul08~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=86b241a729d8e7a19c97c31ab37446870b8362cd;p=modules%2Fvisu.git Bug IPAL19726 - Qt4 porting: problems with gauss points' selection --- diff --git a/src/VVTK/VVTK_PickingDlg.cxx b/src/VVTK/VVTK_PickingDlg.cxx index 75670122..5e05ceac 100644 --- a/src/VVTK/VVTK_PickingDlg.cxx +++ b/src/VVTK/VVTK_PickingDlg.cxx @@ -560,19 +560,6 @@ void VVTK_PickingDlg::onSelectionEvent() VISU::TLocalPntID aLocalPntID = aGaussPointID.second; myLocalPointLineEdit->setText( QString::number( aLocalPntID ) ); - - myPickingSettings->InvokeEvent( VISU::UpdatePickingSettingsEvent,NULL ); - - VISU::PGaussPtsIDMapper anIDMapper = aHelper.myPipeLine->GetGaussPtsIDMapper(); - vtkIdType anObjVtkId = anIDMapper->GetVTKID( VISU::TGaussPointID( aCellID, aLocalPntID ) ); - if ( anObjVtkId < 0 ) - return; - - aHelper.myMapIndex.Clear(); - aHelper.myMapIndex.Add( anObjVtkId ); - aHelper.mySelector->AddOrRemoveIndex( aHelper.myIO, aHelper.myMapIndex, false ); - aHelper.myActor->Highlight( aHelper.myIO ); - myInteractor->GetDevice()->CreateTimer( VTKI_TIMER_FIRST ); } VISU_PickingSettings* @@ -675,27 +662,6 @@ void VVTK_PickingDlg::onClickApply() void VVTK_PickingDlg::onClickClose() { - SelectorHelper aHelper( myInteractor ); - if ( aHelper.get() ) - { - const TColStd_IndexedMapOfInteger& aMapIndex = aHelper.myMapIndex; - if ( aMapIndex.Extent() == 1 ) - { - int anObjId = aHelper.myMapIndex(1); - VISU::TGaussPointID aGaussPointID = aHelper.myPipeLine->GetObjID( anObjId ); - VISU::TCellID aCellID = aGaussPointID.first; - VISU::TLocalPntID aLocalPntID = aGaussPointID.second; - - VISU::PGaussPtsIDMapper anIDMapper = aHelper.myPipeLine->GetGaussPtsIDMapper(); - vtkIdType anObjVtkId = anIDMapper->GetVTKID( VISU::TGaussPointID( aCellID, aLocalPntID ) ); - if ( anObjVtkId >= 0 ) - { - aHelper.myActor->Highlight( false ); - aHelper.myMapIndex.Clear(); - } - } - } - reject(); }