X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDRO_tests%2Ftest_HYDROData_LandCoverMap.cxx;h=d4da4adba918cdfee33a94e49c709524dd6b132d;hb=670039d7a5d25b1da51956b668f212756d31a86e;hp=7e47eaf4007e682387c1d336f2b2de6e2afa4fac;hpb=abd3327f5dc022b2609e3eac816269b6b4dd9245;p=modules%2Fhydro.git diff --git a/src/HYDRO_tests/test_HYDROData_LandCoverMap.cxx b/src/HYDRO_tests/test_HYDROData_LandCoverMap.cxx index 7e47eaf4..d4da4adb 100644 --- a/src/HYDRO_tests/test_HYDROData_LandCoverMap.cxx +++ b/src/HYDRO_tests/test_HYDROData_LandCoverMap.cxx @@ -64,7 +64,7 @@ void test_HYDROData_LandCoverMap::test_add_2_objects() TestViewer::show( aMap->GetShape(), AIS_Shaded, true, "LandCoverMap_Add_2_Objects" ); CPPUNIT_ASSERT_IMAGES - HYDROData_LandCoverMap::Iterator anIt( aMap ); + HYDROData_LandCoverMap::Explorer anIt( aMap ); CPPUNIT_ASSERT_EQUAL( true, anIt.More() ); CPPUNIT_ASSERT_EQUAL( QString( "test1" ), anIt.StricklerType() ); anIt.Next(); @@ -99,7 +99,7 @@ void test_HYDROData_LandCoverMap::test_split() TestViewer::show( aWire, 0, true, Qt::blue ); CPPUNIT_ASSERT_IMAGES - HYDROData_LandCoverMap::Iterator anIt( aMap ); + HYDROData_LandCoverMap::Explorer anIt( aMap ); CPPUNIT_ASSERT_EQUAL( true, anIt.More() ); CPPUNIT_ASSERT_EQUAL( QString( "test1" ), anIt.StricklerType() ); anIt.Next(); @@ -134,7 +134,7 @@ void test_HYDROData_LandCoverMap::test_incomplete_split() TestViewer::show( aWire, 0, true, Qt::green ); CPPUNIT_ASSERT_IMAGES - HYDROData_LandCoverMap::Iterator anIt( aMap ); + HYDROData_LandCoverMap::Explorer anIt( aMap ); CPPUNIT_ASSERT_EQUAL( true, anIt.More() ); CPPUNIT_ASSERT_EQUAL( QString( "test1" ), anIt.StricklerType() ); anIt.Next(); @@ -448,7 +448,7 @@ void test_HYDROData_LandCoverMap::test_import_dbf() CPPUNIT_ASSERT_EQUAL( true, aMap->Split( aPolyline ) ); QList Inds = QList() << 1 << 2 << 3; aMap->ImportDBF(aFileName, "TESTFIELD1", aDBFV, aST, Inds); - HYDROData_LandCoverMap::Iterator anIt( aMap ); + HYDROData_LandCoverMap::Explorer anIt( aMap ); CPPUNIT_ASSERT_EQUAL( QString( "forest" ), anIt.StricklerType() ); anIt.Next(); @@ -914,8 +914,13 @@ void test_HYDROData_LandCoverMap::test_split_2() Handle(HYDROData_PolylineXY)::DownCast( aDoc->CreateObject( KIND_POLYLINEXY ) ); Polyline_9->AddSection( "Section_1", HYDROData_PolylineXY::SECTION_POLYLINE, false ); Polyline_9->AddPoint( 0, gp_XY( -103.92, 288.40 ) ); + Polyline_9->AddPoint( 0, gp_XY( -100.09, 285.22 ) ); + Polyline_9->AddPoint( 0, gp_XY( -96.10, 281.90 ) ); + Polyline_9->AddPoint( 0, gp_XY( -90.43, 277.19 ) ); Polyline_9->AddPoint( 0, gp_XY( -53.41, 246.43 ) ); Polyline_9->AddPoint( 0, gp_XY( 10.62, 245.01 ) ); + + Polyline_9->Update(); @@ -926,12 +931,14 @@ void test_HYDROData_LandCoverMap::test_split_2() CPPUNIT_ASSERT_EQUAL( true, LCM->Split( Polyline_9 ) ); - TestViewer::show( LCM->GetShape(), AIS_Shaded, true, "LCM_split_2a" ); + //Handle(HYDROGUI_LandCoverMapPrs) aPrs1 = new HYDROGUI_LandCoverMapPrs( LCM ); + TestViewer::show( LCM->GetShape(), AIS_Shaded, /*0,*/ true, "LCM_split_2a" ); CPPUNIT_ASSERT_IMAGES CPPUNIT_ASSERT_EQUAL( true, LCM->Split( Polyline_8 ) ); - TestViewer::show( LCM->GetShape(), AIS_Shaded, true, "LCM_split_2b" ); + // Handle(HYDROGUI_LandCoverMapPrs) aPrs2 = new HYDROGUI_LandCoverMapPrs( LCM ); + TestViewer::show( LCM->GetShape(), AIS_Shaded, /*0,*/ true, "LCM_split_2b" ); CPPUNIT_ASSERT_IMAGES aDoc->Close();