[vtkusers] SphereWidget InteractionEvent not triggered?

Alex Malyushytskyy alexmalvtk at gmail.com
Wed Mar 6 19:16:54 EST 2013


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

On Wed, Mar 6, 2013 at 7:01 AM, David Doria <daviddoria at gmail.com> wrote:
> In this example:
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Widgets/SphereWidgetEvents
>
> I am trying to handle StartInteractionEvent: and InteractionEvent as
> recommended by the documentation:
> http://www.vtk.org/doc/nightly/html/classvtkSphereWidget.html#details
>
> However, these events do not seem to be triggered ("InteractionEvent!" is
> not displayed when I move the mouse). LeftButtonPressEvent works as expected
> (the output "LeftButtonPressEvent!" is displayed when I click the left
> button).
>
> Does anyone know why these events events are not behaving as I'd expect?
>
> Thanks,
>
> David
>
> _______________________________________________
> 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 VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



More information about the vtkusers mailing list