[vtkusers] Dual Volume Rendering

Georg Ziegler gziegler at mail.zserv.tuwien.ac.at
Fri Mar 2 03:00:13 EST 2012


Hi Bill,

you need two instances of vtkVolume.
The second call to SetMapper replaces the previous mapper.

vtkVolume volume
volume SetMapper volumeMapper

vtkVolume volume2
volume2 SetMapper volumeMapper2

Regards,
georg

Am 02.03.2012 um 01:08 schrieb Bill Foster:

> Hi,
> 
> Being able to display two volumes superimposed over each other is valuable in medical imaging. I've been trying to display 2 volumes in SimpleRayCast.tcl. What I tried to do was define 2 functions for:
> vtkVolume volume
>     volume SetMapper volumeMapper
>     volume SetMapper volumeMapper2
>     volume SetProperty volumeProperty
> 
> The problem is that only one volume is displayed, the 2nd one assigned. I did the obvious setup of the 2 volume mappers with a reader for each one:
> vtkVolumeRayCastMapper volumeMapper 
>     volumeMapper SetVolumeRayCastFunction compositeFunction
>     volumeMapper SetInputConnection [reader GetOutputPort]
> vtkVolumeRayCastMapper volumeMapper2 
>     volumeMapper2 SetVolumeRayCastFunction compositeFunction
>     volumeMapper2 SetInputConnection [reader2 GetOutputPort]
> 
> I wonder if there is another way to go about this problem. Any advice would be appreciated.
> 
> Many thanks,
> Bill
> 
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list