[vtkusers] vtkImageViewer2 and current Mouse Position (MouseMove)

Margarete Herbst margarete.herbst at gmail.com
Tue Jan 13 09:49:58 EST 2009


I reply to myself:
now, I added the MouseMove-observer to the image viewer's render window
interactor instead of the interactor style
(m_ImageViewer->GetInteractorStyle()->GetInteractor()). MouseMove and user
interactions (zooming, panning ...) work both, now.
marge


Margarete Herbst wrote:
> 
> Hello,
> 
> I would like to get the current hovered mouse position in a
> vtkImageViewer2.
> I added an observer for vtkCommand::MouseMoveEvent to the
> vtkImageViewer2-instance's interactor style. Now I can retrieve the
> current mouse-position using a vtkPointPicker connected to
> vtkImageViewer2-instance's ImageActor.
> The problem: interactive windowing/leveling, zooming ... (except zooming
> via mouse wheel) isn't possible anymore. I guess my 'interfering'
> MouseMoveEvent-observer is the problem. But how could I overcome that?!
> Could someone help me, please?
> 
> regards,
> marge
> 
> 

-- 
View this message in context: http://www.nabble.com/vtkImageViewer2-and-current-Mouse-Position-%28MouseMove%29-tp21430668p21437190.html
Sent from the VTK - Users mailing list archive at Nabble.com.




More information about the vtkusers mailing list