[vtkusers] Tiling a window with images
David Gobbi
dgobbi at irus.rri.on.ca
Tue Jun 13 11:30:37 EDT 2000
Hi Erik,
It is probably much easier to do this with a vtkImageWindow than
with a vtkRenderWindow and a whole bunch of texture-mapped planes.
Take a look at one of the examples that draws multiple images in
the same window, e.g. contrib/examplesTcl/InterpolationModes.tcl
or imaging/examplesTcl/TestViewports.tcl
The best way to do this is probably to use one vtkImageReslice
(use it to shrink the whole volume along the X and Y axes while
leaving the Z-axis as-is), and a whole bunch of vtkImageMappers
(each set to a different ZSlice) and vtkImagers all within the
same vtkImageWindow.
- David
On Tue, 13 Jun 2000, Erik Sobel wrote:
> Does anyone know of an example of how to tile a renderWindow (or
> imageViewer) with images of each of the slices in a volume - like the
> Mosaic feature of the NIH-Image program?
>
> Does it really require an array of vtkImageReslicers, Mappers,
> PlaneSources, Actors etc? Or is there an easier way?
>
> Thanks,
> Erik
More information about the vtkusers
mailing list