[vtkusers] VtkImageViewer2 disabling window level

Jothy jothybasu at gmail.com
Tue Oct 19 11:22:43 EDT 2010


You have to subclass the interactor style

Have a look at
http://www.cmake.org/Wiki/VTK/Examples/Cxx/Interaction/MouseEvents

Jothy

On Tue, Oct 19, 2010 at 4:19 PM, Leonardo M. Ramé <l.rame at griensu.com>wrote:

> Hi, I'm creating an image viewer based on VTKImageViewer2, and I want to
> create a Toolbox where the user picks an option, like "circle" or "box",
> then drag that to the image to show it.
>
> My problem is, whenever the user drags anything to the viewer, it does
> Window/Level. How can I disable WindowLevel?
>
> --
> Leonardo M. Ramé
> http://leonardorame.blogspot.com
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101019/a84018d9/attachment.htm>


More information about the vtkusers mailing list