[vtkusers] ImagePlaneWidget

Charl P. Botha c.p.botha at its.tudelft.nl
Wed Mar 26 17:44:01 EST 2003


On Wed, Mar 26, 2003 at 03:16:50PM -0600, John Hunter wrote:
> I am working with the ImagePlaneWidget.py example and would like to
> modify it to include 3 observer windows that show the X, Y, and Z
> planes head on.  I am less interested in the logistics of the GUI
> windows, than in what the proper VTK entities are that I should be
> using so that changes in the position vtk.vtkImagePlaneWidget are
> reflected in the slice windows.  Pointers to examples or suggestions
> are welcome.

1. This is not the easiest of VTK exercises.  Think.
2. Since VTK doesn't use shared textures yet, use
IPW->GetTexture()->GetInput() as the input to your own texture.
3. Use the IPW planesource and reslice output to create an orthogonal plane
of your own.  Also make use of a similar TextureMapToPlane.
4. Connect observers to the interaction/endinteraction events of the IPW in
order to keep your ortho pipelines up to date.
5. This is just a suggestion. :)

Good luck,
Charl

-- 
charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/



More information about the vtkusers mailing list