]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Merge branch 'BR_1328' into BR_DEMO
authorasl <asl@opencascade.com>
Wed, 11 Oct 2017 05:21:03 +0000 (08:21 +0300)
committerasl <asl@opencascade.com>
Wed, 11 Oct 2017 05:21:03 +0000 (08:21 +0300)
# Conflicts:
# src/HYDRO_tests/CMakeLists.txt
# src/HYDRO_tests/reference_data/CMakeLists.txt

1  2 
src/HYDROGUI/CMakeLists.txt
src/HYDROGUI/HYDROGUI_Module.cxx
src/HYDROGUI/HYDROGUI_Module.h
src/HYDROGUI/resources/HYDROGUI_msg_en.ts
src/HYDRO_tests/CMakeLists.txt
src/HYDRO_tests/TestViewer.cxx
src/HYDRO_tests/TestViewer.h
src/HYDRO_tests/reference_data/CMakeLists.txt
src/HYDRO_tests/test_HYDROData_Main.cxx

Simple merge
Simple merge
Simple merge
index 82480d51559dc4451e88901ca1b6f9b20cee2800,35d87abfb6a9167b98f716fbc3105460f1ecc103..3c68334a6d0e5b312b8baabf8c027756ad183476
@@@ -26,7 -25,7 +26,8 @@@ set(PROJECT_HEADER
    
    test_Dependencies.h
    test_HYDROData_DTM.h
 +  test_GraphicsView.h
+   test_Overview.h
  
    TestShape.h
    TestViewer.h
@@@ -56,8 -55,7 +57,9 @@@ set(PROJECT_SOURCE
    test_HYDROData_Stream.cxx
    test_Dependencies.cxx
    test_HYDROData_Tool.cxx
 +  test_GraphicsView.cxx
+   test_Overview.cxx
 +  test_HYDROGUI_BathymetryPrs.cxx
   
    TestShape.cxx
    TestViewer.cxx
index f3c3215206266131e7968b0b3731cfbbc05344cb,038ba3337e48b1c3aadc0bba9434fab9fa2975d8..bb76a837943b46d157ef413d5a63b803743c3518
@@@ -274,16 -272,8 +274,16 @@@ bool TestViewer::AssertImages( QString
    if( theImage )
      anActualImage = *theImage;
    else
-     anActualImage = viewWindow()->dumpView();
+     anActualImage = viewWindow()->getView(OCCViewer_ViewFrame::MAIN_VIEW)->dumpView();
  
 +  const bool SWAP_RGB_ORDER = true;
 +  if( SWAP_RGB_ORDER )
 +  {
 +    // A temporary patch for bug in SALOME/OCC dump; the result image contains swapped RGB colors
 +    anActualImage = anActualImage.rgbSwapped();
 +  }
 +
 +
    if( theCase )
      myKey = theCase;
  
index 54602171ab394c13867b76f9a5a765f8bf180c0c,3584ef2d36a7e7ddf5c3e69ab37f275e968360ca..24dccb63a81f78b231fea17609fd9b0f6ed2154a
@@@ -60,11 -60,9 +60,11 @@@ public
                                 int theLinesToOmit,
                                 QString& theMsg );
  
 +  static void setKey( const QString& );
 +
  private:
    static OCCViewer_ViewManager* myViewManager;
-   static OCCViewer_ViewWindow* myViewWindow;
+   static OCCViewer_ViewFrame* myViewWindow;
    static QString myKey;
  };
  
index 663b7227d8e312909255adc962e73bb90f3f6a9b,36f0b5d1be382688f3cdac36aa55bcff4bddd291..97a6d589a0d2d1031995621582e8b34929331ec6
@@@ -120,18 -120,14 +120,26 @@@ SET(REFERENCE_DAT
      pb_1066.cbf
      f_cmp.brep
      rebuild_cmp_out.png
 +    garonne.png
 +    gv_fitall.png
 +    gv_zoomed_1.png
 +    gv_zoomed_2.png
 +    bathy.xyz
 +    bathy_prs.png
 +    bathy_selection.png
 +    bathy_rescaled_selection.png
+     test_zone.brep
+     overview_empty.png
+     overview_prs.png
+     overview_selection.png
+     overview_zoomed_1.png
+     overview_zoomed_2.png
+     overview_panned_1.png
+     overview_rotated_1.png
 +    bathy_rescaled_user.png
 +    bathy_rescaled_visible.png
 +    bathy_text_labels.png
 +    bathy_prs_fit_selected.png
  )
  
  # Application tests