[vtkusers] Tying image to the window

tom fogal tfogal at apollo.sr.unh.edu
Fri Jun 10 15:54:58 EDT 2005


 <BAY106-F34CDFAE1DF66DCAA931EFDF2FF0 at phx.gbl>"Abhi Rampal" writes:
>Good Day,
>
>I have written a program that opens up dicom images. When I maximize the 
>viewing window the dicom image doesnot maximize with the window, i.e. it 
>stays the same size. I wrote two sets of programs to view the the dicom 
>slicers, one using vtkImageViewer and the other using vtkImageMapper, 
>vtkActor2D, vtkRenderer, vtkRenderWindow. The idea with the latter was to 
>tie the actor to the renderer and the renderer to the window. This did not 
>solve the problem. I was using the idea of stl reader in the VTK user's 
>guide book. I know of vtkMagnifyImage but I don't think this will solve the 
>problem.

<snip.

if there is a hook for the RenderWindow to tell your app that the
window maximized (maybe a RenderWindowInteractor can do this?), then
you could zoom the camera in when the window maximizes.

-tom



More information about the vtkusers mailing list