From: isn Date: Mon, 11 Dec 2017 09:41:38 +0000 (+0300) Subject: Merge remote-tracking branch 'remotes/origin/BR_2017' into HEAD X-Git-Tag: v2.1.1__salome84~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=41550a623dca7d2de1b388c9832fe3642d2b8753;p=modules%2Fhydro.git Merge remote-tracking branch 'remotes/origin/BR_2017' into HEAD Conflicts: src/HYDROGUI/HYDROGUI_BathymetrySelectionOp.cxx src/HYDROGUI/HYDROGUI_ShapeBathymetry.cxx --- 41550a623dca7d2de1b388c9832fe3642d2b8753 diff --cc src/HYDROGUI/HYDROGUI_BathymetrySelectionOp.cxx index 7a18167d,165dcc88..dd5fb3cf --- a/src/HYDROGUI/HYDROGUI_BathymetrySelectionOp.cxx +++ b/src/HYDROGUI/HYDROGUI_BathymetrySelectionOp.cxx @@@ -90,8 -91,10 +91,9 @@@ void HYDROGUI_BathymetrySelectionOp::ac if( myIsActive==isActive ) return; + getContext( module() )->ClearSelected(true); - + qApp->setOverrideCursor( Qt::WaitCursor ); - - getContext( module() )->ClearSelected(); - ++ getContext( module() )->ClearSelected(true); Handle(AIS_InteractiveContext) ctx = getContext( module() ); QList baths = getShownBathymetries( module() ); if( isActive ) diff --cc src/HYDROGUI/HYDROGUI_ShapeBathymetry.cxx index ddb5d785,f59c3302..c9416967 --- a/src/HYDROGUI/HYDROGUI_ShapeBathymetry.cxx +++ b/src/HYDROGUI/HYDROGUI_ShapeBathymetry.cxx @@@ -247,7 -304,10 +304,10 @@@ void HYDROGUI_ShapeBathymetry::Rescale setToUpdateColorScale( true ); if( !getAISObjects().isEmpty() ) - getAISObjects()[0]->Redisplay(); + { + getContext()->RecomputePrsOnly( getAISObjects()[0] ); + //getAISObjects()[0]->Redisplay(); - } ++} } void HYDROGUI_ShapeBathymetry::RescaleDefault() @@@ -295,8 -355,10 +355,11 @@@ void HYDROGUI_ShapeBathymetry::TextLabe if( isOn ) selection = selected(); - //getContext()->ClearSelected(); ++ + getContext()->ClearSelected(true); prs->SetTextLabels( selection ); - prs->Redisplay(); + getContext()->RecomputePrsOnly( prs, Standard_False, Standard_False ); + //prs->Redisplay(); + if( isUpdateCurrentViewer ) - getContext()->UpdateCurrentViewer(); + getContext()->UpdateCurrentViewer(); } diff --cc src/HYDRO_tests/TestViewer.cxx index 6e20be46,7210c108..3f886a5c --- a/src/HYDRO_tests/TestViewer.cxx +++ b/src/HYDRO_tests/TestViewer.cxx @@@ -173,6 -173,6 +173,7 @@@ void TestViewer::show( const TopoDS_Sha int theUIANb, int theVIANb) { Handle(AIS_Shape) aShape = new AIS_Shape( theShape ); ++ cout <Attributes()->PointAspect()->SetTypeOfMarker( Aspect_TOM_X ); if (theShape.ShapeType()==TopAbs_FACE) diff --cc src/HYDRO_tests/test_HYDROData_LandCoverMap.cxx index 43320fc9,43320fc9..922a7c33 --- a/src/HYDRO_tests/test_HYDROData_LandCoverMap.cxx +++ b/src/HYDRO_tests/test_HYDROData_LandCoverMap.cxx @@@ -569,7 -569,7 +569,7 @@@ void test_HYDROData_LandCoverMap::test_ aDoc->Close(); } -- ++#include void test_HYDROData_LandCoverMap::test_land_cover_prs_by_types() { Handle(HYDROData_Document) aDoc = HYDROData_Document::Document(1); @@@ -600,7 -600,7 +600,23 @@@ // show presentation in viewer TestViewer::show( aPrs, AIS_Shaded, 4, true, "LandCoverMap_PrsByTypes" ); // select one of faces (first) -- TestViewer::select( 200, 300 ); ++ TestViewer::select( 200, 300 ); ++ QTest::qWait(1000); ++ TestViewer::select( 220, 300 ); ++ QTest::qWait(1000); ++ TestViewer::select( 250, 300 ); ++ QTest::qWait(1000); ++ TestViewer::select( 300, 300 ); ++ QTest::qWait(1000); ++ TestViewer::select( 200, 350 ); ++ QTest::qWait(1000); ++ TestViewer::select( 200, 500 ); ++ QTest::qWait(1000); ++ TestViewer::select( 250, 400 ); ++ QTest::qWait(1000); ++ TestViewer::select( 300, 99 ); ++ QTest::qWait(1000); ++ CPPUNIT_ASSERT_IMAGES TestViewer::eraseAll(true, true); aDoc->Close(); @@@ -635,6 -635,6 +651,7 @@@ void test_HYDROData_LandCoverMap::test_ TestViewer::showColorScale( true ); aPrs->SetColorScale( TestViewer::colorScale() ); TestViewer::show( aPrs, AIS_Shaded, 4, true, "LandCoverMap_PrsByCoeff" ); ++ CPPUNIT_ASSERT_IMAGES TestViewer::showColorScale( false );