[vtkusers] MFC & Interactor

Gopalakrishnan, Gowri Gowri.Gopalakrishnan at inteq.com
Wed Jul 17 11:33:24 EDT 2002


I am attaching here a c++ file from wxwindows. This does exactly what you
want



-----Original Message-----
From: Ted Christiansen [mailto:ted at caept.com] 
Sent: 17 July 2002 16:10
To: vtkusers at public.kitware.com
Subject: [vtkusers] MFC & Interactor

Hello,

The MFC sample program overrides WindowProc and passes parameters to the
interactor.  Why didnt they use the built-in mouse events:
OnLButtonDown, OnLButtonUp, OnMouseMove like this:

void CVtksampleView::OnLButtonDown(UINT nFlags, CPoint point)
{
 Interactor->OnLButtonDown(this->m_hWnd, nFlags, point.x, point.y);
 vtkMFCRenderView::OnLButtonDown(nFlags, point);
}

When I use these then the interaction doesnt work.  Calling the
interactor style doesnt work either.

Unfortunately I cant get the program to compile using the static vtk
libraries I created because of multiply defined symbol errors and thus
cannot step into the vtk source to see what is wrong.

Has anyone developed an MFC application that uses these events
OnLButtonDown, OnLButtonUp, OnMouseMove instead of the WindowProc?

Ted

_______________________________________________
This is the private VTK discussion list. 
Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers

-------------- next part --------------
A non-text attachment was scrubbed...
Name: wxVTKWindow.cpp
Type: application/octet-stream
Size: 7491 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20020717/682661d5/attachment.obj>


More information about the vtkusers mailing list