[vtkusers] vtkInteractorStyle - test if onMouseMove event

Alex Malyushytskyy alexmalvtk at gmail.com
Wed Nov 7 19:12:53 EST 2012


I am not sure I understood the problem, but

vtkInteractorStyle has  virtual void OnMouseMove() {};
which you can override

Alex


On Sun, Nov 4, 2012 at 7:23 AM, Sergio Aguirre <sergio.aguirre at gmail.com> wrote:
> Hi everyone
>
> I am trying to derive a specific vtkInteractorStyle for my app.
>
> A requirements that I need to meet is to sample some tracked tools in order
> to generate mouse events, otherwise they do not get generated.
>
> In order to do that, I've set up a recurring timer of the interactor and
> sample the tracked tools at the TimerEvent.
>
> My preference would be to when servicing the TimerEvent command id like to
> test if any MouseMove events have been generated. If YES, they I would end
> the TimerEvent service routine and allow the MouseMove service routine to
> go. If NO then I would do some simple processing and call render.
>
> Is there a way to test if there have been any MouseMove events generated?
>
> Thank you,
>
> Sergio
>
> _______________________________________________
> 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