[vtkusers] How to change window center/level in vtkRenderWindow?

David Doria daviddoria at gmail.com
Tue Oct 12 07:55:11 EDT 2010


2010/10/12 朱映华 <zhuyinghua01 at gmail.com>:
> Thank you,
> I Use vtkinteractorstyleimage class cancel the mouse drag event but how to
> change the w/l when drag mouse?
>

You can subclass vtkInteractorStyleImage and do whatever you want when
the mouse drag ends (the On*ButtonUp() function). There is an example
(not with the image interactor style, but you should be able to see
the idea) here:

http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/MouseEvents

David



More information about the vtkusers mailing list