]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
patch for correct bathymetry visualization in HYDRO
authorasl <asl@opencascade.com>
Wed, 10 Sep 2014 07:40:28 +0000 (07:40 +0000)
committerasl <asl@opencascade.com>
Wed, 10 Sep 2014 07:40:28 +0000 (07:40 +0000)
src/HYDROGUI/HYDROGUI_ShapeBathymetry.cxx
src/HYDROGUI/HYDROGUI_ZLayers2.cxx

index 5763843592c37e8823c1693ced4aa78d6eac9354..9d4d25ad020bf5db83f812eac24f6a8dcc2d31f3 100644 (file)
@@ -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();
index bacb4db1146dbaa8cd284794da27d6a786c2772e..323aa4a3503e2c0cbd400b1d0a2298e938345c4c 100644 (file)
@@ -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 );
     }