From 0283949c2311ad51b981884ffc9531295f7e0b06 Mon Sep 17 00:00:00 2001 From: "eduardo.davila@creatis.insa-lyon.fr" Date: Fri, 17 Jan 2025 16:13:26 +0100 Subject: [PATCH] Test code --- .../src/interface/wxWindows/widgets/wxVtkBaseView.cxx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkBaseView.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkBaseView.cxx index 3bdaa13..d821b6a 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkBaseView.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkBaseView.cxx @@ -85,21 +85,20 @@ void wxVtkBaseView::Configure() // virtual void wxVtkBaseView::Refresh() // virtual { printf("EED wxVtkBaseView::Refresh \n"); - - if (firstTimeOnPaint==true) + + vtkRenderWindowInteractor *vri = GetWxVTKRenderWindowInteractor(); + + if (GetWxVTKRenderWindowInteractor()->firstTimeOnPaint==true) { // EED 10 Oct 2007 #if defined(WIN32) _iren->Refresh(true); // EED 27 sept 2016 - vtkRenderWindowInteractor *vri = GetWxVTKRenderWindowInteractor(); vri->vtkRenderWindowInteractor::Render(); #else //EED 01Avril2009 // _iren->Render(); - vtkRenderWindowInteractor *vri = GetWxVTKRenderWindowInteractor(); - //auto start1 = std::chrono::high_resolution_clock::now(); vri->vtkRenderWindowInteractor::Render(); @@ -116,7 +115,7 @@ void wxVtkBaseView::Refresh() // virtual //------------------------------------------------------------------- void wxVtkBaseView::RefreshView() // virtual { - if (firstTimeOnPaint==true) + if (GetWxVTKRenderWindowInteractor()->firstTimeOnPaint==true) { printf("EED wxVtkBaseView::RefreshView \n"); // EED 10 Oct 2007 -- 2.49.0