From 9bb93d980a5c5ccf9e60f26031548cc048aa8084 Mon Sep 17 00:00:00 2001 From: asl Date: Thu, 12 Nov 2015 07:58:17 +0300 Subject: [PATCH] debug of land cover map operations --- src/HYDRO_tests/TestViewer.h | 2 +- src/HYDRO_tests/test_HYDROData_LandCoverMap.cxx | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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(); -- 2.39.2