[vtkusers] How to add vtkRenderWindowInteractor to a native Cocoa window
Clinton Stimpson
clinton at elemtech.com
Sat Oct 25 11:10:10 EDT 2008
Not all of those events go to the interactor. You can look at the
QVTKWidget source to see which ones do, and those would be the same
you'd need to support in your QVTKInteractor. For how to pass them down
to VTK, its best to see how its done in the QVTKWidget source code.
Clint
Elvis Dowson wrote:
> 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
>
>
More information about the vtkusers
mailing list