<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Oliver,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Yes, I hope we can be of assistance to
each other.&nbsp; Thank you.&nbsp; Has Robert Clements&#8217; response been of any help
for your immediate problem?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>-Steve<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=3 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Oliver Kania
[mailto:ptw.freiburg@googlemail.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, April 09, 2008
10:59 AM<br>
<b><span style='font-weight:bold'>To:</span></b> Steve Chall; <st1:PersonName
w:st="on">vtkusers@vtk.org</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [vtkusers] layered
renderers</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Hello Steve,<br>
I am glad someone else has the same problems to solve ;)<br>
However, I fear you are right : The books do not contain any<br>
documentation on this. I even searched the archives without success.<br>
There is only one rudimentary CPP example.<br>
Anyway, I will try to do the same as you are doing and<br>
work myself through it. So maybe we can help each other out ?<br>
<br>
Kind regards,<br>
Oliver<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><span class=gmailquote><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>2008/4/8, Steve Chall &lt;<a
href="mailto:stevec@renci.org">stevec@renci.org</a>&gt;:</span></font></span><o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
&gt;Message: 18<br>
&gt;Date: Tue, 8 Apr 2008 14:12:32 +0200<br>
&gt;From: &quot;Oliver Kania&quot; &lt;<a
href="mailto:ptw.freiburg@googlemail.com">ptw.freiburg@googlemail.com</a>&gt;<br>
&gt;Subject: [vtkusers] Multiple rendering layers reacting to interaction<br>
&gt;To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
&gt;Message-ID:<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;<a
href="mailto:e22fb1100804080512q2b1ad655oee6f3581183bfb60@mail.gmail.com">e22fb1100804080512q2b1ad655oee6f3581183bfb60@mail.gmail.com</a>&gt;<br>
&gt;Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt;<br>
&gt;Hello,<br>
&gt;my application has several layers :<br>
&gt;<br>
&gt;vtkRenderer RenderImage2 = new vtkRenderer();<br>
&gt;vtkRenderer RenderImage = new vtkRenderer();<br>
&gt;<br>
&gt; RenderImage.SetLayer(0);<br>
&gt; RenderImage2.SetLayer(1);<br>
&gt;<br>
&gt; RenderImage.SetInteractive(1);<br>
&gt; RenderImage2.SetInteractive(1);<br>
&gt;<br>
&gt;<br>
&gt;&nbsp;&nbsp;RenderImage.SetBackground(0.0, 0.0, 0.3);<br>
&gt;<br>
&gt;&nbsp;&nbsp;vtkRenderWindow renWin = new vtkRenderWindow();<br>
&gt;&nbsp;&nbsp;renWin.SetNumberOfLayers(2);<br>
&gt;&nbsp;&nbsp;renWin.AddRenderer(RenderImage2);<br>
&gt;&nbsp;&nbsp;renWin.AddRenderer(RenderImage);<br>
&gt;<br>
&gt;vtkRenderWindowInteractor iren = new vtkRenderWindowInteractor();<br>
&gt;iren.SetRenderWindow(renWin);<br>
&gt;//set image mode interaction style<br>
&gt;vtkInteractorStyleImage interactor = new vtkInteractorStyleImage();<br>
&gt;ren.SetInteractorStyle(interactor);<br>
&gt;<br>
&gt;What I find is that only one layer reacts to interaction.<br>
&gt;Since I used SetInteractive(), I was expecting that both layers do react.<br>
&gt;More generally, I want to have an arbitrary number of layers that do<br>
&gt;react to the same interaction. Maybe it is somehow possible to link<br>
&gt;the cameras of the renderers ?<br>
&gt;(I tried Renderer1.setCamera(Renderer2.getCamera()) but that does<br>
&gt;not work)<br>
&gt;<br>
&gt;kind regards,<br>
&gt;Oliver<br>
<br>
Thank you, Oliver, for bringing layered rendering to my
attention.&nbsp;&nbsp;This<br>
sounds like it could resolve some visibility issues I'm experiencing.<br>
However, I can't seem to find very much documentation on this
feature.&nbsp;&nbsp;I've<br>
bought and looked through the books, read the code in vtkRenderer.h, and<br>
checked online, and pretty much all I've found out is that layers are<br>
numbered and all but the bottom are transparent.&nbsp;&nbsp;I can and, if
necessary,<br>
will work through it empirically, i.e., by writing code and seeing what<br>
happens.&nbsp;&nbsp;But it would be valuable and probably much more efficient
if there<br>
were some more thorough documentation than what I've found thus
far.&nbsp;&nbsp;Can<br>
anyone point me to it?&nbsp;&nbsp;Admittedly, once again I may have just
overlooked<br>
something obvious, but if so I'd appreciate someone shaking me out of my<br>
tunnel vision.&nbsp;&nbsp;Thanks all.<br>
<br>
-Steve<br>
<br>
<br>
_______________________________________________<br>
This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at: <a
href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>