[Insight-users] fltkImageViewer and updates to surrounding controls

Luis Ibanez luis.ibanez at kitware.com
Wed Sep 9 12:00:11 EDT 2009


Hi Jan,

You will have to call the

             slider->value( x )

method from the event handler that manages
the key events in this application.


The elegant way of doing this would be to use
events...


but if you are in a hurry, a slider pointer passed
to the handler will do the trick.  (just don't tell
anybody that I suggested such abomination)   :-)



    Regards,


        Luis


---------------------------------------------------------------------
On Sun, Sep 6, 2009 at 9:30 AM, Jan Kratochvíla
<jan.kratochvila at seznam.cz>wrote:

> Hello!
> My problem is a general programming problem but I would highly appreciate
> any help. I am using fltkImageViewer class (as in Curves3DExtractor example
> application). If I change the axis or slice using keyboard (0, 1, 2 keys for
> axis and < > for slices), it changes in the window but the surrounding
> controls (slide bar for slices) and choice menu for X, Y, Z doesn't change.
>
> Is there a way how to tell the slide bar that the slice has changed inside
> the viewer window? It is an event problem, however, if I write a handle
> function for fltkImageViewer class, it does not work. I think the reason is
> that it is not inherited from Fl_Window.
>
> Any help is highly appreciated.
>
> Thank you,
>
> ---
> Jan Kratochvila
> jan.kratochvila at seznam.cz
> Czech Technical university in Prague, Czech republic
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090909/a0658e0b/attachment.htm>


More information about the Insight-users mailing list