[vtkusers] how to add user-defined message processing based on the \Examples\Medical\Cxx\Mecical3.c++

diaoxianfen diaoxianfen at asisz.com
Sun Aug 22 21:38:20 EDT 2004


There are four view port in the render window.I want to add user-defined message to one of them,for exampe add LeftBottonDown Message to the axial image.I want to achieve the aim that when I press the left button of the mouse ,in the according view port will display the coordinates.I use the vtkMFCRenderView to be the base class of my view class.And I add the OnLButtonDown() message as follows.
void CMyView::OnLButtonDown(UINT nFlags, CPoint point) 
{
 // TODO: Add your message handler code here and/or call default
 
 //CView::OnLButtonDown(nFlags, point);

 vtkMFCRenderView::OnLButtonDown(nFlags,point);
}

But the result is not changed.What I get is still the vtkRenderWindowInteractor control style. I don't know what is the reason?Why it doesn't respond my defined message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040823/c3c5a782/attachment.htm>


More information about the vtkusers mailing list