I believe you may also want to set layers if you want to create overlaid viewports that have no background (like a 3d axis rendered in a separate rederer within a renderwindow).<br><br>virtual void <a class="el" href="http://www.vtk.org/doc/release/5.2/html/a01192.html#270c62e248c8a479ec61b839e3a4c4d8">SetNumberOfLayers</a> (int)<br>
virtual void <a class="el" href="http://www.vtk.org/doc/release/5.2/html/a01187.html#5621b2f66530f887d930ac21860f963e">SetLayer</a> (int)<br><br>Here&#39;s an example, it doesn&#39;t use layers, but that would just be a couple of extra lines of code:<br>
<a href="http://public.kitware.com/pipermail/vtkusers/2001-September/007992.html">http://public.kitware.com/pipermail/vtkusers/2001-September/007992.html</a><br><br><br><br><div class="gmail_quote">On Thu, Jan 7, 2010 at 1:15 PM, David E DeMarle <span dir="ltr">&lt;<a href="mailto:dave.demarle@kitware.com">dave.demarle@kitware.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Yes you can. A RenderWindow can have any number of Renderers in it,<br>
and those may freely overlap. When they overlap the bottom one sets<br>
the background color for instance. For interaction there is a way to<br>
query/control what renderer gets the action.<br>
<font color="#888888"><br>
David E DeMarle<br>
Kitware, Inc.<br>
R&amp;D Engineer<br>
28 Corporate Drive<br>
Clifton Park, NY 12065-8662<br>
Phone: 518-371-3971 x109<br>
</font><div><div></div><div class="h5"><br>
<br>
<br>
On Thu, Jan 7, 2010 at 1:00 PM, Xiaofeng Z &lt;<a href="mailto:xf10036@hotmail.com">xf10036@hotmail.com</a>&gt; wrote:<br>
&gt; Hello,<br>
&gt;<br>
&gt; I would like to know if VTK will be able to handle two or more viewports<br>
&gt; that overlap on each other.  If so, how does it behave?<br>
&gt;<br>
&gt; Xiaofeng Zhao<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ________________________________<br>
&gt; Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. Sign up now.<br>
</div></div><div><div></div><div class="h5">&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;<br>
&gt;<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br>