]> Creatis software - creaMaracasVisu.git/commitdiff
#3565 Keep state of FixAxis in SetPosition box
authoreduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Tue, 5 Nov 2024 09:33:18 +0000 (10:33 +0100)
committereduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Tue, 5 Nov 2024 09:33:18 +0000 (10:33 +0100)
bbtk/src/bbcreaMaracasVisuSetPosition.cxx

index 897818f89c46fd116b55a1b812dc94279b735328..2121a2d919d30be5e32c8650ff9314f148710da2 100644 (file)
@@ -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