#include <Visual3d_View.hxx>
#include <V3d_Viewer.hxx>
-#if OCC_VERSION_LARGE > 0x06070000
+#if OCC_VERSION_LARGE > 0x06070100
#include <V3d_View.hxx>
#else
#include <V3d_PerspectiveView.hxx>
// VSR: 01/07/2010 commented to avoid SIGSEGV at SALOME exit
//selectVisualId();
-#if OCC_VERSION_LARGE > 0x06070000
+#if OCC_VERSION_LARGE > 0x06070100
myActiveView = new V3d_View( viewer, type );
#else
if ( type == V3d_ORTHOGRAPHIC ) {
refView->Up( x, y, z ); tgtView->SetUp( x, y, z );
refView->Eye( x, y, z ); tgtView->SetEye( x, y, z );
refView->Proj( x, y, z ); tgtView->SetProj( x, y, z );
-#if OCC_VERSION_LARGE <= 0x06070000
+#if OCC_VERSION_LARGE <= 0x06070100
refView->Center( x, y ); tgtView->SetCenter( x, y );
#endif
tgtView->SetScale( refView->Scale() );
{
if ( !activeView().IsNull() ) {
activeView()->ZFitAll( 1.0 );
-#if OCC_VERSION_LARGE <= 0x06070000
+#if OCC_VERSION_LARGE <= 0x06070100
activeView()->SetZSize( 0.0 );
#endif
activeView()->Update();
Standard_Real margin = 0.01;
-#if OCC_VERSION_LARGE > 0x06070000
+#if OCC_VERSION_LARGE > 0x06070100
activeView()->FitAll( margin, upd );
if(withZ)
activeView()->ZFitAll();
Handle(V3d_View) aView3d = getView();
Handle(V3d_View) aRefView3d = vp3d->getView();
aView3d->SetImmediateUpdate( Standard_False );
-#if OCC_VERSION_LARGE > 0x06070000
+#if OCC_VERSION_LARGE > 0x06070100
aView3d->Camera()->Copy( aRefView3d->Camera() );
#else
aView3d->SetViewMapping( aRefView3d->ViewMapping() );
// the ones which lie within the screen limits\r
Standard_Real aScreenLimits[4] = { 0.0, 0.0, 0.0, 0.0 };\r
\r
-#if OCC_VERSION_LARGE > 0x06070000\r
+#if OCC_VERSION_LARGE > 0x06070100\r
// NDC space screen limits\r
aScreenLimits[0] = -1.0;\r
aScreenLimits[1] = 1.0;\r
for ( Standard_Integer aPointIt = 0; aPointIt < 8; ++aPointIt ) {\r
const gp_Pnt& aBBPoint = aPoints[aPointIt];
-#if OCC_VERSION_LARGE > 0x06070000
+#if OCC_VERSION_LARGE > 0x06070100
gp_Pnt aProjected = aView3d->Camera()->Project( aBBPoint );
const Standard_Real& U = aProjected.X();
const Standard_Real& V = aProjected.Y();
aView3d->SetProj( anItem.projX, anItem.projY, anItem.projZ );\r
aView3d->SetAxialScale( anItem.scaleX, anItem.scaleY, anItem.scaleZ );\r
\r
-#if OCC_VERSION_LARGE > 0x06070000\r
+#if OCC_VERSION_LARGE > 0x06070100\r
if ( anItem.centerX != 0.0 || anItem.centerY != 0.0 )\r
{\r
double anUpX = 0.0, anUpY = 0.0, anUpZ = 0.0;\r
params.isVisible= isShown;\r
params.size = size;\r
\r
-#if OCC_VERSION_LARGE <= 0x06070000 // the property is deprecated in OCCT 6.7.1\r
+#if OCC_VERSION_LARGE <= 0x06070100 // the property is deprecated after OCCT 6.7.1\r
aView3d->Center( params.centerX, params.centerY );\r
#endif\r
\r
QStringList data;\r
\r
data << QString( "scale=%1" ) .arg( params.scale, 0, 'e', 12 );\r
-#if OCC_VERSION_LARGE <= 0x06070000 // the property is deprecated in OCCT 6.7.1\r
+#if OCC_VERSION_LARGE <= 0x06070100 // the property is deprecated after OCCT 6.7.1\r
data << QString( "centerX=%1" ) .arg( params.centerX, 0, 'e', 12 );\r
data << QString( "centerY=%1" ) .arg( params.centerY, 0, 'e', 12 );\r
#endif\r
aProps.setAxialScale( anAxialScale[0], anAxialScale[1], anAxialScale[2] );\r
aProps.setViewUp( anUp[0], anUp[1], anUp[2] );\r
\r
-#if OCC_VERSION_LARGE > 0x06070000\r
+#if OCC_VERSION_LARGE > 0x06070100\r
aSourceView->Eye( anEye[0], anEye[1], anEye[2] );\r
\r
// store camera properties "as is": it is up to synchronized\r
aProps.getViewUp( anUpDir[0], anUpDir[1], anUpDir[2] );\r
aProps.getAxialScale( anAxialScale[0], anAxialScale[1], anAxialScale[2] );\r
\r
-#if OCC_VERSION_LARGE > 0x06070000\r
+#if OCC_VERSION_LARGE > 0x06070100\r
aDestView->SetAt( aFocalPoint[0], aFocalPoint[1], aFocalPoint[2] );\r
aDestView->SetEye( aPosition[0], aPosition[1], aPosition[2] );\r
aDestView->SetUp( anUpDir[0], anUpDir[1], anUpDir[2] );\r