/* update */
tgtView->Update();
tgtView->SetImmediateUpdate( Standard_True );
+#if OCC_VERSION_LARGE <= 0x07000000
tgtView->ZFitAll();
+#endif
return true;
}
+#if OCC_VERSION_LARGE <= 0x07000000
/*!
Returns Z-size of this view. [ public ]
*/
if ( !myPerspView.IsNull() )
myPerspView->SetZSize( zsize );*/
}
+#endif
/*!
Get axial scale to the view
void OCCViewer_ViewPort3d::endRotation()
{
if ( !activeView().IsNull() ) {
+#if OCC_VERSION_LARGE <= 0x07000000
activeView()->ZFitAll( 1.0 );
-#if OCC_VERSION_LARGE <= 0x06070100
activeView()->SetZSize( 0.0 );
#endif
activeView()->Update();
#if OCC_VERSION_LARGE > 0x06070100
activeView()->FitAll( margin, upd );
+#if OCC_VERSION_LARGE <= 0x07000000
if(withZ)
activeView()->ZFitAll();
-#else
+#endif
+#else
activeView()->FitAll( margin, withZ, upd );
-#endif
activeView()->SetZSize(0.);
+#endif
emit vpTransformed( this );
}
aView3d->SetViewMapping( aRefView3d->ViewMapping() );
aView3d->SetViewOrientation( aRefView3d->ViewOrientation() );
#endif
+#if OCC_VERSION_LARGE <= 0x07000000
aView3d->ZFitAll();
+#endif
aView3d->SetImmediateUpdate( Standard_True );
aView3d->Update();
blockSignals( blocked );