From be7ada6e16251e3b2e1b24f1fb2d7221a05e3af9 Mon Sep 17 00:00:00 2001 From: "eduardo.davila@creatis.insa-lyon.fr" Date: Fri, 20 Dec 2024 14:10:01 +0100 Subject: [PATCH] Clean code --- bbtk/src/bbcreaMaracasVisuSetPosition.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bbtk/src/bbcreaMaracasVisuSetPosition.cxx b/bbtk/src/bbcreaMaracasVisuSetPosition.cxx index bd799c7..29261b6 100644 --- a/bbtk/src/bbcreaMaracasVisuSetPosition.cxx +++ b/bbtk/src/bbcreaMaracasVisuSetPosition.cxx @@ -16,7 +16,6 @@ BBTK_BLACK_BOX_IMPLEMENTATION(SetPosition,bbtk::AtomicBlackBox); //===== void SetPosition::Process() { -auto start1 = std::chrono::high_resolution_clock::now(); // THE MAIN PROCESSING METHOD BODY // Here we simply set the input 'In' value to the output 'Out' // And print out the output value @@ -35,11 +34,12 @@ auto start1 = std::chrono::high_resolution_clock::now(); vtkMPRBaseData* vtkmprbasedata = (vtkMPRBaseData*) (bbGetInputwxVtkBaseView()->GetVtkBaseData()); if (bbGetInputPoint().size()==3) { +auto start1 = std::chrono::high_resolution_clock::now(); vtkmprbasedata->SetX( bbGetInputPoint()[0] ); vtkmprbasedata->SetY( bbGetInputPoint()[1] ); vtkmprbasedata->SetZ( bbGetInputPoint()[2] ); bool tmpFixAxis = vtkmprbasedata->GetFixAxis2D( ); -// vtkmprbasedata->SetFixAxis2D( bbGetInputFixAxis2D() ); + vtkmprbasedata->SetFixAxis2D( bbGetInputFixAxis2D() ); int codeEvent; if (bbGetInputType()==0) { @@ -50,19 +50,19 @@ auto start1 = std::chrono::high_resolution_clock::now(); codeEvent = 22222; // Refresh without box reactivity } wxCommandEvent newevent(wxEVT_COMMAND_MENU_SELECTED,codeEvent); +auto stop1 = std::chrono::high_resolution_clock::now(); +auto duration1 = std::chrono::duration_cast(stop1 - start1); +printf("EED SetPosition::Process time= %ld \n", duration1.count() , this->bbGetFullName().c_str() ); //EED 2017-09-16 Migration wxWidgets 2.8 to 3.0 #if wxMAJOR_VERSION <= 2 bbGetInputwxVtkBaseView()->GetWxVTKRenderWindowInteractor ()->GetParent()->ProcessEvent( newevent ); #else bbGetInputwxVtkBaseView()->GetWxVTKRenderWindowInteractor ()->GetParent()->ProcessWindowEvent( newevent ); #endif - // vtkmprbasedata->SetFixAxis2D( tmpFixAxis ); + vtkmprbasedata->SetFixAxis2D( tmpFixAxis ); } // if bbGetInputPosition } // bbGetInputwxVtkBaseView } // Active -auto stop1 = std::chrono::high_resolution_clock::now(); -auto duration1 = std::chrono::duration_cast(stop1 - start1); -printf("EED SetPosition::Process time= %ld \n", duration1.count() , this->bbGetFullName().c_str() ); } //===== -- 2.47.1