<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: <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> , 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<MouseInteractorStyle2> style_1 =</div><div style="background-color: transparent;"> vtkSmartPointer<MouseInteractorStyle2>::New();</div><div style="background-color: transparent;">
style_1->SetDefaultRenderer(renderer_1);</div><div style="background-color: transparent;">renderWindowInteractor_1->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<MouseInteractorStyle2> style_2 =</div><div style="background-color: transparent;"> vtkSmartPointer<MouseInteractorStyle2>::New();</div><div style="background-color: transparent;"> style_2->SetDefaultRenderer(renderer_2);</div><div style="background-color: transparent;"><span style="background-color: transparent; font-size: 10pt;"> renderWindowInteractor_1->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>