4 class OCCViewer_ViewManager;
5 class OCCViewer_Viewer;
6 class OCCViewer_ViewWindow;
10 class Handle_AIS_InteractiveObject;
11 class Handle_Aspect_ColorScale;
16 static OCCViewer_ViewManager* viewManager();
17 static OCCViewer_Viewer* viewer();
18 static OCCViewer_ViewWindow* viewWindow();
20 static void show( const Handle_AIS_InteractiveObject& theObject,
21 int theMode, int theSelelctionMode, bool isFitAll, const char* theKey );
22 static void show( const TopoDS_Shape& theShape, int theMode, bool isFitAll, const QColor& theColor );
23 static void show( const TopoDS_Shape& theShape, int theMode, bool isFitAll, const char* theKey );
24 static bool AssertImages( QString& theMessage );
25 static QColor GetColor(int i);
27 static Handle_Aspect_ColorScale showColorScale( bool );
29 static void select( int theViewX, int theViewY );
32 static OCCViewer_ViewManager* myViewManager;
33 static OCCViewer_ViewWindow* myViewWindow;
37 #define CPPUNIT_ASSERT_IMAGES \
40 if( !TestViewer::AssertImages( aMessage ) ) \
42 std::string aMessageStl = aMessage.toStdString(); \
43 CPPUNIT_FAIL( aMessageStl.c_str() ); \