if( myIsActive==isActive )
return;
-
+ getContext( module() )->ClearSelected(true);
-
- getContext( module() )->ClearSelected();
-
+ qApp->setOverrideCursor( Qt::WaitCursor );
++ getContext( module() )->ClearSelected(true);
Handle(AIS_InteractiveContext) ctx = getContext( module() );
QList<Handle(HYDROGUI_BathymetryPrs)> baths = getShownBathymetries( module() );
if( isActive )
setToUpdateColorScale( true );
if( !getAISObjects().isEmpty() )
- getAISObjects()[0]->Redisplay();
+ {
+ getContext()->RecomputePrsOnly( getAISObjects()[0] );
+ //getAISObjects()[0]->Redisplay();
- }
++}
}
void HYDROGUI_ShapeBathymetry::RescaleDefault()
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();
}
int theUIANb, int theVIANb)
{
Handle(AIS_Shape) aShape = new AIS_Shape( theShape );
++ cout <<theShape;
if( theShape.ShapeType()==TopAbs_VERTEX )
aShape->Attributes()->PointAspect()->SetTypeOfMarker( Aspect_TOM_X );
if (theShape.ShapeType()==TopAbs_FACE)
aDoc->Close();
}
--
++#include <QTest>
void test_HYDROData_LandCoverMap::test_land_cover_prs_by_types()
{
Handle(HYDROData_Document) aDoc = HYDROData_Document::Document(1);
// 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();
TestViewer::showColorScale( true );
aPrs->SetColorScale( TestViewer::colorScale() );
TestViewer::show( aPrs, AIS_Shaded, 4, true, "LandCoverMap_PrsByCoeff" );
++
CPPUNIT_ASSERT_IMAGES
TestViewer::showColorScale( false );