[vtkusers] vtkImageViewer - how to prevent instant program termination under c++?

Kenneth Gage kenneth.gage at gmail.com
Thu May 19 16:06:10 EDT 2005


Doh! I better read what is contained in the "convenience classes" like
vtkImageViewer a little more closely next time!

Thanks for pointing this out. Well, now I'm sufficiently embarrassed -
I actually did waste a few days on this....

Thank again, and all the best -
Ken

On 5/18/05, David Cole <david.cole at kitware.com> wrote:
> Try starting an event loop with a vtkRenderWindowInteractor as in...:
> 
>  iren->Initialize();
>  iren->Start();
> 
> ...more details in VTK/Examples/Tutorial/Step5/Cxx/Cone5.cxx.
> 
> Always happy to embarass... :-P  :-P
> 
> 
> David
> 
> 
> Kenneth Gage wrote:
> 
> >Dear list members -
> >
> >I've been trying to use vtkImageViewer for a while now without
> >success; the render window pops up and disappears without allowing one
> >time to view the image.  My sample program is based on examples from
> >the textbook and users guide and appears to run normally according to
> >gdb.  I KNOW there is something simple and obvious I must be missing
> >here;
> >
> >Please help me embarrass myself ;)
> >
> >I've attached the source file below - I'm running under FC3 on an
> >athlon system using a recent CVS build of VTK.
> >
> >
> >
> 


-- 
Kenneth Gage
MD-PhD Student
McGowan Institute for Regenerative Medicine
University of Pittsburgh
Pittsburgh, PA 15203-2155



More information about the vtkusers mailing list