[IGSTK-Users] Is it possible to change the View object connected to a FLTKWidget?

Steve Fallows sgfallows at gmail.com
Fri Jul 27 11:35:13 EDT 2012


I am working with the NeedleBiospy example. I am trying to fix it so that a
new image can be loaded without restarting the application. As it stands,
loading a new image adds the ImageSpatialObject and all the other object
representations into the views, without removing the ones that are there
already.

So, my first approach is to delete the View2D/3D ojbects and create new
ones. However there does not seem to be any Disconnect or Remove type
interface function on the FLTKWidget class. I've tried setting the view
directly to a newly created view and also setting it to NULL, followed by
setting it to a newly created view. In bot of these cases I get the
following log message:

    (CRITICAL) In class FLTKWidget No transitions have been defined for
current state and input  State = 2 [ViewConnectedState] Input = 3
[ValidViewInput]
I infer from this message that the FLTKWidget is still in the connected
state and therefore refuses a new View.

Is there any way to do this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/igstk-users/attachments/20120727/ca8a0c2d/attachment-0001.html>


More information about the IGSTK-Users mailing list