<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. Thank you. Has Robert Clements’ 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> </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> </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> </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 <<a
href="mailto:stevec@renci.org">stevec@renci.org</a>>:</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>
>Message: 18<br>
>Date: Tue, 8 Apr 2008 14:12:32 +0200<br>
>From: "Oliver Kania" <<a
href="mailto:ptw.freiburg@googlemail.com">ptw.freiburg@googlemail.com</a>><br>
>Subject: [vtkusers] Multiple rendering layers reacting to interaction<br>
>To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
>Message-ID:<br>
> <<a
href="mailto:e22fb1100804080512q2b1ad655oee6f3581183bfb60@mail.gmail.com">e22fb1100804080512q2b1ad655oee6f3581183bfb60@mail.gmail.com</a>><br>
>Content-Type: text/plain; charset="iso-8859-1"<br>
><br>
>Hello,<br>
>my application has several layers :<br>
><br>
>vtkRenderer RenderImage2 = new vtkRenderer();<br>
>vtkRenderer RenderImage = new vtkRenderer();<br>
><br>
> RenderImage.SetLayer(0);<br>
> RenderImage2.SetLayer(1);<br>
><br>
> RenderImage.SetInteractive(1);<br>
> RenderImage2.SetInteractive(1);<br>
><br>
><br>
> RenderImage.SetBackground(0.0, 0.0, 0.3);<br>
><br>
> vtkRenderWindow renWin = new vtkRenderWindow();<br>
> renWin.SetNumberOfLayers(2);<br>
> renWin.AddRenderer(RenderImage2);<br>
> renWin.AddRenderer(RenderImage);<br>
><br>
>vtkRenderWindowInteractor iren = new vtkRenderWindowInteractor();<br>
>iren.SetRenderWindow(renWin);<br>
>//set image mode interaction style<br>
>vtkInteractorStyleImage interactor = new vtkInteractorStyleImage();<br>
>ren.SetInteractorStyle(interactor);<br>
><br>
>What I find is that only one layer reacts to interaction.<br>
>Since I used SetInteractive(), I was expecting that both layers do react.<br>
>More generally, I want to have an arbitrary number of layers that do<br>
>react to the same interaction. Maybe it is somehow possible to link<br>
>the cameras of the renderers ?<br>
>(I tried Renderer1.setCamera(Renderer2.getCamera()) but that does<br>
>not work)<br>
><br>
>kind regards,<br>
>Oliver<br>
<br>
Thank you, Oliver, for bringing layered rendering to my
attention. 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. 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. I can and, if
necessary,<br>
will work through it empirically, i.e., by writing code and seeing what<br>
happens. 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. Can<br>
anyone point me to it? 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. 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> </o:p></span></font></p>
</div>
</body>
</html>