[vtkusers] add multiple RenderWindowControl in runtime | ActiViz

Matias Montroull matimontg at gmail.com
Wed Feb 5 18:21:33 EST 2014


Hi,

how can I add multiple RenderWindowControls in runtime?

I've tried this:

 rendervtkimage = new RenderWindowControl[10];
 panel.Controls.Add(rendervtkimage[i], nrocolumna, nrofila);

                        vtkRenderWindowInteractor renderWindowInteractor =
vtkRenderWindowInteractor.New();
                        imageViewer.SetupInteractor(renderWindowInteractor);

renderWindowInteractor.SetRenderWindow(rendervtkimage[i].RenderWindow);

imageViewer.SetRenderWindow(rendervtkimage[i].RenderWindow);
                        imageViewer.Render();
                        renderWindowInteractor.Start();

And I only see one control added.

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20140205/be6f1cec/attachment.html>


More information about the vtkusers mailing list