Handle(HYDROData_Bathymetry) aBath = Handle(HYDROData_Bathymetry)::DownCast( getObject() );
if( !aBath.IsNull() )
{
- aPntCloud = new HYDROGUI_BathymetryPrs();
+ aPntCloud = new HYDROGUI_BathymetryPrs( this );
//aPntCloud->SetHilightMode( AIS_PointCloud::DM_BndBox );
aPntCloud->Attributes()->SetPointAspect (new Prs3d_PointAspect (Aspect_TOM_POINT, Quantity_NOC_WHITE, 2.0));
if( prs.IsNull() )
return;
- QList<int> selection = selected();
+ QList<int> selection;
+ if( isOn )
+ selection = selected();
+
getContext()->ClearSelected();
prs->SetTextLabels( selection );
getAISObject()->Redisplay();