[vtkusers] How to add vtkRenderWindowInteractor to a native Cocoa window
Elvis Dowson
elvis.dowson at mac.com
Sat Oct 25 07:27:13 EDT 2008
Hi Clint,
I've managed to intercept mouse movements from the
QGraphicsView and pass it onto a QVTKInteractor. Now I need to pass
this information onto the vtkRenderWindow.
Would you happen to have any suggestions or guidelines that I should
keep in mind, in trying to pipe mouse events from a QGraphcisView
window to a vtkRenderWindow instance?
These are the types of events that I am planning to support in the
interactor. Do you think it's the correct set or should I leave some
out? The first 5 seem essential. The others are related to window
focus and keyboard input.
virtual void mouseMoveEvent(QMouseEvent* event);
virtual void mousePressEvent (QMouseEvent* event);
virtual void mouseDoubleClickEvent (QMouseEvent* event);
virtual void mouseReleaseEvent (QMouseEvent* event);
virtual void wheelEvent (QWheelEvent * event);
virtual void leaveEvent (QEvent * event);
virtual void keyPressEvent (QKeyEvent * event);
virtual void keyReleaseEvent (QKeyEvent * event);
virtual void hideEvent (QHideEvent * event);
virtual void inputMethodEvent (QInputMethodEvent * event);
virtual void dragEnterEvent (QDragEnterEvent * event);
virtual void dragLeaveEvent (QDragLeaveEvent * event);
virtual void dragMoveEvent (QDragMoveEvent * event);
virtual void dropEvent (QDropEvent * event);
virtual void enterEvent (QEvent * event);
virtual void closeEvent (QCloseEvent * event);
virtual void contextMenuEvent (QContextMenuEvent * event);
Best regards,
Elvis Dowson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20081025/fb8e64ca/attachment.htm>
More information about the vtkusers
mailing list