{
myBathPrs = new HYDROGUI_ShapeBathymetry( 0, TestViewer::context(), myBath );
myBathPrs->Build();
+ myBathPrs->getAISObject()->SetAutoHilight( Standard_False );
double min, max;
myBathPrs->GetRange( min, max );
TestViewer::setKey( "bathy_selection" );
CPPUNIT_ASSERT_IMAGES
+ select( 5, 5, 6, 6 );
+ TestViewer::setKey( "bathy_prs" );
+ CPPUNIT_ASSERT_IMAGES
+
//QTest::qWait( 50000 );
aDoc->Close();
TestViewer::setKey( "bathy_text_labels" );
CPPUNIT_ASSERT_IMAGES;
+ // Disable text labels
+ myBathPrs->TextLabels( false );
+ vp->fitAll();
+ qApp->processEvents();
+ TestViewer::setKey( "bathy_prs" );
+ CPPUNIT_ASSERT_IMAGES;
+
+ // Special case: flag=false + non-empty selection
+ select( x1, y1, x2, y2 );
+ myBathPrs->TextLabels( false );
+ vp->fitAll();
+ qApp->processEvents();
+ TestViewer::setKey( "bathy_prs" );
+ CPPUNIT_ASSERT_IMAGES;
+
+
//QTest::qWait( 50000 );
aDoc->Close();