/* update */
tgtView->Update();
tgtView->SetImmediateUpdate( Standard_True );
+#if OCC_VERSION_LARGE <= 0x06070100
tgtView->ZFitAll();
+#endif
return true;
}
*/
void OCCViewer_ViewPort3d::setZSize( double zsize )
{
+#if OCC_VERSION_LARGE <= 0x06070100
myActiveView->SetZSize( zsize );
+#endif
/* if ( !myOrthoView.IsNull() )
myOrthoView->SetZSize( zsize );
if ( !myPerspView.IsNull() )
void OCCViewer_ViewPort3d::endRotation()
{
if ( !activeView().IsNull() ) {
- activeView()->ZFitAll( 1.0 );
#if OCC_VERSION_LARGE <= 0x06070100
+ activeView()->ZFitAll( 1.0 );
activeView()->SetZSize( 0.0 );
#endif
activeView()->Update();
#if OCC_VERSION_LARGE > 0x06070100
activeView()->FitAll( margin, upd );
- if(withZ)
- activeView()->ZFitAll();
+ //if(withZ)
+ // activeView()->ZFitAll();
#else
activeView()->FitAll( margin, withZ, upd );
-#endif
activeView()->SetZSize(0.);
+#endif
emit vpTransformed( this );
}
#else
aView3d->SetViewMapping( aRefView3d->ViewMapping() );
aView3d->SetViewOrientation( aRefView3d->ViewOrientation() );
-#endif
aView3d->ZFitAll();
+#endif
aView3d->SetImmediateUpdate( Standard_True );
aView3d->Update();
blockSignals( blocked );
int x1 = (int)( aEvent->x() + width()*delta/100 );
int y1 = (int)( aEvent->y() + height()*delta/100 );
myViewPort->zoom( x, y, x1, y1 );
+#if OCC_VERSION_LARGE <= 0x06070100
myViewPort->getView()->ZFitAll();
+#endif
emit vpTransformationFinished ( ZOOMVIEW );
}
}
case PANVIEW:
case ZOOMVIEW:
+#if OCC_VERSION_LARGE <= 0x06070100
myViewPort->getView()->ZFitAll();
+#endif
resetState();
break;
getViewPort()->setAxialScale( anAxialScale[0], anAxialScale[1], anAxialScale[2] );
+#if OCC_VERSION_LARGE <= 0x06070100
aDestView->ZFitAll();
+#endif
aDestView->SetImmediateUpdate( Standard_True );
aDestView->Redraw();