BRep_Builder B;
TopoDS_Shape shape;
std::string fname = (REF_DATA_PATH + "/test_zone.brep").toStdString();
+ std::cout << "Loading shape: " << fname << std::endl;
BRepTools::Read( shape, fname.c_str(), B );
TestViewer::show( shape, AIS_Shaded, true, 0x03399FF );
create();
showShape();
TestViewer::viewWindow()->onTopView();
+ QTest::mouseMove( TestViewer::viewWindow() );
OCCViewer_ViewWindow* aMain = TestViewer::viewWindow()->getView( OCCViewer_ViewFrame::MAIN_VIEW );
OCCViewer_ViewPort3d* vp = aMain->getViewPort();
qApp->processEvents();
CPPUNIT_ASSERT_OVERVIEW( "overview_zoomed_1" );
- QTest::qWait( 50000 );
+ QTest::mouseMove( myOverview->getViewPort(false), QPoint( 150, 50 ) );
+ QTest::mouseClick( myOverview->getViewPort(false), Qt::LeftButton, Qt::KeyboardModifiers(), QPoint( 150, 50 ) );
+ qApp->processEvents();
+
+ CPPUNIT_ASSERT_OVERVIEW( "overview_drag" );
+
+ //QTest::qWait( 50000 );
}