[Insight-users] fltkImage2DViewer?

Luis Ibanez luis . ibanez at kitware . com
Wed, 07 May 2003 17:33:03 -0400


Hi Chad,

Did you add a

         Fl::run()

after viewer Update()  ?

This is the FLTK call that controls
the event loop.

You may want to get familiar with FLTK before
advancing further in your application.

A good starting point is the tutorial available
at

         http://www.fltk.org


Regards,


    Luis



---------------------------------

Chad Washington wrote:
> I am trying to display a 2D image using the fltkImage2DViewer class found in 
> InsightApplications/Auxiliary/FltkImageViewer.  I use the following commands:
> 
> typedef fltk::Image2DViewer< PixelType >          ViewerType;
> ViewerType::Pointer myViewer = ViewerType::New();
> viewer->SetImage( myFilter->GetOutput() );
> viewer->Show();
> viewer->Update();
> 
> I see the image pop up for an instance, and then both it and the gui form 
> disappear.  How do I keep the image up for interaction.  I tried using the 
> SetInteractionMode command, but it didn't seem to help.
> Thanks for the help,
> 
> Chad Washington
> Biomedical Modeling Lab
> Department of Biomedical Engineering
> Vanderbilt University
> _______________________________________________
> Insight-users mailing list
> Insight-users@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-users
>