[vtkusers] Re: simple slice viewer application

Dave Reed dreed at capital.edu
Tue Jul 10 09:20:43 EDT 2001


> Date: Mon, 9 Jul 2001 23:26:31 -0400 (EDT)
> From: David Gobbi <dgobbi at irus.rri.ca>
> 
> Hi all,
> 
> There have been a few requests for a simple slice viewer over
> the past week, so here's one that I've been developing on-and-off.
> It requires python and the vtkTkRenderWidget.so (or .dll).
> 
> Documentation is scarce, but it is basically a widget with
> a SetInput() method and SetLookupTable() method that provides
> useful interaction with 3D images.  You can also set multiple
> inputs (for image overlay), mix 3D actor rendering with the
> image rendering, and do other little tricks.
> 
> You can pick it up (the vtkSliceWidget.py) at
> http://www.atamai.com/download.html
> The license is similar to the VTK license.
> 
>  - David

I've tried a couple times over the last few minutes but when I click
on the link that directs you to the actual source code at the ftp
site, it fails (Netscape complains no route to host).

When I saw those requests for a slice viewer, I also started writing
one (since I need one). I've written a complete GUI application using
GTK and vtk (using the GTK widget Prabhu Ramachandran wrote). It
allows you to enter the data set, extents, bits per data, a data mask,
and a data range (which is used to create a linear gray scale map) or
you can enter a file that contains a color mapping.  The interface
could be certainly be made prettier, but it's functional.

A screen shot is available at:
http://capital2.capital.edu/faculty/dreed/slice.jpg

The left mouse button tells you the value under the mouse, the right
button changes the slice and the middle button changes the color
level.

I'd be happy to get it included in VTK if anyone wants. It requires,
Python and libglade since the interface is generated from a XML file
output by Glade. It probably wouldn't take more than an hour to write
the interface code by hand so that libglade wouldn't be necessary.

Dave





More information about the vtkusers mailing list