class OCCViewer_ViewWindow;
class TopoDS_Shape;
class QString;
+class QColor;
+class Handle_AIS_InteractiveObject;
+class Handle_Aspect_ColorScale;
class TestViewer
{
static OCCViewer_Viewer* viewer();
static OCCViewer_ViewWindow* viewWindow();
- static void show( const TopoDS_Shape& theShape, bool isFitAll = true );
- static void dump( const TopoDS_Shape& theShape, const QString& theName );
+ static void show( const Handle_AIS_InteractiveObject& theObject,
+ int theMode, int theSelelctionMode, bool isFitAll, const char* theKey );
+ static void show( const TopoDS_Shape& theShape, int theMode, bool isFitAll, const QColor& theColor );
+ static void show( const TopoDS_Shape& theShape, int theMode, bool isFitAll, const char* theKey );
+ static bool AssertImages( QString& theMessage );
+ static QColor GetColor(int i);
+
+ static Handle_Aspect_ColorScale showColorScale( bool );
private:
static OCCViewer_ViewManager* myViewManager;
static OCCViewer_ViewWindow* myViewWindow;
+ static QString myKey;
};
+
+#define CPPUNIT_ASSERT_IMAGES \
+ { \
+ QString aMessage; \
+ if( !TestViewer::AssertImages( aMessage ) ) \
+ { \
+ std::string aMessageStl = aMessage.toStdString(); \
+ CPPUNIT_FAIL( aMessageStl.c_str() ); \
+ } \
+ } \
+