//----------------------------------------------------------------------------
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();
}