From 5888773d4df60bedd8a265de017948fbb469e855 Mon Sep 17 00:00:00 2001 From: "eduardo.davila@creatis.insa-lyon.fr" Date: Tue, 14 Jan 2025 10:14:40 +0100 Subject: [PATCH] #3573 Bug Refresh windows --- bbtk/src/bbmaracasvisuShowNPoints.cxx | 8 ++------ bbtk/src/bbmaracasvisuViewerNV.cxx | 5 ----- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/bbtk/src/bbmaracasvisuShowNPoints.cxx b/bbtk/src/bbmaracasvisuShowNPoints.cxx index 92de7f0..cbe3135 100644 --- a/bbtk/src/bbmaracasvisuShowNPoints.cxx +++ b/bbtk/src/bbmaracasvisuShowNPoints.cxx @@ -99,7 +99,6 @@ BBTK_BLACK_BOX_IMPLEMENTATION(ShowNPoints,bbtk::WxBlackBox); //----------------------------------------------------------------- void ShowNPoints::Process() { - printf("EED ShowNPoints::Process start \n"); if (mwxwidget!=NULL) { mwxwidget->SetImage( bbGetInputImage() ); @@ -118,6 +117,7 @@ void ShowNPoints::Process() // firsttime=false; if (onshowwidget==true) { + mwxwidget->SetRenderer( bbGetInputRenderer() ); if ( mwxwidget->GetModelShowNPoints()->GetFirstTime()==false ) { mwxwidget->DetectCollectionActive(); @@ -139,13 +139,11 @@ void ShowNPoints::Process() bbSetOutputlstSelectedIndexs( mwxwidget->GetLstSelectedIndexs() ); bbSetOutputWidgetShowNPoints( (WidgetShowNPoints*)mwxwidget ); } // mwxwidget - printf("EED ShowNPoints::Process end \n"); } //----------------------------------------------------------------- void ShowNPoints::CreateWidget(wxWindow* parent) { - printf("EED ShowNPoints::CreateWidget\n"); mwxwidget = new WidgetShowNPointsBox( parent, this, bbGetInputType() ); bbSetOutputWidget( mwxwidget ); } @@ -154,9 +152,7 @@ void ShowNPoints::CreateWidget(wxWindow* parent) void ShowNPoints::OnShowWidget() { onshowwidget=true; - printf("EED ShowNPoints::OnShowWidget\n"); - mwxwidget->SetRenderer( bbGetInputRenderer() ); - mwxwidget->SetInitLstPoints( bbGetInputInitLstPointsX() , bbGetInputInitLstPointsY() , bbGetInputInitLstPointsZ() , bbGetInputInitLstLabels() , bbGetInputInitLstIndexs() ); +// mwxwidget->SetInitLstPoints( bbGetInputInitLstPointsX() , bbGetInputInitLstPointsY() , bbGetInputInitLstPointsZ() , bbGetInputInitLstLabels() , bbGetInputInitLstIndexs() ); } //----------------------------------------------------------------- diff --git a/bbtk/src/bbmaracasvisuViewerNV.cxx b/bbtk/src/bbmaracasvisuViewerNV.cxx index d106f42..b8f2c62 100644 --- a/bbtk/src/bbmaracasvisuViewerNV.cxx +++ b/bbtk/src/bbmaracasvisuViewerNV.cxx @@ -111,7 +111,6 @@ BBTK_BLACK_BOX_IMPLEMENTATION(ViewerNV,bbtk::WxBlackBox); //------------------------------------------------------------- void ViewerNV::Process() { - printf("EED ViewerNV::Process\n"); vtkImageData* img = bbGetInputIn(); std::vector type = bbGetInputnTypeView(); if(img != NULL && _mwxwidget != NULL) @@ -183,8 +182,6 @@ void ViewerNV::Process() //------------------------------------------------------------- void ViewerNV::CreateWidget(wxWindow* parent) { - printf("EED ViewerNV::CreateWidget\n"); - bbtkDebugMessageInc("Core",9,"ViewerNV::CreateWidget()"<Layout(); -- 2.49.0