Daniel-<div><br></div><div>A quick look at the test (and I could be misinterpreting this since I have not run it yet) is that you are trying to use the same representation in two separate renderers, and since the representation is a ->2D representation<- you likely have conflicting coordinates (how can a handle exist in two positions with different display coordinates at the same time?) This can be made to work in 3D but not 2D. Try creating two separate widget/representation pairs.</div>
<div><br></div><div>I'm going to try (again) to do some coding this week. I'll be in touch.</div><div><br>W<br><br><div class="gmail_quote">On Fri, Aug 26, 2011 at 8:03 AM, Daniel Haehn <span dir="ltr"><<a href="mailto:haehn@bwh.harvard.edu">haehn@bwh.harvard.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi devels,<br>
<br>
we encounter a problem when trying to pass a vtkWidget between<br>
different vtkRenderers in a render window in 3D Slicer's lightbox<br>
view.<br>
<br>
I wrote the following test to demonstrate:<br>
<br>
<a href="https://github.com/haehn/VTK/tree/widget-multipleRenderers-Test" target="_blank">https://github.com/haehn/VTK/tree/widget-multipleRenderers-Test</a><br>
<br>
I added a test 'TestSeedWidget3.cxx' (bin/WidgetsCxxTests<br>
"TestSeedWidget3" -I) which tries to simulate a minimal scenario with<br>
two renderers and one seedwidget.<br>
<br>
The test already has problems displaying the widget when two renderers<br>
with different viewports are configured. This is why line:<br>
56 //ren2->SetViewport(rightViewport);<br>
is commented.<br>
<br>
The widget simply does not even appear if line 56 is un-commented.<br>
<br>
Do you know why this is happening? And, assuming this can be solved:<br>
do you know why it is not possible to pass vtkWidgets along multiple<br>
renderers? Are we doing something wrong?<br>
<br>
Thanks,<br>
<font color="#888888">Daniel<br>
</font></blockquote></div><br><br clear="all"><div><br></div>-- <br>William J. Schroeder, PhD<br>Kitware, Inc.<br>28 Corporate Drive<br>Clifton Park, NY 12065<br><a href="mailto:will.schroeder@kitware.com">will.schroeder@kitware.com</a><br>
<a href="http://www.kitware.com">http://www.kitware.com</a><br>(518) 881-4902<br>
</div>