void test_HYDROGUI_BathymetryPrs::test_presentation()
{
TestViewer::eraseAll( true, true );
- Handle(HYDROData_Document) aDoc = HYDROData_Document::Document(1);
-
+ Handle(HYDROData_Document) aDoc = HYDROData_Document::Document();
+
importTestBath( aDoc );
TestViewer::showColorScale( false );
void test_HYDROGUI_BathymetryPrs::test_selection()
{
TestViewer::eraseAll( true, true );
- Handle(HYDROData_Document) aDoc = HYDROData_Document::Document(1);
+ Handle(HYDROData_Document) aDoc = HYDROData_Document::Document();
importTestBath( aDoc );
TestViewer::showColorScale( false );
void test_HYDROGUI_BathymetryPrs::test_rescale_by_selection()
{
TestViewer::eraseAll( true, true );
- Handle(HYDROData_Document) aDoc = HYDROData_Document::Document(1);
+ Handle(HYDROData_Document) aDoc = HYDROData_Document::Document();
importTestBath( aDoc );
TestViewer::showColorScale( false );
double min, max;
myBathPrs->GetRange( min, max );
- CPPUNIT_ASSERT_DOUBLES_EQUAL( 177.78, min, EPS );
+ CPPUNIT_ASSERT_DOUBLES_EQUAL( 175.56, min, EPS );
CPPUNIT_ASSERT_DOUBLES_EQUAL( 182.70, max, EPS );
TestViewer::colorScale()->GetRange( min, max );
void test_HYDROGUI_BathymetryPrs::test_rescale_by_visible()
{
TestViewer::eraseAll( true, true );
- Handle(HYDROData_Document) aDoc = HYDROData_Document::Document(1);
+ Handle(HYDROData_Document) aDoc = HYDROData_Document::Document();
importTestBath( aDoc );
TestViewer::showColorScale( false );
void test_HYDROGUI_BathymetryPrs::test_text_presentation()
{
TestViewer::eraseAll( true, true );
- Handle(HYDROData_Document) aDoc = HYDROData_Document::Document(1);
+ Handle(HYDROData_Document) aDoc = HYDROData_Document::Document();
importTestBath( aDoc );
TestViewer::showColorScale( false );
void test_HYDROGUI_BathymetryPrs::test_rescale_default()
{
TestViewer::eraseAll( true, true );
- Handle(HYDROData_Document) aDoc = HYDROData_Document::Document(1);
+ Handle(HYDROData_Document) aDoc = HYDROData_Document::Document();
importTestBath( aDoc );
TestViewer::showColorScale( false );
void test_HYDROGUI_BathymetryPrs::test_fit_on_selected()
{
TestViewer::eraseAll( true, true );
- Handle(HYDROData_Document) aDoc = HYDROData_Document::Document(1);
+ Handle(HYDROData_Document) aDoc = HYDROData_Document::Document();
importTestBath( aDoc );
TestViewer::showColorScale( false );