static OCCViewer_ViewFrame* viewWindow();
static Handle(AIS_InteractiveContext) context();
- static void eraseAll( bool isUpdate );
+ static void eraseAll( bool isUpdate, bool eraseStructures = false );
static void show( const Handle(AIS_InteractiveObject)& theObject,
int theMode, int theSelectionMode, bool isFitAll, const char* theKey );
static void show( const TopoDS_Shape& theShape, int theMode, bool isFitAll, const QColor& theColor,
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 );
+ static bool AssertImages( QString& theMessage, const QImage* = 0, const char* theCase = 0, bool swapRGB = true );
static QColor GetColor(int i);
static Handle(AIS_ColorScale) colorScale();
QString& theMsg );
static void setKey( const QString& );
+ static void fitAll();
+ static QImage diff( const QImage& im1, const QImage& im2 );
private:
static OCCViewer_ViewManager* myViewManager;
} \
} \
+#define CPPUNIT_ASSERT_IMAGES3( theImage, theCase, theSwapRGB ) \
+ { \
+ QString aMessage; \
+ if( !TestViewer::AssertImages( aMessage, theImage, theCase, theSwapRGB ) ) \
+ { \
+ TestViewer::showColorScale( false ); \
+ std::string aMessageStl = aMessage.toStdString(); \
+ CPPUNIT_FAIL( aMessageStl.c_str() ); \
+ } \
+ }
+
#define CPPUNIT_ASSERT_SCRIPTS_EQUAL( theBaseName, \
isExpectedUtf8, \
isActualUtf8, \