]> Creatis software - creaMaracasVisu.git/commitdiff
#3573 Bug Refresh windows
authoreduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Tue, 14 Jan 2025 09:14:40 +0000 (10:14 +0100)
committereduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Tue, 14 Jan 2025 09:14:40 +0000 (10:14 +0100)
bbtk/src/bbmaracasvisuShowNPoints.cxx
bbtk/src/bbmaracasvisuViewerNV.cxx

index 92de7f00cd446cc127c84742dbf559f1f5b47aa1..cbe313518e800d4f0f468b61fc310371cbe61d83 100644 (file)
@@ -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() );
 }
 
 //-----------------------------------------------------------------
index d106f423c2fbefc8cc94f1dad22ddc208a2a4cda..b8f2c62453084e5d2623102d01e50a7b60cfbc45 100644 (file)
@@ -111,7 +111,6 @@ BBTK_BLACK_BOX_IMPLEMENTATION(ViewerNV,bbtk::WxBlackBox);
 //-------------------------------------------------------------
 void ViewerNV::Process()
 {
-    printf("EED \10ViewerNV::Process\n");
        vtkImageData* img               = bbGetInputIn();
        std::vector<int> type   = bbGetInputnTypeView();
        if(img != NULL && _mwxwidget != NULL)
@@ -183,8 +182,6 @@ void ViewerNV::Process()
 //-------------------------------------------------------------
 void ViewerNV::CreateWidget(wxWindow* parent)
 {
-    printf("EED \10ViewerNV::CreateWidget\n");
-
     bbtkDebugMessageInc("Core",9,"ViewerNV::CreateWidget()"<<std::endl);
     _mwxwidget = new bbwxMaracas_N_ViewersWidget( this, parent );
     bbtkDebugDecTab("Core",9);
@@ -199,8 +196,6 @@ void ViewerNV::CreateWidget(wxWindow* parent)
 // when window is shown
 void ViewerNV::OnShowWidget()
 {
-    printf("EED \10ViewerNV::OnShowWidget\n");
-
     if (bbGetOutputWidget()!=NULL)
     {
         bbGetOutputWidget()->Layout();