#pragma once
#include <AIS_InteractiveContext.hxx>
+#include <Standard_Version.hxx>
class OCCViewer_ViewManager;
class OCCViewer_Viewer;
class AIS_InteractiveObject;
class AIS_ColorScale;
+#define OCC_VERSION_LARGE (OCC_VERSION_MAJOR << 24 | OCC_VERSION_MINOR << 16 | OCC_VERSION_MAINTENANCE << 8)
+#if OCC_VERSION_LARGE >= 0x07020000
+const bool SWAP_RGB = false;
+#else
+const bool SWAP_RGB = true;
+#endif
+
class TestViewer
{
public:
int theUIANb = 10, int theVIANb = 10);
static void show( const TopoDS_Shape& theShape, int theMode, bool isFitAll, const char* theKey,
int theUIANb = 10, int theVIANb = 10);
- static bool AssertImages( QString& theMessage, const QImage* = 0, const char* theCase = 0, bool swapRGB = true );
+ static bool AssertImages( QString& theMessage, const QImage* = 0, const char* theCase = 0, bool swapRGB = SWAP_RGB );
static QColor GetColor(int i);
static Handle(AIS_ColorScale) colorScale();