[vtkusers] SphereWidget InteractionEvent not triggered?

David Doria daviddoria at gmail.com
Thu Mar 7 09:14:06 EST 2013


On Wed, Mar 6, 2013 at 7:16 PM, Alex Malyushytskyy <alexmalvtk at gmail.com> wrote:
> Call
>  vtkSphereWidget::ProcessEvents( object,  event, clientdata, calldata);
>
> at the end of MySphereWidget::ProcessEvents . You will probably need
> also probably  remove vtkNotUsed macro if you do it exactly as I wrote
> above.
>
> What happens?
> As far as I understand your widget gets mouse move event and depending
> on previous widget state process it.
> During such processing new notification might be generated, but you do
> not do any processing on mouse move,
> so who is going to create them?
>
> So you either process MouseMoveEvent yourself and create such events
> yourself or let vtkSphereWidget do it the way it does.
>
> Hope this helps,
>    Alex

Alex,

I don't think I follow. If I call vtkSphereWidget::ProcessEvents from
MySphereWidget::ProcessEvents, that doesn't seem like it will allow me
to handle the events any differently in MySphereWidget::ProcessEvents?
I tried what yo suggested anyway, and it still does not output
"InteractionEvent" or "StartInteractionEvent". Would you take a look
at the updated version?

http://www.vtk.org/Wiki/VTK/Examples/Cxx/Widgets/SphereWidgetEvents

David



More information about the vtkusers mailing list