#include <SVTK_RenderWindowInteractor.h>

Public Slots | |
| virtual void | show () |
| Need for initial contents display on Win32. | |
| virtual void | polish () |
| To implement final initialization, just before the widget is displayed. | |
| virtual void | resize (int w, int h) |
| To adjust widget and vtkRenderWindow size. | |
Public Member Functions | |
| QVTK_RenderWindowInteractor (QWidget *theParent, const char *theName) | |
| ~QVTK_RenderWindowInteractor () | |
| virtual void | Initialize (vtkGenericRenderWindowInteractor *theDevice) |
| To initialize by vtkGenericRenderWindowInteractor instance. | |
| vtkGenericRenderWindowInteractor * | GetDevice () |
| vtkRenderWindow * | getRenderWindow () |
| virtual void | InvokeEvent (unsigned long theEvent, void *theCallData) |
| Just to simplify usage of its device (vtkGenericRenderWindowInteractor) | |
| virtual QPaintEngine * | paintEngine () const |
| Get paint engine for the scene. | |
Protected Member Functions | |
| virtual void | paintEvent (QPaintEvent *) |
| virtual void | resizeEvent (QResizeEvent *) |
| virtual void | mouseMoveEvent (QMouseEvent *) |
| virtual void | mousePressEvent (QMouseEvent *) |
| virtual void | mouseReleaseEvent (QMouseEvent *) |
| virtual void | mouseDoubleClickEvent (QMouseEvent *) |
| virtual void | wheelEvent (QWheelEvent *) |
| virtual void | keyPressEvent (QKeyEvent *) |
| virtual void | keyReleaseEvent (QKeyEvent *) |
| virtual void | enterEvent (QEvent *) |
| virtual void | leaveEvent (QEvent *) |
| virtual void | contextMenuEvent (QContextMenuEvent *e) |
| virtual void | focusInEvent (QFocusEvent *) |
| virtual void | focusOutEvent (QFocusEvent *) |
| virtual bool | x11Event (XEvent *e) |
| To handle native events (from such devices as SpaceMouse) | |
Protected Attributes | |
| vtkSmartPointer< vtkRenderWindow > | myRenderWindow |
| vtkSmartPointer < vtkGenericRenderWindowInteractor > | myDevice |
Implements Qt based vtkRenderWindowInteractor. The class inherits QWidget class in order to be possible process Qt events. It invokes corresponding VTK events through usage of its device - a vtkGenericRenderWindowInteractor. Also, it creates, initialize and holds vtkRenderWindow instance.
| QVTK_RenderWindowInteractor::QVTK_RenderWindowInteractor | ( | QWidget * | theParent, |
| const char * | theName | ||
| ) |
Constructor
| QVTK_RenderWindowInteractor::~QVTK_RenderWindowInteractor | ( | ) |
Destructor
References SVTK_SpaceMouse.close(), SVTK_SpaceMouse.getInstance(), and SVTK_SpaceMouse.isSpaceMouseOn().
| void QVTK_RenderWindowInteractor::Initialize | ( | vtkGenericRenderWindowInteractor * | theDevice | ) | [virtual] |
To initialize by vtkGenericRenderWindowInteractor instance
| vtkGenericRenderWindowInteractor * QVTK_RenderWindowInteractor::GetDevice | ( | ) |
| vtkRenderWindow * QVTK_RenderWindowInteractor::getRenderWindow | ( | ) |
| void QVTK_RenderWindowInteractor::InvokeEvent | ( | unsigned long | theEvent, |
| void * | theCallData | ||
| ) | [virtual] |
Just to simplify usage of its device (vtkGenericRenderWindowInteractor)
| QPaintEngine * QVTK_RenderWindowInteractor::paintEngine | ( | ) | const [virtual] |
Get paint engine for the scene
| void QVTK_RenderWindowInteractor::show | ( | ) | [virtual, slot] |
Need for initial contents display on Win32
| void QVTK_RenderWindowInteractor::polish | ( | ) | [virtual, slot] |
To implement final initialization, just before the widget is displayed
| void QVTK_RenderWindowInteractor::resize | ( | int | w, |
| int | h | ||
| ) | [virtual, slot] |
To adjust widget and vtkRenderWindow size
| void QVTK_RenderWindowInteractor::paintEvent | ( | QPaintEvent * | theEvent | ) | [protected, virtual] |
Custom paint event handler
| void QVTK_RenderWindowInteractor::resizeEvent | ( | QResizeEvent * | theEvent | ) | [protected, virtual] |
Custom resize event handler
| void QVTK_RenderWindowInteractor::mouseMoveEvent | ( | QMouseEvent * | event | ) | [protected, virtual] |
Custom mouse move event handler
Reimplemented in SVTK_RenderWindowInteractor.
| void QVTK_RenderWindowInteractor::mousePressEvent | ( | QMouseEvent * | event | ) | [protected, virtual] |
Custom mouse press event handler
Reimplemented in SVTK_RenderWindowInteractor.
| void QVTK_RenderWindowInteractor::mouseReleaseEvent | ( | QMouseEvent * | event | ) | [protected, virtual] |
Custom mouse release event handler
Reimplemented in SVTK_RenderWindowInteractor.
| void QVTK_RenderWindowInteractor::mouseDoubleClickEvent | ( | QMouseEvent * | event | ) | [protected, virtual] |
Custom mouse double click event handler
Reimplemented in SVTK_RenderWindowInteractor.
| void QVTK_RenderWindowInteractor::wheelEvent | ( | QWheelEvent * | event | ) | [protected, virtual] |
Custom mouse wheel event handler
Reimplemented in SVTK_RenderWindowInteractor.
| void QVTK_RenderWindowInteractor::keyPressEvent | ( | QKeyEvent * | event | ) | [protected, virtual] |
Custom key press event handler
Reimplemented in SVTK_RenderWindowInteractor.
| void QVTK_RenderWindowInteractor::keyReleaseEvent | ( | QKeyEvent * | event | ) | [protected, virtual] |
Custom key release event handler
Reimplemented in SVTK_RenderWindowInteractor.
| void QVTK_RenderWindowInteractor::enterEvent | ( | QEvent * | event | ) | [protected, virtual] |
Custom enter event handler
References FOCUS_UNDER_MOUSE.
| void QVTK_RenderWindowInteractor::leaveEvent | ( | QEvent * | ) | [protected, virtual] |
Custom leave event handler
| void QVTK_RenderWindowInteractor::contextMenuEvent | ( | QContextMenuEvent * | event | ) | [protected, virtual] |
Custom context menu event handler
| void QVTK_RenderWindowInteractor::focusInEvent | ( | QFocusEvent * | event | ) | [protected, virtual] |
Reimplemented from QWidget in order to set window - receiver of space mouse events.
References SVTK_SpaceMouse.getInstance(), SVTK_SpaceMouse.initialize(), SVTK_SpaceMouse.isSpaceMouseOn(), and SVTK_SpaceMouse.setWindow().
| void QVTK_RenderWindowInteractor::focusOutEvent | ( | QFocusEvent * | event | ) | [protected, virtual] |
Reimplemented from QWidget in order to set window - receiver of space mouse events.
References SVTK_SpaceMouse.getInstance(), SVTK_SpaceMouse.isSpaceMouseOn(), and SVTK_SpaceMouse.setWindow().
| bool QVTK_RenderWindowInteractor::x11Event | ( | XEvent * | xEvent | ) | [protected, virtual] |
To handle native X11 events (from such devices as SpaceMouse)
References SVTK_SpaceMouse.MoveEvent.button, SVTK_SpaceMouse.MoveEvent.data, SVTK_SpaceMouse.getInstance(), SVTK_SpaceMouse.SpaceButtonPress, SVTK_SpaceMouse.SpaceButtonRelease, SVTK.SpaceMouseButtonEvent, SVTK_SpaceMouse.SpaceMouseMove, and SVTK.SpaceMouseMoveEvent.
vtkSmartPointer<vtkRenderWindow> QVTK_RenderWindowInteractor.myRenderWindow [protected] |
vtkSmartPointer<vtkGenericRenderWindowInteractor> QVTK_RenderWindowInteractor.myDevice [protected] |