<div dir="ltr"><div>Hello all,</div><div><br></div><div>I am developing an application based in MITK which uses vtk. I am migrating now the app from vtk 7 to vtk 8.1. I have found a problem with respect changing the render window interactor style to a customized one. It worked perfectly in vtk 7, however now it does not apply the new style. The code is the same:</div><div><br></div><div><div style="color:rgb(248,248,242);background-color:rgb(39,40,34);font-family:"Droid Sans Mono","monospace",monospace,"Droid Sans Fallback";font-weight:normal;font-size:14px;line-height:19px;white-space:pre"><div><span style="color:rgb(248,248,242)">m_renderWindowInteractor </span><span style="color:rgb(249,38,114)">=</span><span style="color:rgb(248,248,242)"> m_simulation_3D_right-></span><span style="color:rgb(166,226,46)">GetVtkRenderWindow</span><span style="color:rgb(248,248,242)">()-></span><span style="color:rgb(166,226,46)">GetInteractor</span><span style="color:rgb(248,248,242)">();</span></div><div><span style="color:rgb(248,248,242)">vtkNew</span><span style="color:rgb(249,38,114)"><</span><span style="color:rgb(248,248,242)">customMouseInteractorStyle</span><span style="color:rgb(249,38,114)">></span><span style="color:rgb(248,248,242)"> style;</span></div><div><span style="color:rgb(248,248,242)">m_renderWindowInteractor-></span><span style="color:rgb(166,226,46)">SetInteractorStyle</span><span style="color:rgb(248,248,242)">(style);</span></div></div><br></div><div>Where m_renderWindowInteractor is <div style="color:rgb(248,248,242);background-color:rgb(39,40,34);font-family:"Droid Sans Mono","monospace",monospace,"Droid Sans Fallback";font-weight:normal;font-size:14px;line-height:19px;white-space:pre"><div><span style="color:rgb(248,248,242)">vtkSmartPointer</span><span style="color:rgb(249,38,114)"><</span><span style="color:rgb(248,248,242)">vtkRenderWindowInteractor</span><span style="color:rgb(249,38,114)">></span></div></div></div><div><br></div><div>I created my customize style following <a href="https://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/MouseEvents">this example</a>.</div><div><br></div><div>Now, using vtk 8.1 it compiles and gives no error but it does not work, it does not apply my custom style... Should I take something new into account?</div><div>Any help will be very welcome!</div><div><br></div><div>Thank you very much in advance.</div><div><br></div><div>Best regards,</div><div><br></div><div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><p style="font-size:12.8px;font-family:Verdana,Arial,Helvetica,sans-serif;margin:0px;background-color:rgb(248,248,248)"><span style="font-family:helvetica"><span style="color:rgb(0,0,128)"><span style="color:rgb(204,0,0)">Rocío López Velazco</span></span><b><span style="color:rgb(0,0,128)"><br></span></b></span></p><p style="font-size:12.8px;margin:0px;background-color:rgb(248,248,248)"><span style="color:rgb(204,0,0)"><i style="font-family:helvetica;font-size:x-small">SimbioSYS</i></span><span style="color:rgb(204,0,0)"><i style="font-family:helvetica;font-size:x-small"><span><span style="color:rgb(204,0,0)"><i style="font-family:helvetica;font-size:x-small"> group</i></span></span>, BCN MedTech</i></span><br></p><p style="font-size:12.8px;margin:0px;background-color:rgb(248,248,248)"><i><font size="1"><span style="color:rgb(102,102,102)"><span style="font-family:Georgia,Arial;line-height:13px">UniversityPompeu Fabra</span></span></font></i></p><p style="font-size:12.8px;margin:0px;background-color:rgb(248,248,248)"><i><font size="1"><span style="color:rgb(102,102,102)"><span style="font-family:Georgia,Arial;line-height:13px">Department of Information and Communication Technologies </span><br></span></font><span><font color="#888888"><font size="1"><span style="color:rgb(102,102,102)"><span style="font-family:Georgia,Arial;line-height:13px"><span><span><font face="Georgia, Arial"><span style="line-height:13px">Roc Boronat, 122<a> </a>(Tànger Building), 08018 Barcelona</span></font></span></span></span></span></font><span style="color:rgb(68,68,68)"><font size="1"><span style="color:rgb(102,102,102)"><span style="font-family:Georgia,Arial;line-height:13px"><span> <br>Office 55 119 </span></span></span></font><span style="font-family:Georgia,Arial;line-height:13px"><span style="font-size:11px"><font size="1"><span style="color:rgb(102,102,102)"><span style="font-family:Georgia,Arial;line-height:13px"><span></span></span></span></font><span style="font-family:Georgia,Arial;line-height:13px"><span style="font-size:11px"><font size="1"><span style="color:rgb(102,102,102)"></span></font><br></span></span></span></span></span></font></span><span style="color:rgb(7,55,99)"><span style="font-family:Georgia,Arial;line-height:13px"><span style="font-size:11px"><span style="font-family:Georgia,Arial;line-height:13px"><span style="font-size:11px"><a href="https://bcn-medtech.upf.edu/" target="_blank">https://bcn-medtech.upf.edu/</a></span></span></span></span></span></i></p><p style="margin:0px;background-color:rgb(248,248,248)"><i style="font-size:x-small;font-family:helvetica;color:rgb(128,128,128)"><br></i></p></div><div style="font-size:12.8px"><br></div></div></div></div></div></div></div>
</div></div>