]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
0021319: EDF 1616 ALL: synchronization of 3D viewers
authorvsr <vsr@opencascade.com>
Wed, 5 Oct 2011 12:59:36 +0000 (12:59 +0000)
committervsr <vsr@opencascade.com>
Wed, 5 Oct 2011 12:59:36 +0000 (12:59 +0000)
Update clipping box in a target view at the synchronization

src/OCCViewer/OCCViewer_ViewPort3d.cxx

index 79d470ae5afe8837940d208ae3c60daa05b37270..88fd810a6569de8d1f3b7689c4b05e49e0ccd0d0 100755 (executable)
@@ -641,8 +641,12 @@ bool OCCViewer_ViewPort3d::synchronize( OCCViewer_ViewPort* view )
     bool blocked = blockSignals( false );
     Handle(V3d_View) aView3d = getView();
     Handle(V3d_View) aRefView3d = vp3d->getView();
+    aView3d->SetImmediateUpdate( Standard_False );
     aView3d->SetViewMapping( aRefView3d->ViewMapping() );
     aView3d->SetViewOrientation( aRefView3d->ViewOrientation() );
+    aView3d->ZFitAll();
+    aView3d->SetImmediateUpdate( Standard_True );
+    aView3d->Update();
     blockSignals( blocked );
     ok = true;
   }