From 35341a1161df47abd93264ae1860f790406877b2 Mon Sep 17 00:00:00 2001 From: apo Date: Mon, 14 Nov 2005 13:12:25 +0000 Subject: [PATCH] To move "change camera zoom on picking" functionality from VVTK_InteractorStyle to VISU_GaussPtsAct --- src/VVTK/VVTK_InteractorStyle.cxx | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) 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(); } -- 2.39.2