#include <QGroupBox>
#include <QLineEdit>
+#include <Basics_OCCTVersion.hxx>
+
/*!
\class OCCViewer_CubeAxesDlg::AxisWidget
\brief Axis tab widget of the "Graduated axis" dialog box
gt.SetGridColor(Quantity_NOC_WHITE); // grid color
// axes params
for ( int i = 0; i < 3; i++ ) {
+#if OCC_VERSION_LARGE < 0x07070000
Graphic3d_AxisAspect& aspect = gt.ChangeAxisAspect(i);
+#else
+ Graphic3d_GraduatedTrihedron::AxisAspect& aspect = gt.ChangeAxisAspect(i);
+#endif
aspect.SetName(anAxisData[i].Name.toUtf8().constData());
aspect.SetDrawName(anAxisData[i].DrawName);
aspect.SetDrawValues(anAxisData[i].DrawValues);
{
Handle(Image_PixMap) aPixmap = new Image_PixMap();
if ( !anImage.isNull() ) {
+#if OCC_VERSION_LARGE < 0x07070000
aPixmap->InitTrash( Image_PixMap::ImgBGRA, anImage.width(), anImage.height() );
+#else
+ aPixmap->InitTrash( Image_Format_BGRA, anImage.width(), anImage.height() );
+#endif
+
#if OCC_VERSION_LARGE < 0x07050000
aPixmap->SetTopDown( Standard_True );
#endif
#include <Xw_Window.hxx>
#endif
+#include <Basics_OCCTVersion.hxx>
+
/*!
Create native view window for CasCade view [ static ]
*/
Handle(Aspect_Window) OCCViewer_VService::CreateWindow( const Handle(V3d_View)& view,
WId winId )
{
+#if OCC_VERSION_LARGE < 0x07070000
Aspect_Handle aWindowHandle = (Aspect_Handle)winId;
+#else
+ Aspect_Drawable aWindowHandle = (Aspect_Drawable)winId;
+#endif
+
#if defined(WIN32)
Handle(WNT_Window) viewWindow = new WNT_Window( aWindowHandle );
#elif defined(__APPLE__)
#include <Standard_Boolean.hxx>
#include <Standard_CString.hxx>
#include <Standard_ExtString.hxx>
-#include <Quantity_Length.hxx>
#include <V3d_TypeOfOrientation.hxx>
#include <QWidget>
// create color scale
myColorScale = new AIS_ColorScale();
myColorScale->SetZLayer( Graphic3d_ZLayerId_TopOSD );
+#if OCC_VERSION_LARGE < 0x07070000
myColorScale->SetTransformPersistence( Graphic3d_TransformPers::FromDeprecatedParams( Graphic3d_TMF_2d, gp_Pnt(-1, -1, 0) ) );
-
+#else
+ myColorScale->SetTransformPersistence( new Graphic3d_TransformPers (Graphic3d_TMF_2d, Aspect_TOTP_LEFT_LOWER) );
+#endif
+
/* create trihedron */
if ( DisplayTrihedron )
{
#include <QTimer>
#include <V3d_View.hxx>
-#include <Quantity_Ratio.hxx>
#include "utilities.h"