From: apo Date: Mon, 14 Nov 2005 13:12:25 +0000 (+0000) Subject: To move "change camera zoom on picking" functionality from VVTK_InteractorStyle to... X-Git-Tag: BR-D5-38-2003_D2005-24-11~46 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=35341a1161df47abd93264ae1860f790406877b2;p=modules%2Fvisu.git To move "change camera zoom on picking" functionality from VVTK_InteractorStyle to VISU_GaussPtsAct --- diff --git a/src/VVTK/VVTK_InteractorStyle.cxx b/src/VVTK/VVTK_InteractorStyle.cxx index 36f89c88..68367249 100644 --- a/src/VVTK/VVTK_InteractorStyle.cxx +++ b/src/VVTK/VVTK_InteractorStyle.cxx @@ -188,25 +188,7 @@ VVTK_InteractorStyle //---------------------------------------------------------------------------- void VVTK_InteractorStyle::onFinishOperation() { - int aNbObjWas, aNbObjNow; - // - aNbObjWas=GetSelector()->IObjectCount(); - // - SVTK_InteractorStyle::onFinishOperation(); - // - aNbObjNow=GetSelector()->IObjectCount(); - - if (aNbObjWas+aNbObjNow==1){ - vtkCamera *aCamera = GetCurrentRenderer()->GetActiveCamera(); - float aZoomFactor = myPickingSettings->GetZoomFactor(); - double aScale = aCamera->GetParallelScale(); - if (!aNbObjWas && aNbObjNow) { - aCamera->SetParallelScale(aScale/aZoomFactor); - } - else { - aCamera->SetParallelScale(aScale*aZoomFactor); - } - } + Superclass::onFinishOperation(); }