[Insight-users] Courseware FLTK example question...

Luis Ibanez luis.ibanez@kitware.com
Fri, 21 Mar 2003 17:25:26 -0500


Hi Bill,

Great,

1) You will find FindFltkImageViewer.cmake
    in the CVS version of InsightApplications.

http://www.itk.org/cgi-bin/cvsweb.cgi/InsightApplications/?cvsroot=Insight


2) The Update line is needed because the viewer
    is not a real pipeline object. It just look
    like one. The viewer computes image size and
    intensity ranges when you call SetInput();

    So, SetInput() has to be after reader->Update()
    in order to make sure the reader->GetOutput()
    has a valid image.

    Tipically this is an application + GUI issue,
    ... just something to keep in mind.

    VTK viewers on the other hand are real pipeline
    objects, so they propagate Update() calls.



Regards,


Luis


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


Bill Oliver wrote:
> 
> Thanks, Luis.
> 
> That pretty much did the trick.  Thanks!
> 
> A couple of quick things, though:
> 
> 1) I could not find a FindFltkImageViewer.cmake
> in my distribution, so I ended up still adding
> the .a file to the Makefile by hand.  Obviously,
> I still need to learn a little more about Cmake
> in order to figure out how to get it in there
> automagically.
> 
> 2) I needed to add the line
> 
> reader->Update();
> 
> in order to get the image in.  This seems
> a little odd, because I didn't have to do
> that when using VTK.  Oh, well
> 
> Anyway, the thing displays fine now!!!
> 
> Thanks.
> 
>