I am attemmpting to get the coordinates of a mouse<BR>click on a vtkImagePlaneWidget. 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. However, this seems to have no<BR>effect. My code basically looks like:<BR><BR>m_ImagePlane2D->AddObserver(vtkCommand::LeftButtonPressEvent,m_MouseCallbackHandler);<BR>m_ImagePlane2D->EnabledOn();<BR>m_ImagePlane2D->InteractionOn();<BR>m_ImagePlane2D->On();<BR><BR> 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> -Aaron
<DIV></DIV><p>
                <hr size=1><font face=arial size=-1>Do you Yahoo!?<br>Friends. Fun. <a href="http://messenger.yahoo.com/">Try the all-new Yahoo! Messenger</a>