From: eduardo.davila@creatis.insa-lyon.fr Date: Tue, 5 Nov 2024 09:33:18 +0000 (+0100) Subject: #3565 Keep state of FixAxis in SetPosition box X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=dc409fbb5568b994a60c7b6769ba5a8c87d33663;p=creaMaracasVisu.git #3565 Keep state of FixAxis in SetPosition box --- diff --git a/bbtk/src/bbcreaMaracasVisuSetPosition.cxx b/bbtk/src/bbcreaMaracasVisuSetPosition.cxx index 897818f..2121a2d 100644 --- a/bbtk/src/bbcreaMaracasVisuSetPosition.cxx +++ b/bbtk/src/bbcreaMaracasVisuSetPosition.cxx @@ -38,6 +38,7 @@ void SetPosition::Process() vtkmprbasedata->SetX( bbGetInputPoint()[0] ); vtkmprbasedata->SetY( bbGetInputPoint()[1] ); vtkmprbasedata->SetZ( bbGetInputPoint()[2] ); + bool tmpFixAxis = vtkmprbasedata->GetFixAxis2D( ); vtkmprbasedata->SetFixAxis2D( bbGetInputFixAxis2D() ); int codeEvent; if (bbGetInputType()==0) @@ -54,7 +55,8 @@ void SetPosition::Process() bbGetInputwxVtkBaseView()->GetWxVTKRenderWindowInteractor ()->GetParent()->ProcessEvent( newevent ); #else bbGetInputwxVtkBaseView()->GetWxVTKRenderWindowInteractor ()->GetParent()->ProcessWindowEvent( newevent ); - #endif + #endif + vtkmprbasedata->SetFixAxis2D( tmpFixAxis ); } // if bbGetInputPosition } // bbGetInputwxVtkBaseView } // Active