I am attemmpting to get the coordinates of a mouse<BR>click on a vtkImagePlaneWidget.&nbsp; I believe (please<BR>correct me if i am wrong, I am not that experienced<BR>with vtk) that the best way to do this is to write a<BR>callback handler (deriving from vtkCommand), which i<BR>did, and to then add it as an observer to the<BR>vtkImagePlaneWidget.&nbsp; However, this seems to have no<BR>effect.&nbsp; My code basically looks like:<BR><BR>m_ImagePlane2D-&gt;AddObserver(vtkCommand::LeftButtonPressEvent,m_MouseCallbackHandler);<BR>m_ImagePlane2D-&gt;EnabledOn();<BR>m_ImagePlane2D-&gt;InteractionOn();<BR>m_ImagePlane2D-&gt;On();<BR><BR>&nbsp; Can anyone give me some help?<BR><BR>(Note: I have tested the callback function by adding<BR>an observer using it to the window interactor...it<BR>works fine, but naturally that only gives me mouse<BR>clicks outside of the image plane, not within)<BR><BR>&nbsp;&nbsp;&nbsp; -Aaron
<DIV></DIV><p>__________________________________________________<br>Do You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com