<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt"><div>Hi,</div><div>Based on the example:&nbsp;<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/Picking" style="font-size: 10pt;">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/Picking</a>&nbsp;, I'm trying to add one more window by creating two sets of polydata, mappers, actors, renderers, render windows, and render window interactors. Unfortunately, I can't make it work. Do I need to have two different class of "MouseInteractorStyle2"? For example:</div><div><br></div><div style="background-color: transparent;">vtkSmartPointer&lt;MouseInteractorStyle2&gt; style_1 =</div><div style="background-color: transparent;">&nbsp; &nbsp; vtkSmartPointer&lt;MouseInteractorStyle2&gt;::New();</div><div style="background-color: transparent;">&nbsp;
 style_1-&gt;SetDefaultRenderer(renderer_1);</div><div style="background-color: transparent;">renderWindowInteractor_1-&gt;SetInteractorStyle( style_1 );<br></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;"><br></div><div style="background-color: transparent;">vtkSmartPointer&lt;MouseInteractorStyle2&gt; style_2 =</div><div style="background-color: transparent;">&nbsp; &nbsp; vtkSmartPointer&lt;MouseInteractorStyle2&gt;::New();</div><div style="background-color: transparent;">&nbsp; style_2-&gt;SetDefaultRenderer(renderer_2);</div><div style="background-color: transparent;"><span style="background-color: transparent; font-size: 10pt;">&nbsp;renderWindowInteractor_1-&gt;SetInteractorStyle( style_2);</span><br></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13px; font-family:
 HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;"><span style="background-color: transparent; font-size: 10pt;"><br></span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;"><span style="background-color: transparent; font-size: 10pt;">Thank you.</span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 10pt; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;"><span style="background-color: transparent; font-size: 10pt;"><br></span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;">Best Regards,</div><div
 style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;">Harold</div></div></body></html>