From: eduardo.davila@creatis.insa-lyon.fr Date: Thu, 28 Nov 2024 06:17:00 +0000 (+0100) Subject: Clean code X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=c795b7b7bdaf33b95da9e8a7c00037d90e3d686d;p=creaMaracasVisu.git Clean code --- diff --git a/bbtk/src/bbmaracasvisuViewerNV.cxx b/bbtk/src/bbmaracasvisuViewerNV.cxx index 263617f..07c3b40 100644 --- a/bbtk/src/bbmaracasvisuViewerNV.cxx +++ b/bbtk/src/bbmaracasvisuViewerNV.cxx @@ -69,14 +69,17 @@ void bbwxMaracas_N_ViewersWidget::OnRefreshView(wxCommandEvent & event) mbbViewerNV->_point.push_back( (int)GetY() ); mbbViewerNV->_point.push_back( (int)GetZ() ); mbbViewerNV->bbSetOutputPoint( mbbViewerNV->_point ); -// bool ok=true; -//ED2024-11-01 -// if (mbbViewerNV->bbGetInputReactivityType()==0) { ok=false; } -// mbbViewerNV->bbSignalOutputModification(std::string("Point"),ok); - if (mbbViewerNV->bbGetInputReactivityType()==1) - { - mbbViewerNV->bbSignalOutputModification(std::string("Point"),true); - } // if type + + //ED2024-11-01 + bool ok=true; + if (mbbViewerNV->bbGetInputReactivityType()==0) { ok=false; } + mbbViewerNV->bbSignalOutputModification(std::string("Point"),ok); + +// if (mbbViewerNV->bbGetInputReactivityType()==1) +// { +// mbbViewerNV->bbSignalOutputModification(std::string("Point"),true); +// } // if type + } // if X Y Z wxMaracas_N_ViewersWidget::OnRefreshView(event);