/* 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 );
// void setActive( V3d_TypeOfView );
virtual bool syncronize( const OCCViewer_ViewPort3d* );
+#if OCC_VERSION_LARGE <= 0x07000000
double getZSize() const;
void setZSize( double );
+#endif
void getAxialScale( double&, double&, double& );
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 <= 0x07000000
myViewPort->getView()->ZFitAll();
+#endif
emit vpTransformationFinished ( ZOOMVIEW );
}
}
case PANVIEW:
case ZOOMVIEW:
+#if OCC_VERSION_LARGE <= 0x07000000
myViewPort->getView()->ZFitAll();
+#endif
resetState();
break;
#endif
getViewPort()->setAxialScale( anAxialScale[0], anAxialScale[1], anAxialScale[2] );
-
+#if OCC_VERSION_LARGE <= 0x07000000
aDestView->ZFitAll();
+#endif
aDestView->SetImmediateUpdate( Standard_True );
aDestView->Redraw();