From 26fd407785015d6efb54031012920b24270410ba Mon Sep 17 00:00:00 2001 From: "eduardo.davila@creatis.insa-lyon.fr" Date: Sat, 18 Jan 2025 09:35:39 +0100 Subject: [PATCH] Test code --- bbtk/src/bbcreaMaracasVisuSetPosition.cxx | 2 +- bbtk/src/bbmaracasvisuViewerNV.cxx | 4 +++- .../src/interface/wxWindows/widgets/wxVtkMPR2DView.cxx | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/bbtk/src/bbcreaMaracasVisuSetPosition.cxx b/bbtk/src/bbcreaMaracasVisuSetPosition.cxx index df6d4ac..7d543f8 100644 --- a/bbtk/src/bbcreaMaracasVisuSetPosition.cxx +++ b/bbtk/src/bbcreaMaracasVisuSetPosition.cxx @@ -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 diff --git a/bbtk/src/bbmaracasvisuViewerNV.cxx b/bbtk/src/bbmaracasvisuViewerNV.cxx index 183fd5b..726bb8b 100644 --- a/bbtk/src/bbmaracasvisuViewerNV.cxx +++ b/bbtk/src/bbmaracasvisuViewerNV.cxx @@ -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(stop1 - start1); diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkMPR2DView.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkMPR2DView.cxx index 7e6c99c..9703480 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkMPR2DView.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkMPR2DView.cxx @@ -404,7 +404,9 @@ void wxVtkMPR2DView::Refresh() UpdateColorWindowLevel(); //EED 05juin2019 UpdateCameraParallelScale(); - wxVtkBaseView::Refresh(); + + printf("EED wxVtkMPR2DView::Refresh() ups \n"); + // wxVtkBaseView::Refresh(); } } -- 2.49.0