}
}
+bool TestViewer::ColorScaleIsDisplayed()
+{
+ Handle(V3d_View) aView = myViewWindow->getViewPort()->getView();
+ if( aView.IsNull() )
+ return false;
+ return aView->ColorScaleIsDisplayed();
+}
+
void TestViewer::select( int theViewX, int theViewY )
{
Handle(V3d_View) aView = myViewWindow->getViewPort()->getView();
static Handle_Aspect_ColorScale colorScale();
static void showColorScale( bool );
+ static bool ColorScaleIsDisplayed();
static void select( int theViewX, int theViewY );
CPPUNIT_ASSERT_EQUAL( 11, (int)profiles.Size() );
-
-
Handle(HYDROData_DTM) DTM = Handle(HYDROData_DTM)::DownCast( aDoc->CreateObject( KIND_DTM ) );
DTM->SetProfiles( profiles );
DTM->SetDDZ( 0.1 );
DTM->Update();
CPPUNIT_ASSERT_EQUAL( 282338, (int)DTM->GetAltitudePoints().size() );
-
+
Handle_AIS_InteractiveContext aContext = TestViewer::context();
HYDROGUI_ShapeBathymetry* aBathPrs = new HYDROGUI_ShapeBathymetry( 0, aContext, DTM );
aBathPrs->update( true, false );
+
+ bool ColorScaleIsDisp = TestViewer::ColorScaleIsDisplayed();
TestViewer::showColorScale( true );
Handle_Aspect_ColorScale aCS = TestViewer::colorScale();
QImage aDTMPrs = draw_DTM( aBathPrs, 0.5, 600, 600 );
CPPUNIT_ASSERT_IMAGES2( &aDTMPrs, "DTM_2" );
+ TestViewer::showColorScale( ColorScaleIsDisp );
delete aBathPrs;
-
aDoc->Close();
+
}