]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
refs #500: regression in bathymetry show in OCCT
authorasl <asl@opencascade.com>
Fri, 3 Apr 2015 06:33:46 +0000 (09:33 +0300)
committerasl <asl@opencascade.com>
Fri, 3 Apr 2015 06:33:46 +0000 (09:33 +0300)
src/HYDROGUI/HYDROGUI_Shape.cxx
src/HYDROGUI/HYDROGUI_Shape.h
src/HYDROGUI/HYDROGUI_ShapeBathymetry.cxx

index 4d20f3fdee5b16ca403cd8e696885f70313527ff..c54bb9e099c9d9a58b6a8da27dfd985f86e05da9 100644 (file)
@@ -666,3 +666,8 @@ void HYDROGUI_Shape::colorShapeBorder( const QColor& theColor )
     }
   }
 }
+
+void HYDROGUI_Shape::setDisplayMode( int theDisplayMode )
+{
+  myDisplayMode = theDisplayMode;
+}
index 397096cd2e13e9954ebbe2036552ace9c2ba459d..870f00f4c0aad5bc7a2d5befa8f8134eb25ff3bf 100644 (file)
@@ -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 );
index bf417bacb6586d455084c3dac8f687997aded7a4..2e43a726d42c5b0f361e4da842600ecbdfacf830 100644 (file)
@@ -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();