<div dir="ltr">OK, you mean I can get Information from casted interactor object? Can you point out what's member of the interactor that is to indicate which qwidget it belongs to?<div style>Thanks a lot.</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">2013/5/29 David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Tue, May 28, 2013 at 9:38 PM, tao sun <<a href="mailto:colddiesun@gmail.com">colddiesun@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
</div><div class="im">> Yes. I have this so far and further more I want to realize a mouseEvent<br>
> callback in the main class.<br>
<br>
</div>You should be able to SafeDownCast the vtkObject in the callback to<br>
determine which object the event was triggered from:<br>
<div class="im"><br>
void Viewer::mouseMoveCallback(vtkObject * obj, unsigned long, void *<br>
client_data, void *, vtkCommand * command)<br>
</div>{<br>
vtkMyInteractorStyle* callingInteractorStyle =<br>
vtkMyInteractorStyle::SafeDownCast(obj); // Replace<br>
vtkMyInteractorStyle with the type of the object that is producing the<br>
event<br>
}<br>
<span class="HOEnZb"><font color="#888888"><br>
David<br>
</font></span></blockquote></div><br></div>