]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
porting to salome 8.4
authorisn <isn@opencascade.com>
Wed, 29 Nov 2017 18:15:57 +0000 (21:15 +0300)
committerisn <isn@opencascade.com>
Wed, 29 Nov 2017 18:15:57 +0000 (21:15 +0300)
84 files changed:
src/HYDROData/HYDROData_Channel.cxx
src/HYDROData/HYDROData_DTM.cxx
src/HYDROData/HYDROData_Document.h
src/HYDROData/HYDROData_Entity.cxx
src/HYDROData/HYDROData_Entity.h
src/HYDROData/HYDROData_LandCoverMap.cxx
src/HYDROData/HYDROData_PolylineXY.cxx
src/HYDROData/HYDROData_Region.cxx
src/HYDROData/HYDROData_ShapesGroup.cxx
src/HYDROData/HYDROData_SplitToZonesTool.cxx
src/HYDROData/HYDROData_SplitToZonesTool.h
src/HYDROData/HYDROData_Transform.cxx
src/HYDROData/HYDROData_Transform.h
src/HYDROGUI/HYDROGUI_AISTrihedron.cxx
src/HYDROGUI/HYDROGUI_BathymetrySelectionOp.cxx
src/HYDROGUI/HYDROGUI_LandCoverMapOp.cxx
src/HYDROGUI/HYDROGUI_LandCoverMapPrs.cxx
src/HYDROGUI/HYDROGUI_OCCDisplayer.cxx
src/HYDROGUI/HYDROGUI_ShapeBathymetry.cxx
src/HYDROGUI/HYDROGUI_SplitPolylinesOp.cxx
src/HYDROGUI/HYDROGUI_ViewerDlg.cxx
src/HYDROGUI/HYDROGUI_ZLayers2.cxx
src/HYDRO_tests/CMakeLists.txt
src/HYDRO_tests/TestViewer.cxx
src/HYDRO_tests/TestViewer.h
src/HYDRO_tests/reference_data/win32/CLC06-cut_1_res.png
src/HYDRO_tests/reference_data/win32/DTM_1.png
src/HYDRO_tests/reference_data/win32/DTM_2.png
src/HYDRO_tests/reference_data/win32/Extraction_Channel.png
src/HYDRO_tests/reference_data/win32/Extraction_ImmZone.png
src/HYDRO_tests/reference_data/win32/LCM_copied.png
src/HYDRO_tests/reference_data/win32/LCM_split_2a.png
src/HYDRO_tests/reference_data/win32/LCM_split_2b.png
src/HYDRO_tests/reference_data/win32/LandCoverMap_Add_2_Objects.png
src/HYDRO_tests/reference_data/win32/LandCoverMap_Merge_1.png
src/HYDRO_tests/reference_data/win32/LandCoverMap_Merge_2.png
src/HYDRO_tests/reference_data/win32/LandCoverMap_PrsByCoeff.png
src/HYDRO_tests/reference_data/win32/LandCoverMap_PrsByTypes.png
src/HYDRO_tests/reference_data/win32/LandCoverMap_Remove_1.png
src/HYDRO_tests/reference_data/win32/LandCoverMap_Split_1.png
src/HYDRO_tests/reference_data/win32/LandCoverMap_Split_2.png
src/HYDRO_tests/reference_data/win32/LandCoverMap_Split_Polyline.png
src/HYDRO_tests/reference_data/win32/LandCoverMap_TransparentPrs.png
src/HYDRO_tests/reference_data/win32/LandCover_Triangles.png
src/HYDRO_tests/reference_data/win32/LandCover_Triangles_Split.png
src/HYDRO_tests/reference_data/win32/Merge_Polylines.png
src/HYDRO_tests/reference_data/win32/NLD_water_areas_dcw.png
src/HYDRO_tests/reference_data/win32/Polyline_Presentation.png
src/HYDRO_tests/reference_data/win32/Polyline_Presentation_triangle.png
src/HYDRO_tests/reference_data/win32/Shape_preview_im_zone.png
src/HYDRO_tests/reference_data/win32/Split_Polylines_Colors.png
src/HYDRO_tests/reference_data/win32/Split_Straight.png
src/HYDRO_tests/reference_data/win32/bathy_prs.png
src/HYDRO_tests/reference_data/win32/bathy_prs_fit_selected.png
src/HYDRO_tests/reference_data/win32/bathy_rescaled_selection.png
src/HYDRO_tests/reference_data/win32/bathy_rescaled_user.png
src/HYDRO_tests/reference_data/win32/bathy_rescaled_visible.png
src/HYDRO_tests/reference_data/win32/bathy_selection.png
src/HYDRO_tests/reference_data/win32/bathy_text_labels.png
src/HYDRO_tests/reference_data/win32/cc_int_w_3.png
src/HYDRO_tests/reference_data/win32/clc_dec_150_350.png
src/HYDRO_tests/reference_data/win32/cyprus_natural_all.png
src/HYDRO_tests/reference_data/win32/lcm_poly_2_sections.png
src/HYDRO_tests/reference_data/win32/merge_faces_boxes_11.png
src/HYDRO_tests/reference_data/win32/merge_faces_boxes_12.png
src/HYDRO_tests/reference_data/win32/merge_faces_boxes_13.png
src/HYDRO_tests/reference_data/win32/merge_faces_boxes_14.png
src/HYDRO_tests/reference_data/win32/merge_faces_boxes_21.png
src/HYDRO_tests/reference_data/win32/merge_faces_boxes_22.png
src/HYDRO_tests/reference_data/win32/merge_faces_boxes_23.png
src/HYDRO_tests/reference_data/win32/merge_faces_boxes_24.png
src/HYDRO_tests/reference_data/win32/merge_faces_circles_11.png
src/HYDRO_tests/reference_data/win32/merge_faces_circles_12.png
src/HYDRO_tests/reference_data/win32/merge_faces_circles_13.png
src/HYDRO_tests/reference_data/win32/merge_faces_circles_14.png
src/HYDRO_tests/reference_data/win32/merge_faces_circles_21.png
src/HYDRO_tests/reference_data/win32/merge_faces_circles_22.png
src/HYDRO_tests/reference_data/win32/merge_faces_circles_23.png
src/HYDRO_tests/reference_data/win32/merge_faces_circles_24.png
src/HYDRO_tests/reference_data/win32/rebuild_cmp_out.png
src/HYDRO_tests/reference_data/win32/stream_dtm_2d.png
src/HYDRO_tests/reference_data/win32/stream_dtm_3d.png
src/HYDRO_tests/test_HYDROData_DTM.cxx
src/HYDRO_tests/test_HYDROData_PolylineXY.cxx

index 526589c534ddbc005c9bf3c861e65cd29b350adf..d4645ea4e0f98d64f035f7dabb783373e2d4fe6a 100644 (file)
@@ -60,6 +60,8 @@
 #include <TopoDS_Wire.hxx>
 #include <TopoDS_Vertex.hxx>
 
+#include <Quantity_Parameter.hxx>
+
 #define DEB_CHANNEL 1
 #ifdef DEB_CHANNEL
 #include <BRepTools.hxx>
index 3313bfe03501bdf03c81fd6b2206dbd141986751..f4fe6efab22e4c971185e987ed2750b4bf8bbb52 100644 (file)
@@ -58,6 +58,7 @@
 #include <TopTools_ListIteratorOfListOfShape.hxx>
 #include <TopTools_SequenceOfShape.hxx>
 #include <assert.h>
+#include <float.h>
 
 IMPLEMENT_STANDARD_RTTIEXT( HYDROData_DTM, HYDROData_Bathymetry )
 
@@ -98,7 +99,7 @@ HYDROData_DTM::CurveUZ HYDROData_DTM::CurveUZ::operator + ( const CurveUZ& c ) c
   {
     std::cout << "Warning: different number of points in curves: " << n << ", " << n1 << std::endl;
   }
-  int q = std::min(n, n1);
+  int q = min(n, n1);
   res.reserve( q );
   for( int i=0; i<q; i++ )
   {
@@ -428,7 +429,7 @@ void HYDROData_DTM::GetProperties( const Handle(HYDROData_Profile)& theProfile,
   HYDROData_Profile::ProfilePoints points = theProfile->GetProfilePoints();
   int lo = points.Lower();
   int up = points.Upper();
-  theZMin = std::numeric_limits<double>::max();
+  theZMin = DBL_MAX;
   theZMax = -theZMin;
   for( int i=lo; i<=up; i++ )
   {
@@ -656,7 +657,7 @@ std::vector<Handle(Geom2d_Curve)> HYDROData_DTM::ProfileToParametric(
 
 bool CalcMidWidth( const std::set<double>& intersections, double& theMid, double& theWid )
 {
-  double umin = std::numeric_limits<double>::max(),
+  double umin = DBL_MAX,
          umax = -umin;
 
   size_t n = intersections.size();
@@ -684,7 +685,7 @@ void HYDROData_DTM::ProfileDiscretization( const Handle(HYDROData_Profile)& theP
                                            int& intersection_nb,
                                            double theTolerance)
 {
-  double aDblMax = std::numeric_limits<double>::max(),
+  double aDblMax = DBL_MAX,
          aUMin = aDblMax,
          aUMax = -aUMin,
          aVMax = 1000000;
@@ -823,21 +824,21 @@ void HYDROData_DTM::CurveTo3D( const Handle(Geom2d_BSplineCurve)& theHydraulicAx
       thePoints.push_back( it->second );
 }
 
-inline double max( double a, double b )
-{
-  if( a>b )
-    return a;
-  else
-    return b;
-}
-
-inline double min( double a, double b )
-{
-  if( a<b )
-    return a;
-  else
-    return b;
-}
+//inline double max( double a, double b )
+//{
+//  if( a>b )
+//    return a;
+//  else
+//    return b;
+//}
+//
+//inline double min( double a, double b )
+//{
+//  if( a<b )
+//    return a;
+//  else
+//    return b;
+//}
 
 #include <BRepLib_MakeWire.hxx>
 
index ce3bde519137c3afe750f1b4ce4410409bfa1fb4..6d474b69329e6efee5bae51a0d22dead9760af11 100644 (file)
@@ -21,6 +21,7 @@
 
 #include <HYDROData_Entity.h>
 #include <TDocStd_Document.hxx>
+#include <MMgt_TShared.hxx>
 
 class HYDROData_InterpolatorsFactory;
 class HYDROData_IProfilesInterpolator;
index 62a7095e0f181f97a07fb36c24cf8628555d0ea5..92833456c539735164bce438120ef54b994c3af7 100644 (file)
@@ -117,6 +117,7 @@ void HYDROData_Entity::SetName(const QString& theName, bool isDefault)
         {
           TCollection_AsciiString aName = theName.toStdString().c_str();
           theDefaultName = TDataStd_AsciiString::Set(myLab.FindChild( DataTag_DefaultName), aName );
+          theDefaultName->SetID( TDataStd_AsciiString::GetID() );
         }
     }
 }
@@ -194,7 +195,8 @@ void HYDROData_Entity::Changed( Geometry theChangedGeometry )
     return;
 
   aGeomChangeFlag = ( aGeomChangeFlag | aBitsToChange );
-  TDataStd_Integer::Set( aGeomChangeLab, aGeomChangeFlag );
+  Handle(TDataStd_Integer) anAttr = TDataStd_Integer::Set( aGeomChangeLab, aGeomChangeFlag );
+  anAttr->SetID( TDataStd_Integer::GetID() );
 
   HYDROData_Iterator anIter( aDocument );
   for ( ; anIter.More(); anIter.Next() )
@@ -351,6 +353,7 @@ void HYDROData_Entity::SaveByteArray( const int   theTag,
   Handle(TDataStd_ByteArray) aData;
   if (!aLab.FindAttribute(TDataStd_ByteArray::GetID(), aData)) {
     aData = TDataStd_ByteArray::Set(aLab, 1, theLen);
+    aData->SetID( TDataStd_ByteArray::GetID() );
   }
   Standard_Byte* Byte0 = &(aData->InternalArray()->ChangeArray1().ChangeFirst());
   memcpy(Byte0, theData, theLen * sizeof (char));
@@ -588,7 +591,10 @@ Handle(TDataStd_ReferenceList) HYDROData_Entity::getReferenceList( const int the
 
   Handle(TDataStd_ReferenceList) aRefs;
   if ( !aLabel.FindAttribute( TDataStd_ReferenceList::GetID(), aRefs ) && theIsCreate )
+  {
     aRefs = TDataStd_ReferenceList::Set( aLabel );
+    aRefs->SetID(TDataStd_ReferenceList::GetID());
+  }
   return aRefs;
 }
 
@@ -813,7 +819,11 @@ void HYDROData_Entity::SetDouble( int theTag, double theValue )
   Handle(TDataStd_Real) anAttr;
   TDF_Label aLabel = myLab.FindChild( theTag );
   if( !aLabel.FindAttribute( TDataStd_Real::GetID(), anAttr ) )
-    aLabel.AddAttribute( anAttr = new TDataStd_Real() );
+  {
+    anAttr = new TDataStd_Real();
+    anAttr->SetID(TDataStd_Real::GetID());
+    aLabel.AddAttribute( anAttr );
+  }
   anAttr->Set( theValue );
 }
 
@@ -832,7 +842,11 @@ void HYDROData_Entity::SetInteger( int theTag, int theValue )
   Handle(TDataStd_Integer) anAttr;
   TDF_Label aLabel = myLab.FindChild( theTag );
   if( !aLabel.FindAttribute( TDataStd_Integer::GetID(), anAttr ) )
-    aLabel.AddAttribute( anAttr = new TDataStd_Integer() );
+  {
+    anAttr = new TDataStd_Integer();
+    anAttr->SetID(TDataStd_Integer::GetID());
+    aLabel.AddAttribute(anAttr);
+  }
   anAttr->Set( theValue );
 }
 
index ddd2ae8a831f04b080ebd8dcb1725dd5e6d3362b..97cbe846fa0b72209d1ef8a8b9e939dfc8ad6f74 100644 (file)
@@ -25,7 +25,7 @@
 #include <QMap>
 #include <QString>
 #include <Standard_Type.hxx>
-
+#include <MMgt_TShared.hxx>
 
 #ifdef NONLS
 #undef NONLS
index 18eaeee8f584d2a19cb444de85aa5a08529895a2..03b49e8121a59f06dc93dcf484c200a247c391cb 100644 (file)
@@ -678,8 +678,7 @@ TopoDS_Shape HYDROData_LandCoverMap::MergeFaces( const TopTools_ListOfShape& the
   aPF.SetFuzzyValue( theTolerance );
 
   aPF.Perform();
-  anError = aPF.ErrorStatus();
-  if( anError )
+  if( aPF.HasErrors())
     return TopoDS_Shape();
 
   BOPAlgo_Builder anAlgo;
@@ -688,8 +687,7 @@ TopoDS_Shape HYDROData_LandCoverMap::MergeFaces( const TopTools_ListOfShape& the
     anAlgo.AddArgument( anIt.Value() );
 
   anAlgo.PerformWithFiller( aPF ); 
-  anError = anAlgo.ErrorStatus();
-  if( anError )
+  if( anAlgo.HasErrors())
     return TopoDS_Shape();
 
   const TopoDS_Shape& aMergedShape = anAlgo.Shape();
@@ -856,8 +854,7 @@ bool HYDROData_LandCoverMap::LocalPartition( const TopoDS_Shape& theNewShape, co
   // prepare pave filler
   aPaveFiller.SetArguments( aShapesList );
   aPaveFiller.Perform();
-  Standard_Integer anError = aPaveFiller.ErrorStatus();
-  if( anError )
+  if( aPaveFiller.HasErrors())
     return false;
 
   // add faces to builder
@@ -869,8 +866,7 @@ bool HYDROData_LandCoverMap::LocalPartition( const TopoDS_Shape& theNewShape, co
 
   // perform the partition with the pave filler
   aBuilder.PerformWithFiller( aPaveFiller );
-  anError = aBuilder.ErrorStatus();
-  if( anError )
+  if( aBuilder.HasErrors())
     return false;
 
   //std::cout << "History:" << std::endl;
index 33e4090ad12b241dabb98d18f7ad2505ed4ffcc2..9115b6d6e160bc7c56e94b5a66e877fa347bb8fc 100644 (file)
@@ -32,6 +32,7 @@
 #include <BRepBuilderAPI_MakeFace.hxx>
 #include <BRepOffsetAPI_NormalProjection.hxx>
 #include <BRepAdaptor_Curve.hxx>
+#include <Quantity_Parameter.hxx>
 
 #ifndef LIGHT_MODE
 #include <GEOMBase.h>
index f4b58faaef1f05900f5faacd1cb1fa7a1a997576..80c005cc4ad8b8ff1e6a443e587074745221b421 100644 (file)
@@ -392,7 +392,7 @@ TopoDS_Shape HYDROData_Region::GetShape( HYDROData_ShapesGroup::SeqOfGroupsDefs*
     if (!IE.IsEmpty())
     {
       //remove dummy face from shell; shell becomes valid
-      const TopoDS_Shape& NDF = unif.Generated(DF);
+      const TopoDS_Shape& NDF = unif.History()->Modified(DF).First();
       BRepTools_ReShape ReShaper;
       ReShaper.Remove(NDF);
       anUnitedShape = ReShaper.Apply(out);
index 9db2e01cbc0e4abcbf8a3adbae0b2e89b8674331..96b3d6c959fb535491589d8f79fdc2e108f33176 100644 (file)
@@ -93,7 +93,7 @@ void HYDROData_ShapesGroup::GroupDefinition::Update( SeqOfGroupsDefs*
     {
       TopoDS_Shape aShape = aGroupDef.Shapes.Value( i );
 
-      TopoDS_Shape aGeneratedByAlgo = theAlgo->Generated( aShape );
+      TopoDS_Shape aGeneratedByAlgo = theAlgo->History()->Modified(aShape).First(); //??TODO check
       if ( aGeneratedByAlgo.IsNull() )
       {
         // Edge has been removed
index 07a515ff296c6723f1a6d9c14a4da6bc5785204b..488618dec365c3e70d1c1524299634a84c08eb2c 100644 (file)
@@ -119,7 +119,7 @@ void HYDROData_SplitToZonesTool::SetFileNames(const QString& theNameBefore, cons
 #endif
 }
 //======================================================================================
-Standard_Integer HYDROData_SplitToZonesTool::SplitFaces(const TopoDS_Compound& theComp, 
+bool HYDROData_SplitToZonesTool::SplitFaces(const TopoDS_Compound& theComp, 
                                                         HYDROData_Transform& theTool)
 {
   theTool.Clear();
@@ -128,8 +128,7 @@ Standard_Integer HYDROData_SplitToZonesTool::SplitFaces(const TopoDS_Compound& t
   const Standard_Boolean bToTransform = theTool.ToTransform();  
   theTool.SetToTransform(bToTransform);  
   theTool.Perform();
-  Standard_Integer anErr = theTool.ErrorStatus();
-  return anErr;
+  return theTool.HasErrors();
 }
 
 //======================================================================================
@@ -346,7 +345,7 @@ HYDROData_SplitToZonesTool::SplitDataList
   HYDROData_DataMapOfShapeListOfShape aDM1;
   if(anInputSplitDataList.size() > 1) {
     HYDROData_Transform splitTool; 
-    const Standard_Integer anErr = SplitFaces(aCmp, splitTool);    
+    bool anErr = SplitFaces(aCmp, splitTool);    
     if(anErr)
       return anOutputSplitDataList;
     aResult = splitTool.Shape();
@@ -816,9 +815,8 @@ int HYDROData_SplitToZonesTool::CutByEdges(const TopoDS_Shape& InSh, const TopTo
     anAlgo.AddArgument( anIt.Value() );
 
   anAlgo.Perform(); 
-  anError = anAlgo.ErrorStatus();
-  if (anError)
-    return anError;
+  if (anAlgo.HasErrors())
+    return -1;
 
   outShs = anAlgo.Modified( InSh );
   if (outShs.IsEmpty())
index 2e3b87111e4f786544a882228b2ad39e0773833b..665f35a038d2874a3ebee8b47d6201700d0353f3 100644 (file)
@@ -117,7 +117,7 @@ private:
   /**
    * Split input faces.
    */
-  static Standard_Integer SplitFaces(const TopoDS_Compound& theComp, HYDROData_Transform& theTool);
+  static bool SplitFaces(const TopoDS_Compound& theComp, HYDROData_Transform& theTool);
 };
 
 #ifdef WIN32
index 391482b5fc51a7fb6d7cd8eb8a93f83cd7b97126..69676bb895622d81b0df3176fa6545fb1849f3e3 100644 (file)
@@ -64,6 +64,8 @@ HYDROData_Transform::HYDROData_Transform()
   myTransform1=NULL;
   myTransform2=NULL;
   myBuilder=NULL;
+  myErrorStatus=0;
+  myWarningStatus=0;
 }
 //=======================================================================
 //function : ~
@@ -304,8 +306,8 @@ void HYDROData_Transform::BuildFuse()
   aPF.SetArguments(aLC);
   //
   aPF.Perform();
-  iErr=aPF.ErrorStatus();
-  if (iErr) {
+  if (aPF.HasErrors()) 
+  {
     myErrorStatus=20;
     return;
   }
@@ -319,8 +321,8 @@ void HYDROData_Transform::BuildFuse()
   }
   //
   myBuilder->PerformWithFiller(aPF);
-  iErr=myBuilder->ErrorStatus();
-  if (iErr) {
+  if (myBuilder->HasErrors())
+  {
     myErrorStatus=21;
     return;
   }
index 0b6e9b63332866c77278efb04ca079704375d32d..0b824a1f4edcc0ac5ddafee35704120fc193463c 100644 (file)
@@ -134,6 +134,9 @@ class HYDROData_Transform : public BOPAlgo_BuilderShape
   BRepBuilderAPI_Transform* myTransform1;
   BRepBuilderAPI_Transform* myTransform2;
   BOPAlgo_Builder* myBuilder;
+  //
+  int myErrorStatus; //no longer used since occt 7.2.1 (added for backcompatibility)
+  int myWarningStatus;  //no longer used since occt 7.2.1
 };
 
 #endif
index 7995997147290ca152fe2d60de5545319e7734ea..8b976a48fc5e32feb82be3ff8d2d6cca5171db6a 100644 (file)
@@ -25,6 +25,7 @@
 #include <Prs3d_Drawer.hxx>
 #include <DsgPrs_XYZAxisPresentation.hxx>
 #include <gp_Ax2.hxx>
+#include <Quantity_Length.hxx>
 
 HYDROGUI_AISTrihedron::HYDROGUI_AISTrihedron( const Handle(Geom_Axis2Placement)& thePlacement )
  : AIS_Trihedron(thePlacement)
index 526c2c218cc6297754b470b4729cdd1c107afb16..7a18167d5ba97c645f303f56199505cdf5707126 100644 (file)
@@ -90,7 +90,7 @@ void HYDROGUI_BathymetrySelectionOp::activateSelection( bool isActive )
   if( myIsActive==isActive )
     return;
 
-  getContext( module() )->ClearSelected();
+  getContext( module() )->ClearSelected(true);
 
   Handle(AIS_InteractiveContext) ctx = getContext( module() );
   QList<Handle(HYDROGUI_BathymetryPrs)> baths = getShownBathymetries( module() );
index 16162cfbc943f4302de60bbe10895303f2cf1ca0..5c982205e6deb6245d7851bb347080f1ca7ce0fc 100644 (file)
@@ -465,7 +465,7 @@ void HYDROGUI_LandCoverMapOp::onPolylineFaceChanged()
             if ( !aCtx.IsNull() )
             {
               myPolylineFacePreviewPrs = new HYDROGUI_Shape( aCtx, NULL, getPreviewZLayer() );
-              aCtx->ClearSelected();
+              aCtx->ClearSelected(true);
 
               myPolylineFacePreviewPrs->setBorderColor( Qt::white, false, false );
               myPolylineFacePreviewPrs->setShape( aTopoDSShape, true, true, !aPolyline.IsNull() ? AIS_WireFrame : AIS_Shaded );
@@ -623,7 +623,7 @@ void HYDROGUI_LandCoverMapOp::onMouseRelease(SUIT_ViewWindow* theWindow, QMouseE
     if ( !aViewer->isPreselectionEnabled() ) {
       Handle(V3d_View) aView3d = aView->getViewPort()->getView();
       if ( !aView3d.IsNull() ) {
-        aCtx->MoveTo(myEndPnt.x(), myEndPnt.y(), aView3d);
+        aCtx->MoveTo(myEndPnt.x(), myEndPnt.y(), aView3d, true);
       }
     }
 
index aa29e8a4f91c235f653541d9adf00ec116f9dd4c..7888166a154e4fa55f84f2b97dc2b4e50d9edbe9 100644 (file)
@@ -177,6 +177,8 @@ void HYDROGUI_LandCoverMapPrs::HilightSelected( const Handle(PrsMgr_Presentation
 
 void HYDROGUI_LandCoverMapPrs::SetHilightAttributes( const Quantity_Color& theEdgesColor )
 {
+  if (HilightAttributes().IsNull())
+    AIS_ColoredShape::SetHilightAttributes(new Prs3d_Drawer());
   HilightAttributes()->UIsoAspect()->SetNumber( HILIGHT_ISO_NB );
   HilightAttributes()->UIsoAspect()->SetColor( theEdgesColor );
   HilightAttributes()->VIsoAspect()->SetNumber( HILIGHT_ISO_NB );
index feed7992d67883154a4baa224d5ff72824a839de..a52182d5abff1ac25343418a3599daaf4eb5cf14 100644 (file)
@@ -294,7 +294,7 @@ void HYDROGUI_OCCDisplayer::Display( const HYDROData_SequenceOfObjects& theObjs,
     }
   } 
   else if ( !aCtx.IsNull() ) { // TODO: determine if this code is necessary (added as a fix for issue# 359)
-    aCtx->UpdateSelected();
+    aCtx->UpdateSelected(true);
   }
 
   UpdateColorScale( aViewer );
@@ -491,14 +491,14 @@ void HYDROGUI_OCCDisplayer::UpdateColorScale( const OCCViewer_Viewer* theViewer
          aCtx->Display( aColorScale, Standard_False );
        }
 
-       aCtx->Update( aColorScale );
+       aCtx->Update( aColorScale, true );
       }
     }
   }
   else
   {
     if ( !aCtx.IsNull() && aCtx->IsDisplayed( aColorScale ) ) {
-      aCtx->Erase( aColorScale );
+      aCtx->Erase( aColorScale, true );
     }
   }
 
index dfc3a62cf055cb508153a1561e1ac9aa06ea9b22..ddb5d785a22b1e3dcdd7d9f687155617ba726904 100644 (file)
@@ -241,7 +241,7 @@ void HYDROGUI_ShapeBathymetry::RescaleBySelection()
 
 void HYDROGUI_ShapeBathymetry::Rescale( double theMin, double theMax )
 {
-  getContext()->ClearSelected();
+  getContext()->ClearSelected(true);
   myMin = qMin( theMin, theMax );
   myMax = qMax( theMin, theMax );
   setToUpdateColorScale( true );
@@ -295,7 +295,7 @@ void HYDROGUI_ShapeBathymetry::TextLabels( bool isOn )
   if( isOn )
     selection = selected();
 
-  getContext()->ClearSelected();
+  getContext()->ClearSelected(true);
   prs->SetTextLabels( selection );
   prs->Redisplay();
   getContext()->UpdateCurrentViewer();
index be1c18e38652cdabea107bd1eb44d8bb6a83a40b..439af525d241b750406b745d50a5047f23d6d000 100644 (file)
@@ -209,7 +209,7 @@ void HYDROGUI_SplitPolylinesOp::OnUpdatePreview()
             aCtx->Erase( mySplitPointPreview, Standard_False );  
         }
 
-        aCtx->ClearSelected();
+        aCtx->ClearSelected(true);
       }
 
       if ( aPanel->GetMode() == HYDROGUI_SplitPolylinesDlg::ByPoint )
index 78c17941309518f8ecc560fa886f0b6afdecc111..a40e91745184951b6d6de7a54f92102463673a85 100644 (file)
@@ -121,7 +121,7 @@ bool HYDROGUI_ViewerDlg::event( QEvent* e )
         if ( !anAISContext.IsNull() && !aTrihedron.IsNull() )
         {
             viewer()->setTrihedronShown( false );
-            anAISContext->Display( aTrihedron );
+            anAISContext->Display( aTrihedron, true );
             anAISContext->Deactivate( aTrihedron );
         }
     }
index c3f547667a4c0d3fe40068d51426e40c427e08fa..f650674956870aa65591f7e70874e39721cbc637 100644 (file)
@@ -41,7 +41,9 @@ void UpdateZLayersOfHilightPresentationsOfDisplayedObjects( const Handle(AIS_Int
 #if OCC_VERSION_LARGE < 0x07010000
       Quantity_NameOfColor aStyle = Quantity_NOC_YELLOW;
 #else
-      Handle(Graphic3d_HighlightStyle) aStyle = new Graphic3d_HighlightStyle( Aspect_TOHM_COLOR, Quantity_NOC_YELLOW );
+      Handle(Graphic3d_HighlightStyle) aStyle = new Graphic3d_HighlightStyle( /*Aspect_TOHM_COLOR, Quantity_NOC_YELLOW*/ );
+      aStyle->SetMethod(Aspect_TOHM_COLOR);
+      aStyle->SetColor(Quantity_NOC_YELLOW);
 #endif
       theContext->MainPrsMgr()->Color( aPrsObj, aStyle, aMode );
       SetPrsZLayer( aPrsObj, aMode, theLayer );
index 9c940fb6ba63362697c47293bf32a827b7d40626..fa147744b754e6aae198cd798489f1b70e4482f4 100644 (file)
@@ -85,7 +85,7 @@ SET( GEOM_INCLUDES $ENV{GEOM_ROOT_DIR}/include/salome )
 SET( ECW_INCLUDES $ENV{ECWLIB_ROOT_DIR}/include )
 
 IF( ${WIN32} )
-  link_directories( $ENV{CASROOT}/win64/vc10/lib $ENV{GL2PS_DIR}/lib )
+  link_directories( $ENV{CASROOT}/win64/lib/vc10 $ENV{GL2PS_DIR}/lib )
 ELSE()
   link_directories( $ENV{CASROOT}/lib $ENV{TBB_ROOT_DIR}/lib/intel64/gcc4.4 )
 ENDIF()
index 7210c108a6f02d7b635a6f13fc006a1d5d1c5e62..6e20be46cc4b09bdeea8c543f946da29227226c0 100644 (file)
@@ -71,13 +71,13 @@ OCCViewer_ViewManager* TestViewer::viewManager()
   myViewManager = new OCCViewer_ViewManager( 0, 0 );
   OCCViewer_Viewer* aViewer = new OCCViewer_Viewer( true );
 
-  aViewer->setTrihedronSize( 100, true );
+  aViewer->setTrihedronSize( 0, true );
   aViewer->setInteractionStyle( 0 );
   aViewer->setZoomingStyle( 1 );
 
   myViewManager->setViewModel( aViewer );
   myViewWindow = dynamic_cast<OCCViewer_ViewFrame*>( myViewManager->createViewWindow() );
-
+  aViewer->setTrihedronShown( false );
   return myViewManager;
 }
 
@@ -153,11 +153,11 @@ void TestViewer::show( const Handle(AIS_InteractiveObject)& theObject,
   if( theSelectionMode > 0 )
   {
     context()->OpenLocalContext();
-    context()->Display( theObject, theMode, theSelectionMode );
+    context()->Display( theObject, theMode, theSelectionMode, true );
     context()->Activate( theObject, theSelectionMode, Standard_True );
   }
   else
-    context()->Display( theObject, theMode, theSelectionMode );
+    context()->Display( theObject, theMode, theSelectionMode, true );
 
   if( isFitAll )
     fitAll();
@@ -382,12 +382,12 @@ void TestViewer::showColorScale( bool isShow )
   if( isShow )
   {
     if( !context()->IsDisplayed( aColorScale ) )
-      context()->Display( aColorScale );
+      context()->Display( aColorScale, true );
   }
   else
   {
     if( context()->IsDisplayed( aColorScale ) )
-      context()->Erase( aColorScale );
+      context()->Erase( aColorScale, true );
   }
 }
 
@@ -399,8 +399,8 @@ bool TestViewer::ColorScaleIsDisplayed()
 void TestViewer::select( int theViewX, int theViewY )
 {
   Handle(V3d_View) aView = myViewWindow->getViewPort()->getView();
-  context()->MoveTo( theViewX, theViewY, aView );
-  context()->Select();
+  context()->MoveTo( theViewX, theViewY, aView, true);
+  context()->Select(true);
   // context()->CloseAllContexts();
 }
 
index 7a0fcab32fddc9d03bb6e956cdefdbb919ac91b8..20500d534d9c71a8388bbf8f5a2adbad55b87a18 100644 (file)
@@ -19,6 +19,7 @@
 #pragma once
 
 #include <AIS_InteractiveContext.hxx>
+#include <Standard_Version.hxx>
 
 class OCCViewer_ViewManager;
 class OCCViewer_Viewer;
@@ -30,6 +31,13 @@ class QImage;
 class AIS_InteractiveObject;
 class AIS_ColorScale;
 
+#define OCC_VERSION_LARGE (OCC_VERSION_MAJOR << 24 | OCC_VERSION_MINOR << 16 | OCC_VERSION_MAINTENANCE << 8)
+#if OCC_VERSION_LARGE >= 0x07020000
+const bool SWAP_RGB = false;
+#else
+const bool SWAP_RGB = true;
+#endif
+
 class TestViewer
 {
 public:
@@ -45,7 +53,7 @@ public:
                     int theUIANb = 10, int theVIANb = 10);
   static void show( const TopoDS_Shape& theShape, int theMode, bool isFitAll, const char* theKey,
                     int theUIANb = 10, int theVIANb = 10);
-  static bool AssertImages( QString& theMessage, const QImage* = 0, const char* theCase = 0, bool swapRGB = true );
+  static bool AssertImages( QString& theMessage, const QImage* = 0, const char* theCase = 0, bool swapRGB = SWAP_RGB );
   static QColor GetColor(int i);
 
   static Handle(AIS_ColorScale) colorScale();
index 8f43edbcd78a12dbc9043c859897a93f9f901620..7f60af4a1a17f6fccfff0caa8102d8d78c2cb184 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/CLC06-cut_1_res.png and b/src/HYDRO_tests/reference_data/win32/CLC06-cut_1_res.png differ
index a00e5a788ccfdab6a0db70df0f6dd3b8de358cdd..190ed1b4960f46e6fa55c03038efe85ef5e25e94 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/DTM_1.png and b/src/HYDRO_tests/reference_data/win32/DTM_1.png differ
index ed8e7b227505b029e83728c4608100a92e732463..1878684f1eec958655b0f6e2b95480ac00647da0 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/DTM_2.png and b/src/HYDRO_tests/reference_data/win32/DTM_2.png differ
index a9e5c6ab8c53264e8ced9654dd304dbb2f885297..a3ee86bad343985b5d9ba1cc80620368a119a35e 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/Extraction_Channel.png and b/src/HYDRO_tests/reference_data/win32/Extraction_Channel.png differ
index 3d9a2790226e5196f1d9cfbafc873ea8fc71602a..96953701e2d137bfc2c5cfbd9f4ed56f7d429643 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/Extraction_ImmZone.png and b/src/HYDRO_tests/reference_data/win32/Extraction_ImmZone.png differ
index 9e47482510c5c0998f1222461057040367439538..2e2101eac5f083624343ca5dede0ae95df87145f 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/LCM_copied.png and b/src/HYDRO_tests/reference_data/win32/LCM_copied.png differ
index 82f9efb5cc3cb909e022d100986d81ea76718523..88e58dce6cc86dd07648bb1098aca175a424fd5b 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/LCM_split_2a.png and b/src/HYDRO_tests/reference_data/win32/LCM_split_2a.png differ
index 76bc1a830200636e22f4440834379ff69d25b1c2..88581d587751224424f5b7fd13aea91351b1f07a 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/LCM_split_2b.png and b/src/HYDRO_tests/reference_data/win32/LCM_split_2b.png differ
index 0f8dc77953962aebce3c8bc8ff64f32699284210..bde255cadef3f389b2cf87d0c09721a1c917abf6 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/LandCoverMap_Add_2_Objects.png and b/src/HYDRO_tests/reference_data/win32/LandCoverMap_Add_2_Objects.png differ
index 17cdc8ad3b903588b0a4948618ce873ddc51ca89..6733e5e5e62da24b80fe96065c2296460012fa22 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/LandCoverMap_Merge_1.png and b/src/HYDRO_tests/reference_data/win32/LandCoverMap_Merge_1.png differ
index 8655464277abd1c852414ce90906bd58ebdba09a..d8e718c2f4bb6f0d265956bacfd8d683b03501ad 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/LandCoverMap_Merge_2.png and b/src/HYDRO_tests/reference_data/win32/LandCoverMap_Merge_2.png differ
index e7b15138a2a45627c6177b24972f32e5d0616e05..09f6cd0627568e88c21624e3a89c7a1f8ed45f10 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/LandCoverMap_PrsByCoeff.png and b/src/HYDRO_tests/reference_data/win32/LandCoverMap_PrsByCoeff.png differ
index c9beda2e6ce1684f7708f86333b85223c47adf4b..09f6cd0627568e88c21624e3a89c7a1f8ed45f10 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/LandCoverMap_PrsByTypes.png and b/src/HYDRO_tests/reference_data/win32/LandCoverMap_PrsByTypes.png differ
index d5a31379bf0c637992adb69251947ab0dfb67064..fc448f26714264e1a31a0e07a31796b35cbe1936 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/LandCoverMap_Remove_1.png and b/src/HYDRO_tests/reference_data/win32/LandCoverMap_Remove_1.png differ
index 71077cf7b4cf041565710b30bd7fee3126886e57..1d10739430758ea65b72bd2e5e2ec52ca56030f3 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/LandCoverMap_Split_1.png and b/src/HYDRO_tests/reference_data/win32/LandCoverMap_Split_1.png differ
index 9bc13b04045546a91a1263f0d6515bec9a34d2ed..47fd55d738ce60f2f9c0ac05f226630f36f74981 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/LandCoverMap_Split_2.png and b/src/HYDRO_tests/reference_data/win32/LandCoverMap_Split_2.png differ
index 93db9e586dded25e547315d4786c8420fc425d63..bae3119dcaccf01a8d9a362889a14701d65c0566 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/LandCoverMap_Split_Polyline.png and b/src/HYDRO_tests/reference_data/win32/LandCoverMap_Split_Polyline.png differ
index 52a22cc7d31e4a513fffe00d7b88ae409378fc64..0dc2596db0ddb558825c1f5d885fcb0a7cf045e4 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/LandCoverMap_TransparentPrs.png and b/src/HYDRO_tests/reference_data/win32/LandCoverMap_TransparentPrs.png differ
index d2a012678ac323bf2fef36312dd01aa4eb29406c..faf6967a3489cc52d3bbd5f103381ebe34785d46 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/LandCover_Triangles.png and b/src/HYDRO_tests/reference_data/win32/LandCover_Triangles.png differ
index 55b4d88d5d4bbd0fb7c2cdcf5055021aee7490af..840d2e2484dec8dbf1fb74b8c1de93356ea48046 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/LandCover_Triangles_Split.png and b/src/HYDRO_tests/reference_data/win32/LandCover_Triangles_Split.png differ
index c90a95d5887a43bb751e4966c73ba005b4075274..5546325e42304e47aba1a25398c020653ee3e7bf 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/Merge_Polylines.png and b/src/HYDRO_tests/reference_data/win32/Merge_Polylines.png differ
index b548c8c27faeffc72b0f473bb0f504dab31b0829..75d5b247203738955ba2ce28cc49d31a24630601 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/NLD_water_areas_dcw.png and b/src/HYDRO_tests/reference_data/win32/NLD_water_areas_dcw.png differ
index e5275ac7d08abd808cedef02bf5e81b9064be12b..bccde218f68c9f3b0815cdc2c0b9878e90b412b7 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/Polyline_Presentation.png and b/src/HYDRO_tests/reference_data/win32/Polyline_Presentation.png differ
index 652ec440d3de562bcfee4c9e6eefac3cda841144..64830f9509dc37f045304874bab5920f176c47de 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/Polyline_Presentation_triangle.png and b/src/HYDRO_tests/reference_data/win32/Polyline_Presentation_triangle.png differ
index c41a5666b919a91080925f42bf29d91ea2b5c5fe..f63fb275486df4cc1e82acdd2cb6602838eaa016 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/Shape_preview_im_zone.png and b/src/HYDRO_tests/reference_data/win32/Shape_preview_im_zone.png differ
index b96b1d9319ee16d4da4c3029974a237842505029..7bcb35d0d420488e27c60d70343cc11e83333191 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/Split_Polylines_Colors.png and b/src/HYDRO_tests/reference_data/win32/Split_Polylines_Colors.png differ
index 89586780aacc32c3d30b99a548b6746f3b766036..0bcd9def1d4990bd606528293f1b0122632e7ba1 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/Split_Straight.png and b/src/HYDRO_tests/reference_data/win32/Split_Straight.png differ
index 72452c09477b19a326f2d659ac9c1d974b9601f2..127dd8eb8e7f9bfb7a3911cfc5bec915c4d72778 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/bathy_prs.png and b/src/HYDRO_tests/reference_data/win32/bathy_prs.png differ
index 69a8f937482f58be131ee95273363c58b9968a90..f43b97881f312ec39a67bb109584bea66d7ff721 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/bathy_prs_fit_selected.png and b/src/HYDRO_tests/reference_data/win32/bathy_prs_fit_selected.png differ
index 6f628ccc31615888c6cbb7e3c11e1269b21d9c74..318a413e17f5b440c8f5ffe42b99e45d08ffa3ff 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/bathy_rescaled_selection.png and b/src/HYDRO_tests/reference_data/win32/bathy_rescaled_selection.png differ
index 63d666dcda57275a17cb7e724741638d55e510a0..908bd0ad046489fa759670f3e73b15331009ccd3 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/bathy_rescaled_user.png and b/src/HYDRO_tests/reference_data/win32/bathy_rescaled_user.png differ
index 1d70bc84c6185c782cb04532cdba03c659abbe51..1b2657566e6e3da0403261bb9b4167e97ad3d4a9 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/bathy_rescaled_visible.png and b/src/HYDRO_tests/reference_data/win32/bathy_rescaled_visible.png differ
index 4855ae47e0dbc9b0884de17759b384f5531e5cfd..5d14b3c8e97b0c6002469a4c52d5e878b8948238 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/bathy_selection.png and b/src/HYDRO_tests/reference_data/win32/bathy_selection.png differ
index 7b88665b8ed4aa109bd1017f389596e43f3805b6..31855434d3fd345e1a9232131b10d29f64e6f3df 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/bathy_text_labels.png and b/src/HYDRO_tests/reference_data/win32/bathy_text_labels.png differ
index cad13ea76f5854504aa3c1ecca641a550c43d53b..9a0baf439e2448508a4937dc579893248d02b6fa 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/cc_int_w_3.png and b/src/HYDRO_tests/reference_data/win32/cc_int_w_3.png differ
index 02a2b3e97b98bd4d010df06b05e9961c68d4c420..8d2145bdb63f0c76d33ad310f96b4bf6da5d664d 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/clc_dec_150_350.png and b/src/HYDRO_tests/reference_data/win32/clc_dec_150_350.png differ
index 263318197ff95fd7fe33575db5c4388495fe1328..d6b914545a3eef5d95722ac0158485b4b99f7d58 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/cyprus_natural_all.png and b/src/HYDRO_tests/reference_data/win32/cyprus_natural_all.png differ
index c2b32e5245c40578f35ecda50724c8cfa3b12b1e..bdda975ea1bb1ac3a1659b3d24a7168ccc27da07 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/lcm_poly_2_sections.png and b/src/HYDRO_tests/reference_data/win32/lcm_poly_2_sections.png differ
index 15aed1110ba75a641c9a1e8dadd68affbafbce8b..938ce79a851c803c1da250c13e263c8b600cd397 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/merge_faces_boxes_11.png and b/src/HYDRO_tests/reference_data/win32/merge_faces_boxes_11.png differ
index d96c96c1f96b0d13fd0cd0d913f121b6efb6528a..a596acd5d803cf046c5952503ec2b99511282a68 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/merge_faces_boxes_12.png and b/src/HYDRO_tests/reference_data/win32/merge_faces_boxes_12.png differ
index a85f343c38e5829a49abfdce68173e5e4ded5fc0..7b33b1723500a7ea780dface6afa65856d3fc326 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/merge_faces_boxes_13.png and b/src/HYDRO_tests/reference_data/win32/merge_faces_boxes_13.png differ
index 5cb66dadbeedb6f021246e5aa2f6a6a51acde038..b48b01ccd019154afd0bbeb3b77702ad346bcbf3 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/merge_faces_boxes_14.png and b/src/HYDRO_tests/reference_data/win32/merge_faces_boxes_14.png differ
index 487d5ff80b1c025be94ec56d94a9c528952fbf28..de0c9b52e0cc174b8d628015b66a067779b5352d 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/merge_faces_boxes_21.png and b/src/HYDRO_tests/reference_data/win32/merge_faces_boxes_21.png differ
index d96c96c1f96b0d13fd0cd0d913f121b6efb6528a..a596acd5d803cf046c5952503ec2b99511282a68 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/merge_faces_boxes_22.png and b/src/HYDRO_tests/reference_data/win32/merge_faces_boxes_22.png differ
index 2bca4889d0829758d1049b5286d15b452bf9f009..c784e8fe4e75b48cc79fddc82749e75170e320bf 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/merge_faces_boxes_23.png and b/src/HYDRO_tests/reference_data/win32/merge_faces_boxes_23.png differ
index 9187ce5f9fe82329e10f6724989b3af79db5b41c..7c111c6f2d60610b3c019e128f1041489c628b7f 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/merge_faces_boxes_24.png and b/src/HYDRO_tests/reference_data/win32/merge_faces_boxes_24.png differ
index 8b255595278d73f9c2f2b87a0b5f359b9d9340c4..62a9ad4549db4c430fe5082337d5147d0b32730d 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/merge_faces_circles_11.png and b/src/HYDRO_tests/reference_data/win32/merge_faces_circles_11.png differ
index 4abe17aa0346d13eba3d0f8d9aa9733f3b321466..b7f753e41e1dd55559352800a211b22f3017ed13 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/merge_faces_circles_12.png and b/src/HYDRO_tests/reference_data/win32/merge_faces_circles_12.png differ
index 4b73eb8cc175496577177b2983198c0256e62f94..4146c52e9d8e53a3e721d4c7d0dd28f7e34134d1 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/merge_faces_circles_13.png and b/src/HYDRO_tests/reference_data/win32/merge_faces_circles_13.png differ
index 4b73eb8cc175496577177b2983198c0256e62f94..4146c52e9d8e53a3e721d4c7d0dd28f7e34134d1 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/merge_faces_circles_14.png and b/src/HYDRO_tests/reference_data/win32/merge_faces_circles_14.png differ
index ca1eb432a90e98d31c897910ef4be89270058454..41740dae24cd77efbc2697dcf94cdb091841dcdf 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/merge_faces_circles_21.png and b/src/HYDRO_tests/reference_data/win32/merge_faces_circles_21.png differ
index 4abe17aa0346d13eba3d0f8d9aa9733f3b321466..b7f753e41e1dd55559352800a211b22f3017ed13 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/merge_faces_circles_22.png and b/src/HYDRO_tests/reference_data/win32/merge_faces_circles_22.png differ
index 58fffafb4f203fae6e6f58bb0fa5f41e2f7fe788..a83e65a0b4a29f35b6208dc23a74d35751cd7f78 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/merge_faces_circles_23.png and b/src/HYDRO_tests/reference_data/win32/merge_faces_circles_23.png differ
index 58fffafb4f203fae6e6f58bb0fa5f41e2f7fe788..a83e65a0b4a29f35b6208dc23a74d35751cd7f78 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/merge_faces_circles_24.png and b/src/HYDRO_tests/reference_data/win32/merge_faces_circles_24.png differ
index b036205168138725b9439803b3985dce36318627..c80979dc7e897be7addb9f7055fca15bd0ab1bac 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/rebuild_cmp_out.png and b/src/HYDRO_tests/reference_data/win32/rebuild_cmp_out.png differ
index f6490379e73c59e984200432f912d74a9703b09a..c9281775c47abd418fe7289c003de8b6073a6c7d 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/stream_dtm_2d.png and b/src/HYDRO_tests/reference_data/win32/stream_dtm_2d.png differ
index 2f0eb241f63b15c813d88d53590849c9f176cc89..f71e71eeaa0a68337f4cd3f993384d64736ea79c 100644 (file)
Binary files a/src/HYDRO_tests/reference_data/win32/stream_dtm_3d.png and b/src/HYDRO_tests/reference_data/win32/stream_dtm_3d.png differ
index 6b31d1519ee7f1d4085dff9c2e7814f50dbd16d6..51de524a2aee4101d9c1956ba8114258b7917569 100644 (file)
@@ -241,7 +241,7 @@ void test_HYDROData_DTM::test_profile_conversion_to_2d()
   aProfile2->SetLeftPoint( gp_XY( 10, 10 ) );
   aProfile2->SetRightPoint( gp_XY( 20, 20 ) );
 
-  double aUMin1 = std::numeric_limits<double>::max(),
+  double aUMin1 = DBL_MAX,
          aUMax1 = -aUMin1,
          aUMin2 = aUMin1,
          aUMax2 = aUMax1;
index 9b505914aaab94221c889a1aaf82577b0432e060..abc72f651b6c4a3d99c16ceef37e5768c27e96e4 100644 (file)
@@ -283,7 +283,7 @@ void test_HYDROData_PolylineXY::test_presentation()
   TestViewer::show( aPointsPrs, AIS_PointCloud::DM_Points, 0, true, "Polyline_Presentation_triangle" );
   TestViewer::show( aPolyline2d->GetShape(), 0, true, Qt::red );
   //TestViewer::show( aNewPolylinePrs, AIS_PointCloud::DM_Points, 0, true, "" );
-  TestViewer::context()->RecomputePrsOnly( arr );
+  TestViewer::context()->RecomputePrsOnly( arr, true );
   aNewPolylinePrs->display();
   TestViewer::fitAll();
   CPPUNIT_ASSERT_IMAGES