]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
debug of land cover map operations
authorasl <asl@opencascade.com>
Thu, 12 Nov 2015 04:58:17 +0000 (07:58 +0300)
committerasl <asl@opencascade.com>
Thu, 12 Nov 2015 04:58:42 +0000 (07:58 +0300)
src/HYDRO_tests/TestViewer.h
src/HYDRO_tests/test_HYDROData_LandCoverMap.cxx

index a3130ad35c04d01f6bd6a363268e02e4b499e164..c7be51fb9439f8fbf7d05c6342194005763bd1b6 100644 (file)
@@ -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 );
index 7e47eaf4007e682387c1d336f2b2de6e2afa4fac..2f9896cf45f3ff9ba3065e286768014dc25389bc 100644 (file)
@@ -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();