Hi David,<div><br></div><div>Thanks for clarifying. With regards compositing and vtkPainters, I like the idea of having an ImageLayer</div><div>to keep track of how compositing is done. </div><div><br></div><div>The mapper can then make the required connection to </div>
<div>allow for auto display and reslice.</div><div><br></div><div>Best regards,</div><div>Cartik </div><div><br></div><div><br><br><div class="gmail_quote">On Sat, Jan 22, 2011 at 12:54 PM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Cartik,<br>
<br>
Multiple datasets can be composited by adding multiple vtkImage<br>
"actors" to the renderer. The alpha channel of the images (or the<br>
Opacity setting of the property) will control the blending. Also,<br>
because vtkImage is a vtkProp3D subclass, it has a vtkMatrix4x4 that<br>
provides the data-to-world coordinate transformation. So having a<br>
separate vtkImage for each vtkImageData allows you to set a different<br>
transform for each image.<br>
<br>
One thing that I'm definitely going to have to do is look at the vtk<br>
painters to see how to get them to play nicely with the new mappers.<br>
There is a lot of potential to do customized filtering and compositing<br>
at the rendering stage via GPU programming.<br>
<br>
I'm open to suggestions for different ways of compositing the images.<br>
The current scheme requires that users add the images to the render in<br>
the correct order in order to have the compositing work properly, and<br>
only alpha-compositing is supported. I've though that it might be<br>
nicer to have an "ImageLayer" ivar or something similar to control the<br>
ordering, but I haven't yet convinced myself that this would be the<br>
best way to go.<br>
<font color="#888888"><br>
- David<br>
</font><div><div></div><div class="h5"><br>
<br>
On Sat, Jan 22, 2011 at 10:19 AM, cartik sharma <<a href="mailto:cartik.sharma@gmail.com">cartik.sharma@gmail.com</a>> wrote:<br>
> Hi David,<br>
> Interesting functionality and perspective. I like the way the mapper<br>
> implicitly handles<br>
> image reslicing and event callbacks.<br>
> Could we implement this so we have the same mapper for reslicing of multiple<br>
> datasets or would this imply creating one mapper for each dataset.<br>
> Best regards,<br>
> Cartik<br>
</div></div></blockquote></div><br></div>