From: asl Date: Wed, 10 Sep 2014 07:40:28 +0000 (+0000) Subject: patch for correct bathymetry visualization in HYDRO X-Git-Tag: master_20140917~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a46541e0be13311c6bf3a14265f4f79d059af360;p=modules%2Fhydro.git patch for correct bathymetry visualization in HYDRO --- 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 ); }