[vtk-developers] vtkWidgets passed between Renderers
Will Schroeder
will.schroeder at kitware.com
Sun Aug 28 20:40:48 EDT 2011
Daniel-
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.
I'm going to try (again) to do some coding this week. I'll be in touch.
W
On Fri, Aug 26, 2011 at 8:03 AM, Daniel Haehn <haehn at bwh.harvard.edu> wrote:
> Hi devels,
>
> we encounter a problem when trying to pass a vtkWidget between
> different vtkRenderers in a render window in 3D Slicer's lightbox
> view.
>
> I wrote the following test to demonstrate:
>
> https://github.com/haehn/VTK/tree/widget-multipleRenderers-Test
>
> I added a test 'TestSeedWidget3.cxx' (bin/WidgetsCxxTests
> "TestSeedWidget3" -I) which tries to simulate a minimal scenario with
> two renderers and one seedwidget.
>
> The test already has problems displaying the widget when two renderers
> with different viewports are configured. This is why line:
> 56 //ren2->SetViewport(rightViewport);
> is commented.
>
> The widget simply does not even appear if line 56 is un-commented.
>
> Do you know why this is happening? And, assuming this can be solved:
> do you know why it is not possible to pass vtkWidgets along multiple
> renderers? Are we doing something wrong?
>
> Thanks,
> Daniel
>
--
William J. Schroeder, PhD
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
will.schroeder at kitware.com
http://www.kitware.com
(518) 881-4902
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20110828/6b33db33/attachment.html>
More information about the vtk-developers
mailing list