[vtkusers] Adding a callback to a vtkImagePlaneWidget

Thomas Deschamps tdeschamps at lbl.gov
Tue Dec 9 13:33:47 EST 2003


Dear vtkUsers

I am trying to add a callback to the lef button of my mouse when 
clicking on a vtkImagePlaneWidget.
This callback must check the position of the cursor, using 
vtkImagePlaneWidget::GetCursorData, but I am the following problem:

if the priority of the event is bigger than the one that puts the widget 
in vtkImagePlaneWidget::Cursoring status, then the coordinates of the 
cursor are not updated and I cannot check them out because 
vtkImagePlaneWidget::GetCursorData returns 0.

If the priority of the event is lower, then the callback is not called 
because the widget eventCallbackCommand has its AbortFlag set to 1, 
which disable to call any further callbacks after the cursoring event.

So, what should I do?

Thanks

Thomas




More information about the vtkusers mailing list