From: asl Date: Thu, 12 Nov 2015 04:58:17 +0000 (+0300) Subject: debug of land cover map operations X-Git-Tag: v1.5~44^2~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9bb93d980a5c5ccf9e60f26031548cc048aa8084;p=modules%2Fhydro.git debug of land cover map operations --- diff --git a/src/HYDRO_tests/TestViewer.h b/src/HYDRO_tests/TestViewer.h index a3130ad3..c7be51fb 100644 --- a/src/HYDRO_tests/TestViewer.h +++ b/src/HYDRO_tests/TestViewer.h @@ -35,7 +35,7 @@ public: static OCCViewer_ViewWindow* viewWindow(); static void show( const Handle_AIS_InteractiveObject& theObject, - int theMode, int theSelelctionMode, bool isFitAll, const char* theKey ); + int theMode, int theSelectionMode, bool isFitAll, const char* theKey ); static void show( const TopoDS_Shape& theShape, int theMode, bool isFitAll, const QColor& theColor ); static void show( const TopoDS_Shape& theShape, int theMode, bool isFitAll, const char* theKey ); static bool AssertImages( QString& theMessage ); diff --git a/src/HYDRO_tests/test_HYDROData_LandCoverMap.cxx b/src/HYDRO_tests/test_HYDROData_LandCoverMap.cxx index 7e47eaf4..2f9896cf 100644 --- a/src/HYDRO_tests/test_HYDROData_LandCoverMap.cxx +++ b/src/HYDRO_tests/test_HYDROData_LandCoverMap.cxx @@ -926,12 +926,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( aPrs1, 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( aPrs2, AIS_Shaded, 0, true, "LCM_split_2b" ); CPPUNIT_ASSERT_IMAGES aDoc->Close();