<DIV>I looked through the code, but I don't understand how the picker can replace a callback function.&nbsp; I need some specific things to happen each time a point in the plane is clicked, and I don't see any event functionality in the picker, just record functionality...am i wrong?</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp; -Aaron<BR><BR><B><I>Xianjin Yang &lt;Yang@AGIUSA.COM&gt;</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">
<META content="MS Exchange Server version 5.5.2653.12" name=Generator>
<P><FONT size=2>You do not need any callback command. Instead, you should</FONT> </P>
<P><FONT size=2>&nbsp;&nbsp;&nbsp; planeWidgetX-&gt;SetInteractor(iren);</FONT> <BR><FONT size=2>&nbsp;&nbsp;&nbsp; planeWidgetX-&gt;SetKeyPressActivationValue('x');</FONT> <BR><FONT size=2>&nbsp;&nbsp;&nbsp; planeWidgetX-&gt;SetPicker(picker);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // vtkCellPicker</FONT> </P>
<P><FONT size=2>Check the complete C++ in this example:</FONT> <BR><FONT size=2>\VTK\Hybrid\Testing\Cxx\ImagePlaneWidget.cxx</FONT> </P><BR>
<P><FONT size=2>Yang</FONT> </P>
<P><FONT size=2>-----Original Message-----</FONT> <BR><FONT size=2>From: Aaron Cois [<A href="mailto:aaron_vtk@yahoo.com">mailto:aaron_vtk@yahoo.com</A>] </FONT><BR><FONT size=2>Sent: Tuesday, May 25, 2004 11:04 AM</FONT> <BR><FONT size=2>To: vtkusers@vtk.org</FONT> <BR><FONT size=2>Subject: [vtkusers] mouse interaction with vtkImagePlaneWidget</FONT> </P><BR>
<P><FONT size=2>I am attemmpting to get the coordinates of a mouse</FONT> <BR><FONT size=2>click on a vtkImagePlaneWidget.&nbsp; I believe (please</FONT> <BR><FONT size=2>correct me if i am wrong, I am not that experienced</FONT> <BR><FONT size=2>with vtk) that the best way to do this is to write a</FONT> <BR><FONT size=2>callback handler (deriving from vtkCommand), which i</FONT> <BR><FONT size=2>did, and to then add it as an observer to the</FONT> <BR><FONT size=2>vtkImagePlaneWidget.&nbsp; However, this seems to have no</FONT> <BR><FONT size=2>effect.&nbsp; My code basically looks like:</FONT> </P>
<P><FONT size=2>m_ImagePlane2D-&gt;AddObserver(vtkCommand::LeftButtonPressEvent,m_MouseCallbackHandler);</FONT> <BR><FONT size=2>m_ImagePlane2D-&gt;EnabledOn();</FONT> <BR><FONT size=2>m_ImagePlane2D-&gt;InteractionOn();</FONT> <BR><FONT size=2>m_ImagePlane2D-&gt;On();</FONT> </P>
<P><FONT size=2>&nbsp; Can anyone give me some help?</FONT> </P>
<P><FONT size=2>(Note: I have tested the callback function by adding</FONT> <BR><FONT size=2>an observer using it to the window interactor...it</FONT> <BR><FONT size=2>works fine, but naturally that only gives me mouse</FONT> <BR><FONT size=2>clicks outside of the image plane, not within)</FONT> </P>
<P><FONT size=2>&nbsp;&nbsp;&nbsp; -Aaron </FONT><BR><FONT size=2>__________________________________________________</FONT> <BR><FONT size=2>Do You Yahoo!?</FONT> <BR><FONT size=2>Tired of spam? Yahoo! Mail has the best spam protection around </FONT><BR><FONT size=2><A href="http://mail.yahoo.com/" target=_blank>http://mail.yahoo.com</A> </FONT></P></BLOCKQUOTE><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>