#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" );