HYDROGUI_BathymetryPrs::HYDROGUI_BathymetryPrs()
{
SetHilightMode( BATH_HIGHLIGHT_MODE );
- SetAutoHilight( Standard_True );
+ SetAutoHilight( Standard_False );
}
HYDROGUI_BathymetryPrs::~HYDROGUI_BathymetryPrs()
void test_HYDROGUI_BathymetryPrs::test_selection()
{
+ TestViewer::eraseAll( true );
Handle(HYDROData_Document) aDoc = HYDROData_Document::Document(1);
importTestBath( aDoc );
void test_HYDROGUI_BathymetryPrs::test_rescale_by_selection()
{
+ TestViewer::eraseAll( true );
Handle(HYDROData_Document) aDoc = HYDROData_Document::Document(1);
importTestBath( aDoc );
myBathPrs->RescaleBySelection();
updateColors(); // In HYDRO GUI it should be done by displayer
+ //QTest::qWait( 50000 );
+
double min, max;
myBathPrs->GetRange( min, max );
CPPUNIT_ASSERT_DOUBLES_EQUAL( 177.78, min, EPS );
void test_HYDROGUI_BathymetryPrs::test_rescale_by_visible()
{
+ TestViewer::eraseAll( true );
Handle(HYDROData_Document) aDoc = HYDROData_Document::Document(1);
importTestBath( aDoc );
CPPUNIT_ASSERT_IMAGES;
//QTest::qWait( 50000 );
+ aDoc->Close();
+ TestViewer::eraseAll( true );
}
void test_HYDROGUI_BathymetryPrs::test_text_presentation()
{
+ TestViewer::eraseAll( true );
Handle(HYDROData_Document) aDoc = HYDROData_Document::Document(1);
importTestBath( aDoc );
void test_HYDROGUI_BathymetryPrs::test_rescale_default()
{
+ TestViewer::eraseAll( true );
Handle(HYDROData_Document) aDoc = HYDROData_Document::Document(1);
importTestBath( aDoc );