]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To move "change camera zoom on picking" functionality from VVTK_InteractorStyle to...
authorapo <apo@opencascade.com>
Mon, 14 Nov 2005 13:12:25 +0000 (13:12 +0000)
committerapo <apo@opencascade.com>
Mon, 14 Nov 2005 13:12:25 +0000 (13:12 +0000)
src/VVTK/VVTK_InteractorStyle.cxx

index 36f89c885c988c254e5e92aefa2ea83cc25aa840..68367249431f43ba91bf1cc6cb0752775edec241 100644 (file)
@@ -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();
 }