theColorScale->FindColor( z, aColor );
myColors->SetValue( i, aColor );
}
- Handle(HYDROGUI_BathymetryPrs) aPntCloud = Handle(HYDROGUI_BathymetryPrs)::DownCast( getAISObject()[0] );
+ Handle(HYDROGUI_BathymetryPrs) aPntCloud = Handle(HYDROGUI_BathymetryPrs)::DownCast( getAISObjects()[0] );
aPntCloud->SetPoints( myCoords, myColors );
getContext()->RecomputePrsOnly( aPntCloud, Standard_True );
getContext()->RecomputeSelectionOnly( aPntCloud );
myMin = qMin( theMin, theMax );
myMax = qMax( theMin, theMax );
setToUpdateColorScale( true );
- getAISObject()->Redisplay();
+ getAISObjects()[0]->Redisplay();
}
void HYDROGUI_ShapeBathymetry::RescaleDefault()
void HYDROGUI_ShapeBathymetry::TextLabels( bool isOn )
{
- Handle(HYDROGUI_BathymetryPrs) prs = Handle(HYDROGUI_BathymetryPrs)::DownCast( getAISObject() );
+ Handle(HYDROGUI_BathymetryPrs) prs = Handle(HYDROGUI_BathymetryPrs)::DownCast( getAISObjects()[0] );
if( prs.IsNull() )
return;
getContext()->ClearSelected();
prs->SetTextLabels( selection );
- getAISObject()->Redisplay();
+ getAISObjects()[0]->Redisplay();
}
#include <TestViewer.h>
#include <AIS_ColorScale.hxx>
#include <OCCViewer_ViewWindow.h>
+#include <OCCViewer_ViewFrame.h>
#include <OCCViewer_ViewPort3d.h>
#include <QTest>
{
myBathPrs = new HYDROGUI_ShapeBathymetry( 0, TestViewer::context(), myBath );
myBathPrs->Build();
- myBathPrs->getAISObject()->SetAutoHilight( Standard_False );
+ myBathPrs->getAISObjects()[0]->SetAutoHilight( Standard_False );
double min, max;
myBathPrs->GetRange( min, max );
createBathPrs();
updateColors();
- Handle(AIS_InteractiveObject) bprs = myBathPrs->getAISObject();
+ Handle(AIS_InteractiveObject) bprs = myBathPrs->getAISObjects()[0];
CPPUNIT_ASSERT( !bprs.IsNull() );
TestViewer::show( bprs, 0, 0, true, "bathy_prs" );
createBathPrs();
updateColors();
- Handle(AIS_InteractiveObject) bprs = myBathPrs->getAISObject();
+ Handle(AIS_InteractiveObject) bprs = myBathPrs->getAISObjects()[0];
CPPUNIT_ASSERT( !bprs.IsNull() );
TestViewer::show( bprs, 0, 1, true, "bathy_prs" );
createBathPrs();
updateColors();
- Handle(AIS_InteractiveObject) bprs = myBathPrs->getAISObject();
+ Handle(AIS_InteractiveObject) bprs = myBathPrs->getAISObjects()[0];
CPPUNIT_ASSERT( !bprs.IsNull() );
TestViewer::show( bprs, 0, 1, true, "bathy_prs" );
createBathPrs();
updateColors();
- Handle(AIS_InteractiveObject) bprs = myBathPrs->getAISObject();
+ Handle(AIS_InteractiveObject) bprs = myBathPrs->getAISObjects()[0];
CPPUNIT_ASSERT( !bprs.IsNull() );
TestViewer::show( bprs, 0, 1, true, "bathy_prs" );
createBathPrs();
updateColors();
- Handle(AIS_InteractiveObject) bprs = myBathPrs->getAISObject();
+ Handle(AIS_InteractiveObject) bprs = myBathPrs->getAISObjects()[0];
CPPUNIT_ASSERT( !bprs.IsNull() );
TestViewer::show( bprs, 0, 1, true, "bathy_prs" );
createBathPrs();
updateColors();
- Handle(AIS_InteractiveObject) bprs = myBathPrs->getAISObject();
+ Handle(AIS_InteractiveObject) bprs = myBathPrs->getAISObjects()[0];
CPPUNIT_ASSERT( !bprs.IsNull() );
TestViewer::show( bprs, 0, 1, true, "bathy_prs" );
createBathPrs();
updateColors();
- Handle(AIS_InteractiveObject) bprs = myBathPrs->getAISObject();
+ Handle(AIS_InteractiveObject) bprs = myBathPrs->getAISObjects()[0];
CPPUNIT_ASSERT( !bprs.IsNull() );
TestViewer::show( bprs, 0, 1, true, "bathy_prs" );