]> Creatis software - creaMaracasVisu.git/commitdiff
Test code
authoreduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Sat, 18 Jan 2025 08:35:39 +0000 (09:35 +0100)
committereduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Sat, 18 Jan 2025 08:35:39 +0000 (09:35 +0100)
bbtk/src/bbcreaMaracasVisuSetPosition.cxx
bbtk/src/bbmaracasvisuViewerNV.cxx
lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkMPR2DView.cxx

index df6d4acbe6683876af93d9005762e6a790a06506..7d543f88af19fd29f6258e548a358a0a88945e68 100644 (file)
@@ -53,7 +53,7 @@ void SetPosition::Process()
        #if wxMAJOR_VERSION <= 2
                                bbGetInputwxVtkBaseView()->GetWxVTKRenderWindowInteractor ()->GetParent()->ProcessEvent( newevent );
        #else
//               bbGetInputwxVtkBaseView()->GetWxVTKRenderWindowInteractor ()->GetParent()->ProcessWindowEvent( newevent );
+                bbGetInputwxVtkBaseView()->GetWxVTKRenderWindowInteractor ()->GetParent()->ProcessWindowEvent( newevent );
        #endif
                 vtkmprbasedata->SetFixAxis2D( tmpFixAxis );
                        } // if bbGetInputPosition
index 183fd5bf92019030357ff07d502b5ecb41967c90..726bb8b08a1d2a1d9dfb2e29061a63c43a0c7756 100644 (file)
@@ -63,6 +63,7 @@ void bbwxMaracas_N_ViewersWidget::OnRefreshView(wxCommandEvent & event)
 {
     //EED2024-12-23  Refresh syncronisation (maracasvisu and bbtk)
     wxMaracas_N_ViewersWidget::OnRefreshView(event);
+    //
     if ( (backX!=(int)GetX()) || (backY!=(int)GetY()) || (backZ!=(int)GetZ()) )
     {
         backX = GetX();
@@ -73,7 +74,7 @@ void bbwxMaracas_N_ViewersWidget::OnRefreshView(wxCommandEvent & event)
         mbbViewerNV->_point.push_back( (int)GetY() );
         mbbViewerNV->_point.push_back( (int)GetZ() );
         mbbViewerNV->bbSetOutputPoint( mbbViewerNV->_point );
-        
+        printf("EED bbwxMaracas_N_ViewersWidget::OnRefreshView \n");
         //ED2024-11-01
         bool ok=true;
         if  (mbbViewerNV->bbGetInputReactivityType()==0) { ok=false; }
@@ -89,6 +90,7 @@ void bbwxMaracas_N_ViewersWidget::OnRefreshView(wxCommandEvent & event)
 void bbwxMaracas_N_ViewersWidget::OnRefreshView2(wxCommandEvent & event)
 {
 // auto start1 = std::chrono::high_resolution_clock::now();
+    printf("EED bbwxMaracas_N_ViewersWidget::OnRefreshView2 \n");
     wxMaracas_N_ViewersWidget::OnRefreshView(event);
 // auto stop1       = std::chrono::high_resolution_clock::now();
 // auto duration1   = std::chrono::duration_cast<std::chrono::microseconds>(stop1 - start1);
index 7e6c99cd30e1e64c180c44cc91a6e3e9f04778e8..9703480be9c1be07cef68e3bfd1656d1ab1cf20d 100644 (file)
@@ -404,7 +404,9 @@ void wxVtkMPR2DView::Refresh()
                UpdateColorWindowLevel();
 //EED 05juin2019
                UpdateCameraParallelScale();
-               wxVtkBaseView::Refresh();
+        
+        printf("EED wxVtkMPR2DView::Refresh()  ups \n");
+        //             wxVtkBaseView::Refresh();
        }
 }