X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk%2Fsrc%2FbbcreaMaracasVisuSetPosition.cxx;h=d9a57e1c9e203ca4ebb3704981f7c443eb6003c5;hb=2a1cde86bf45b8f9b11514a9b04d5834b10af209;hp=8b23084c1cf2beb7f53e58f73d596bdb90dbe297;hpb=25e3adf442d6a8d357d52410267445c54426c525;p=creaMaracasVisu.git diff --git a/bbtk/src/bbcreaMaracasVisuSetPosition.cxx b/bbtk/src/bbcreaMaracasVisuSetPosition.cxx index 8b23084..d9a57e1 100644 --- a/bbtk/src/bbcreaMaracasVisuSetPosition.cxx +++ b/bbtk/src/bbcreaMaracasVisuSetPosition.cxx @@ -32,6 +32,7 @@ void SetPosition::Process() // bbSetOutputOut( bbGetInputIn() ); // std::cout << "Output value = " <GetVtkBaseData()); @@ -41,7 +42,14 @@ void SetPosition::Process() vtkmprbasedata->SetY( bbGetInputPoint()[1] ); vtkmprbasedata->SetZ( bbGetInputPoint()[2] ); wxCommandEvent newevent(wxEVT_COMMAND_MENU_SELECTED,12121); // Refres +//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 + + } // if bbGetInputPosition } // bbGetInputwxVtkBaseView }