HYDROGUI_BathymetryPrs::HYDROGUI_BathymetryPrs()
{
SetHilightMode( BATH_HIGHLIGHT_MODE );
- SetAutoHilight( Standard_False );
+ SetAutoHilight( Standard_True );
}
HYDROGUI_BathymetryPrs::~HYDROGUI_BathymetryPrs()
const Handle(SelectMgr_EntityOwner)& theOwner )
{
Handle(HYDROGUI_BathymetryPointOwner) anOwner = Handle(HYDROGUI_BathymetryPointOwner)::DownCast( theOwner );
+ if( anOwner.IsNull() )
+ return;
gp_Pnt p = GetPoint( anOwner->GetIndex() );
thePoints->AddVertex( p );
}
if( !aBath.IsNull() )
{
aPntCloud = new HYDROGUI_BathymetryPrs();
- aPntCloud->SetHilightMode( AIS_PointCloud::DM_BndBox );
+ //aPntCloud->SetHilightMode( AIS_PointCloud::DM_BndBox );
aPntCloud->Attributes()->SetPointAspect (new Prs3d_PointAspect (Aspect_TOM_POINT, Quantity_NOC_WHITE, 2.0));
const HYDROData_Bathymetry::AltitudePoints& aBathPoints = aBath->GetAltitudePoints();
theColorScale->FindColor( z, aColor );
myColors->SetValue( i, aColor );
}
- Handle(AIS_PointCloud) aPntCloud = Handle(AIS_PointCloud)::DownCast( getAISObject() );
+ Handle(HYDROGUI_BathymetryPrs) aPntCloud = Handle(HYDROGUI_BathymetryPrs)::DownCast( getAISObject() );
aPntCloud->SetPoints( myCoords, myColors );
getContext()->RecomputePrsOnly( aPntCloud, Standard_True );
+ getContext()->RecomputeSelectionOnly( aPntCloud );
}
void HYDROGUI_ShapeBathymetry::setVisible( const bool theState,