X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk%2Fsrc%2FbbcreaMaracasVisuSetPosition.cxx;h=d9a57e1c9e203ca4ebb3704981f7c443eb6003c5;hb=2a1cde86bf45b8f9b11514a9b04d5834b10af209;hp=79379df434cad2adff64cb685e2084ff64cf784d;hpb=8ee6059f44572054adf59521a1a158583c1f4fd1;p=creaMaracasVisu.git diff --git a/bbtk/src/bbcreaMaracasVisuSetPosition.cxx b/bbtk/src/bbcreaMaracasVisuSetPosition.cxx index 79379df..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,10 +42,16 @@ 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 - } //===== // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)