[vtkusers] Invoking a User Calback
Andy Treisch
Andy.Treisch at gmx.de
Wed Sep 6 07:03:10 EDT 2006
Hello!
I have a problem Invoking a user callback command in my pipeline.
I initialize and start my pipeline in a thread with the usual stuff
ending up in
vtkCallback* callback = vtkCallback::New();
callback->SetCallback(updateFieldData);
vtkRenderWindowInteractor* iren = vtkRenderWindowInteractor::New();
iren->SetRenderWindow(renWin);
iren->AddObserver(vtkCommand::UserEvent+1, callback, 1.0);
iren->Initialize();
iren->Start();
The Callback function updateFieldData should be invoked when I send
vtkCommand::UserEvent+1 message to the Interactor. Now I try to
iren->InvokeEvent(vtkCommand::UserEvent+1)
in another function of my application, but that does not work. My
application never reaches the updateFieldData function although
the InvokeEvent line is executed.
How do I invoke my event?
Thanks in advance for your help,
Andy Treisch
More information about the vtkusers
mailing list