From: asl Date: Fri, 3 Apr 2015 06:33:46 +0000 (+0300) Subject: refs #500: regression in bathymetry show in OCCT X-Git-Tag: BR_hydro_v_1_0_5~3^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d42f58f50359f69509a01137a9c9571f308d6bbb;p=modules%2Fhydro.git refs #500: regression in bathymetry show in OCCT --- diff --git a/src/HYDROGUI/HYDROGUI_Shape.cxx b/src/HYDROGUI/HYDROGUI_Shape.cxx index 4d20f3fd..c54bb9e0 100644 --- a/src/HYDROGUI/HYDROGUI_Shape.cxx +++ b/src/HYDROGUI/HYDROGUI_Shape.cxx @@ -666,3 +666,8 @@ void HYDROGUI_Shape::colorShapeBorder( const QColor& theColor ) } } } + +void HYDROGUI_Shape::setDisplayMode( int theDisplayMode ) +{ + myDisplayMode = theDisplayMode; +} diff --git a/src/HYDROGUI/HYDROGUI_Shape.h b/src/HYDROGUI/HYDROGUI_Shape.h index 397096cd..870f00f4 100644 --- a/src/HYDROGUI/HYDROGUI_Shape.h +++ b/src/HYDROGUI/HYDROGUI_Shape.h @@ -111,6 +111,8 @@ protected: virtual QColor getActiveColor() const; virtual Handle_AIS_InteractiveObject createShape() const; + void setDisplayMode( int theDisplayMode ); + private: static double getQuantityColorVal( const int theColorVal ); void colorShapeBorder( const QColor& theColor ); diff --git a/src/HYDROGUI/HYDROGUI_ShapeBathymetry.cxx b/src/HYDROGUI/HYDROGUI_ShapeBathymetry.cxx index bf417bac..2e43a726 100644 --- a/src/HYDROGUI/HYDROGUI_ShapeBathymetry.cxx +++ b/src/HYDROGUI/HYDROGUI_ShapeBathymetry.cxx @@ -37,6 +37,7 @@ HYDROGUI_ShapeBathymetry::HYDROGUI_ShapeBathymetry( HYDROGUI_OCCDisplayer* : HYDROGUI_Shape( theContext, theBathymetry, theZLayer ), myDisplayer( theDisplayer ) { + setDisplayMode( AIS_PointCloud::DM_Points ); } HYDROGUI_ShapeBathymetry::~HYDROGUI_ShapeBathymetry() @@ -68,6 +69,7 @@ Handle_AIS_InteractiveObject HYDROGUI_ShapeBathymetry::createShape() const if( !aBath.IsNull() ) { Handle_AIS_PointCloud aPntCloud = new HYDROGUI_BathymetryPrs(); + 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();