<div dir="ltr">You have to subclass the interactor style<br><br>Have a look at <a href="http://www.cmake.org/Wiki/VTK/Examples/Cxx/Interaction/MouseEvents">http://www.cmake.org/Wiki/VTK/Examples/Cxx/Interaction/MouseEvents</a><br>
<br>Jothy<br><br><div class="gmail_quote">On Tue, Oct 19, 2010 at 4:19 PM, Leonardo M. Ramé <span dir="ltr"><<a href="mailto:l.rame@griensu.com">l.rame@griensu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi, I'm creating an image viewer based on VTKImageViewer2, and I want to<br>
create a Toolbox where the user picks an option, like "circle" or "box",<br>
then drag that to the image to show it.<br>
<br>
My problem is, whenever the user drags anything to the viewer, it does<br>
Window/Level. How can I disable WindowLevel?<br>
<br>
--<br>
Leonardo M. Ramé<br>
<a href="http://leonardorame.blogspot.com" target="_blank">http://leonardorame.blogspot.com</a><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div>