#include "CAF_Tools.h"
#include "CAF_Application.h"
-#include <Basics_OCCTVersion.hxx>
-
#include <SUIT_Desktop.h>
#include <SUIT_MessageBox.h>
#include <SUIT_Application.h>
#include "DDS_KeyWords.h"
-#include <Basics_OCCTVersion.hxx>
-
#include <LDOMString.hxx>
#include <LDOMParser.hxx>
#include "LightApp_WgViewModel.h"
#include "LightApp_FullScreenHelper.h"
-
#include <GUI_version.h>
-#include <Basics_OCCTVersion.hxx>
#include <SALOME_Event.h>
#include "OCCViewer_ViewManager.h"
#include "OCCViewer_ClipPlaneInteractor.h"
+#include <Basics_OCCTVersion.hxx>
+
#include <V3d_View.hxx>
#include <Visual3d_View.hxx>
#include <Geom_Plane.hxx>
if ( !aPrs->IsEmpty() && !aPrs->IsInfinite() ) {
isFound = true;
double xmin, ymin, zmin, xmax, ymax, zmax;
+#if OCC_VERSION_LARGE > 0x06070100
+ Bnd_Box aBox = aPrs->MinMaxValues();
+ xmin = aBox.CornerMin().X();
+ ymin = aBox.CornerMin().Y();
+ zmin = aBox.CornerMin().Z();
+ xmax = aBox.CornerMax().X();
+ ymax = aBox.CornerMax().Y();
+ zmax = aBox.CornerMax().Z();
+#else
aPrs->MinMaxValues( xmin, ymin, zmin, xmax, ymax, zmax );
+#endif
aXMin = qMin( aXMin, xmin ); aXMax = qMax( aXMax, xmax );
aYMin = qMin( aYMin, ymin ); aYMax = qMax( aYMax, ymax );
aZMin = qMin( aZMin, zmin ); aZMax = qMax( aZMax, zmax );
#include "QtxAction.h"
#include "QtxIntSpinBox.h"
-#include <Basics_OCCTVersion.hxx>
-
#include <QCheckBox>
#include <QGroupBox>
#include <QLineEdit>
#include "ViewerData_AISShape.hxx"
+#include <Basics_OCCTVersion.hxx>
+
#include "QtxActionToolMgr.h"
#include "QtxBackgroundTool.h"
double aMaxSide = 0;
double Xmin = 0, Ymin = 0, Zmin = 0, Xmax = 0, Ymax = 0, Zmax = 0;
+#if OCC_VERSION_LARGE > 0x06070100
+ Bnd_Box aBox = view3d->View()->MinMaxValues();
+ Xmin = aBox.CornerMin().X();
+ Ymin = aBox.CornerMin().Y();
+ Zmin = aBox.CornerMin().Z();
+ Xmax = aBox.CornerMax().X();
+ Ymax = aBox.CornerMax().Y();
+ Zmax = aBox.CornerMax().Z();
+#else
view3d->View()->MinMaxValues( Xmin, Ymin, Zmin, Xmax, Ymax, Zmax );
+#endif
if ( Xmin != RealFirst() && Ymin != RealFirst() && Zmin != RealFirst() &&
Xmax != RealLast() && Ymax != RealLast() && Zmax != RealLast() )
#include <V3d_View.hxx>
#include <AIS_Trihedron.hxx>
#include <AIS_InteractiveContext.hxx>
-#include <Basics_OCCTVersion.hxx>
#include <Graphic3d_SequenceOfHClipPlane.hxx>
class QKeyEvent;
continue;
}
+#if OCC_VERSION_LARGE > 0x06070100
+ Bnd_Box aBox = aStructure->MinMaxValues();
+ aXmin = aBox.CornerMin().X();
+ aYmin = aBox.CornerMin().Y();
+ aZmin = aBox.CornerMin().Z();
+ aXmax = aBox.CornerMax().X();
+ aYmax = aBox.CornerMax().Y();
+ aZmax = aBox.CornerMax().Z();
+#else
aStructure->MinMaxValues( aXmin, aYmin, aZmin, aXmax, aYmax, aZmax );
+#endif
// Infinite structures are skipped
Standard_Real aLIM = ShortRealLast() - 1.0;