From a46541e0be13311c6bf3a14265f4f79d059af360 Mon Sep 17 00:00:00 2001 From: asl Date: Wed, 10 Sep 2014 07:40:28 +0000 Subject: [PATCH] patch for correct bathymetry visualization in HYDRO --- src/HYDROGUI/HYDROGUI_ShapeBathymetry.cxx | 2 +- src/HYDROGUI/HYDROGUI_ZLayers2.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/HYDROGUI/HYDROGUI_ShapeBathymetry.cxx b/src/HYDROGUI/HYDROGUI_ShapeBathymetry.cxx index 57638435..9d4d25ad 100644 --- a/src/HYDROGUI/HYDROGUI_ShapeBathymetry.cxx +++ b/src/HYDROGUI/HYDROGUI_ShapeBathymetry.cxx @@ -68,7 +68,7 @@ Handle_AIS_InteractiveObject HYDROGUI_ShapeBathymetry::createShape() const if( !aBath.IsNull() ) { Handle_AIS_PointCloud aPntCloud = new HYDROGUI_BathymetryPrs(); - aPntCloud->Attributes()->SetPointAspect (new Prs3d_PointAspect (Aspect_TOM_POINT, Quantity_NOC_WHITE, 1.0)); + //aPntCloud->Attributes()->SetPointAspect (new Prs3d_PointAspect (Aspect_TOM_POINT, Quantity_NOC_WHITE, 1.0)); const HYDROData_Bathymetry::AltitudePoints& aBathPoints = aBath->GetAltitudePoints(); int aLower = aBathPoints.Lower(); diff --git a/src/HYDROGUI/HYDROGUI_ZLayers2.cxx b/src/HYDROGUI/HYDROGUI_ZLayers2.cxx index bacb4db1..323aa4a3 100644 --- a/src/HYDROGUI/HYDROGUI_ZLayers2.cxx +++ b/src/HYDROGUI/HYDROGUI_ZLayers2.cxx @@ -39,8 +39,8 @@ void UpdateZLayersOfHilightPresentationsOfDisplayedObjects( const Handle_AIS_Int Handle(AIS_InteractiveObject) aPrsObj = aListIter.Value(); if( !aPrsObj.IsNull() ) { - theContext->MainPrsMgr()->Color( aPrsObj ); int aMode = aPrsObj->HasHilightMode() ? aPrsObj->HilightMode() : 0; + theContext->MainPrsMgr()->Color( aPrsObj, Quantity_NOC_YELLOW, aMode ); SetPrsZLayer( aPrsObj, aMode, theLayer ); theContext->MainPrsMgr()->Unhighlight( aPrsObj, aMode ); } -- 2.39.2