I try to implement vtkRenderWindowInteractor into a dialog-based<br>MFC-Application. I don't use the Win32-Interactor! Unfortunately I don't<br>find the right decleration for iren->SetEndPickMethod(????).<br>In a DOS-based application I used:<br><br>static void PickCells(void *)<br><br>void main(void)<br>{<br>vtkPointPicker *picker = vtkPointPicker::New();<br> picker->SetTolerance(0.01);<br><br> vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New();<br> iren->SetRenderWindow(renWin);<br> iren->SetPicker(picker);<br><br>iren->SetEndPickMethod(PickCells,(void *)iren);<br> iren->Start();<br>}<br><br>static void PickCells(void *arg)<br>{<br> vtkRenderWindowInteractor *iren = (vtkRenderWindowInteractor *)arg;<br> vtkPointPicker *picker = (vtkPointPicker *)iren->GetPicker();<br> ....<br>}<br><br>This works fine for DOS-bases application, unfortunately the decleration<br>isn't the same for windows-based applications? Any example code or<br>suggestions, how to get this work?<br><br><font style='font-size:14.8px'> </font>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td height="1" bgcolor="#09448E"> </td>
</tr>
<tr>
<td height="22"><font style='font-size:14.8px'><a href="http://www.126.com" target="_blank" style="text-decoration: none ;">·<b><font color=red>1.5G
</font></b>全国最大空间——网易126免费邮箱 http://www.126.com 火热抢注中>>> </a></font></td>
</tr>
<tr>
<td height="22"><font style='font-size:14.8px'><a href="http://www.126.com" target="_blank" style="text-decoration: none ;"> 体验30兆超大附件发送,享受100%卡巴斯基专业杀毒……更多超G感受等您来体验!</a>
</font></td>
</tr>
</table>
<font style='font-size:14.8px'><br>
<br>
<a href="http://www.126.com" target="_blank" style="text-decoration: none ;"><br>
</a></font> <font style='font-size:14.8px'> </font>