Extends QVTK_RenderWindowInteractor functionality. More...
#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. | |
Signals | |
| void | MouseMove (QMouseEvent *) |
| void | MouseButtonPressed (QMouseEvent *) |
| void | MouseButtonReleased (QMouseEvent *) |
| void | MouseDoubleClicked (QMouseEvent *) |
| void | ButtonPressed (const QMouseEvent *event) |
| void | ButtonReleased (const QMouseEvent *event) |
| void | WheelMoved (QWheelEvent *) |
| void | KeyPressed (QKeyEvent *) |
| void | KeyReleased (QKeyEvent *) |
| void | contextMenuRequested (QContextMenuEvent *e) |
| void | selectionChanged () |
Public Member Functions | |
| SVTK_RenderWindowInteractor (QWidget *theParent, const char *theName) | |
| ~SVTK_RenderWindowInteractor () | |
| virtual void | Initialize (vtkGenericRenderWindowInteractor *theDevice, SVTK_Renderer *theRenderer, SVTK_Selector *theSelector) |
| To initialize properly the class. | |
| SVTK_Renderer * | GetRenderer () |
| To get corresponding SVTK_Renderer instance. | |
| vtkRenderer * | getRenderer () |
| To get corresponding SVTK_Renderer device (just to simplify collobaration with SVTK_Renderer) | |
| vtkInteractorStyle * | GetInteractorStyle () |
| To get current interactor style. | |
| void | PushInteractorStyle (vtkInteractorStyle *theStyle) |
| To change current interactor style by pushing the new one into the container. | |
| void | PopInteractorStyle () |
| To restore previous interactor style. | |
| SVTK_Selector * | GetSelector () |
| To get corresponding SVTK_Selector. | |
| Selection_Mode | SelectionMode () const |
| To get current selection mode (just to simplify collobaration with SVTK_Selector) | |
| void | SetSelectionMode (Selection_Mode theMode) |
| To change selection mode (just to simplify collobaration with SVTK_Selector) | |
| void | onEmitSelectionChanged () |
| To transform vtkCommand.EndPickEvent to Qt selectionChanged signal. | |
| 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 Types | |
| typedef vtkSmartPointer < vtkInteractorStyle > | PInteractorStyle |
| typedef std::stack < PInteractorStyle > | TInteractorStyles |
Protected Member Functions | |
| 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 *) |
| void | SetRenderer (SVTK_Renderer *theRenderer) |
| void | SetSelector (SVTK_Selector *theSelector) |
| void | InitInteractorStyle (vtkInteractorStyle *theStyle) |
| virtual void | paintEvent (QPaintEvent *) |
| virtual void | resizeEvent (QResizeEvent *) |
| 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) | |
Static Protected Member Functions | |
| static void | ProcessEvents (vtkObject *theObject, unsigned long theEvent, void *theClientData, void *theCallData) |
Protected Attributes | |
| vtkSmartPointer < vtkCallbackCommand > | myEventCallbackCommand |
| float | myPriority |
| vtkSmartPointer< SVTK_Selector > | mySelector |
| vtkSmartPointer< SVTK_Renderer > | myRenderer |
| TInteractorStyles | myInteractorStyles |
| vtkSmartPointer< vtkRenderWindow > | myRenderWindow |
| vtkSmartPointer < vtkGenericRenderWindowInteractor > | myDevice |
Implements such features as support of selection, run-time interactor style management, one render window per one renderer collaboration and SUIT_ViewWindow events invocation.
typedef vtkSmartPointer<vtkInteractorStyle> SVTK_RenderWindowInteractor.PInteractorStyle [protected] |
typedef std::stack<PInteractorStyle> SVTK_RenderWindowInteractor.TInteractorStyles [protected] |
| SVTK_RenderWindowInteractor::SVTK_RenderWindowInteractor | ( | QWidget * | theParent, |
| const char * | theName | ||
| ) |
Constructor
References ProcessEvents().
| SVTK_RenderWindowInteractor::~SVTK_RenderWindowInteractor | ( | ) |
Destructor
| void SVTK_RenderWindowInteractor::Initialize | ( | vtkGenericRenderWindowInteractor * | theDevice, |
| SVTK_Renderer * | theRenderer, | ||
| SVTK_Selector * | theSelector | ||
| ) | [virtual] |
To initialize properly the class
References QVTK_RenderWindowInteractor.Initialize().
| SVTK_Renderer * SVTK_RenderWindowInteractor::GetRenderer | ( | ) |
To get corresponding SVTK_Renderer instance
| vtkRenderer * SVTK_RenderWindowInteractor::getRenderer | ( | ) |
| vtkInteractorStyle * SVTK_RenderWindowInteractor::GetInteractorStyle | ( | ) |
To get current interactor style
| void SVTK_RenderWindowInteractor::PushInteractorStyle | ( | vtkInteractorStyle * | theStyle | ) |
To change current interactor style by pushing the new one into the container
| void SVTK_RenderWindowInteractor::PopInteractorStyle | ( | ) |
To restore previous interactor style
| SVTK_Selector * SVTK_RenderWindowInteractor::GetSelector | ( | ) |
To get current selector
| Selection_Mode SVTK_RenderWindowInteractor::SelectionMode | ( | ) | const |
| void SVTK_RenderWindowInteractor::SetSelectionMode | ( | Selection_Mode | theMode | ) |
| void SVTK_RenderWindowInteractor::onEmitSelectionChanged | ( | ) |
Emits signal selectionChanged()
| void SVTK_RenderWindowInteractor.MouseMove | ( | QMouseEvent * | ) | [signal] |
| void SVTK_RenderWindowInteractor.MouseButtonPressed | ( | QMouseEvent * | ) | [signal] |
| void SVTK_RenderWindowInteractor.MouseButtonReleased | ( | QMouseEvent * | ) | [signal] |
| void SVTK_RenderWindowInteractor.MouseDoubleClicked | ( | QMouseEvent * | ) | [signal] |
| void SVTK_RenderWindowInteractor.ButtonPressed | ( | const QMouseEvent * | event | ) | [signal] |
| void SVTK_RenderWindowInteractor.ButtonReleased | ( | const QMouseEvent * | event | ) | [signal] |
| void SVTK_RenderWindowInteractor.WheelMoved | ( | QWheelEvent * | ) | [signal] |
| void SVTK_RenderWindowInteractor.KeyPressed | ( | QKeyEvent * | ) | [signal] |
| void SVTK_RenderWindowInteractor.KeyReleased | ( | QKeyEvent * | ) | [signal] |
| void SVTK_RenderWindowInteractor.contextMenuRequested | ( | QContextMenuEvent * | e | ) | [signal] |
| void SVTK_RenderWindowInteractor.selectionChanged | ( | ) | [signal] |
| void SVTK_RenderWindowInteractor::mouseMoveEvent | ( | QMouseEvent * | event | ) | [protected, virtual] |
Custom mouse move event handler
Reimplemented from QVTK_RenderWindowInteractor.
References GENERATE_SUIT_EVENTS, and QVTK_RenderWindowInteractor.mouseMoveEvent().
| void SVTK_RenderWindowInteractor::mousePressEvent | ( | QMouseEvent * | event | ) | [protected, virtual] |
Custom mouse press event handler
Reimplemented from QVTK_RenderWindowInteractor.
References GENERATE_SUIT_EVENTS, and QVTK_RenderWindowInteractor.mousePressEvent().
| void SVTK_RenderWindowInteractor::mouseReleaseEvent | ( | QMouseEvent * | event | ) | [protected, virtual] |
Custom mouse release event handler
Reimplemented from QVTK_RenderWindowInteractor.
References SVTK_InteractorStyle.CurrentState(), GENERATE_SUIT_EVENTS, QVTK_RenderWindowInteractor.mouseReleaseEvent(), and VTK_INTERACTOR_STYLE_CAMERA_NONE.
| void SVTK_RenderWindowInteractor::mouseDoubleClickEvent | ( | QMouseEvent * | event | ) | [protected, virtual] |
Custom mouse double click event handler
Reimplemented from QVTK_RenderWindowInteractor.
References GENERATE_SUIT_EVENTS, and QVTK_RenderWindowInteractor.mouseDoubleClickEvent().
| void SVTK_RenderWindowInteractor::wheelEvent | ( | QWheelEvent * | event | ) | [protected, virtual] |
Custom mouse wheel event handler
Reimplemented from QVTK_RenderWindowInteractor.
References GENERATE_SUIT_EVENTS, QVTK_RenderWindowInteractor.wheelEvent(), SVTK.ZoomInEvent, and SVTK.ZoomOutEvent.
| void SVTK_RenderWindowInteractor::keyPressEvent | ( | QKeyEvent * | event | ) | [protected, virtual] |
Custom key press event handler
Reimplemented from QVTK_RenderWindowInteractor.
References GENERATE_SUIT_EVENTS, and QVTK_RenderWindowInteractor.keyPressEvent().
| void SVTK_RenderWindowInteractor::keyReleaseEvent | ( | QKeyEvent * | event | ) | [protected, virtual] |
Custom key release event handler
Reimplemented from QVTK_RenderWindowInteractor.
References GENERATE_SUIT_EVENTS, and QVTK_RenderWindowInteractor.keyReleaseEvent().
| void SVTK_RenderWindowInteractor::SetRenderer | ( | SVTK_Renderer * | theRenderer | ) | [protected] |
Changes renderer
| theRenderer | - new renderer |
| void SVTK_RenderWindowInteractor::SetSelector | ( | SVTK_Selector * | theSelector | ) | [protected] |
Changes selector
| theSelector | - new selector |
| void SVTK_RenderWindowInteractor::InitInteractorStyle | ( | vtkInteractorStyle * | theStyle | ) | [protected] |
Changes interactor style
| theStyle | - new interactor style |
| static void SVTK_RenderWindowInteractor.ProcessEvents | ( | vtkObject * | theObject, |
| unsigned long | theEvent, | ||
| void * | theClientData, | ||
| void * | theCallData | ||
| ) | [static, protected] |
| void QVTK_RenderWindowInteractor::Initialize | ( | vtkGenericRenderWindowInteractor * | theDevice | ) | [virtual, inherited] |
To initialize by vtkGenericRenderWindowInteractor instance
| vtkGenericRenderWindowInteractor * QVTK_RenderWindowInteractor::GetDevice | ( | ) | [inherited] |
| vtkRenderWindow * QVTK_RenderWindowInteractor::getRenderWindow | ( | ) | [inherited] |
| void QVTK_RenderWindowInteractor::InvokeEvent | ( | unsigned long | theEvent, |
| void * | theCallData | ||
| ) | [virtual, inherited] |
Just to simplify usage of its device (vtkGenericRenderWindowInteractor)
| QPaintEngine * QVTK_RenderWindowInteractor::paintEngine | ( | ) | const [virtual, inherited] |
Get paint engine for the scene
| void QVTK_RenderWindowInteractor::show | ( | ) | [virtual, slot, inherited] |
Need for initial contents display on Win32
| void QVTK_RenderWindowInteractor::polish | ( | ) | [virtual, slot, inherited] |
To implement final initialization, just before the widget is displayed
| void QVTK_RenderWindowInteractor::resize | ( | int | w, |
| int | h | ||
| ) | [virtual, slot, inherited] |
To adjust widget and vtkRenderWindow size
| void QVTK_RenderWindowInteractor::paintEvent | ( | QPaintEvent * | theEvent | ) | [protected, virtual, inherited] |
Custom paint event handler
| void QVTK_RenderWindowInteractor::resizeEvent | ( | QResizeEvent * | theEvent | ) | [protected, virtual, inherited] |
Custom resize event handler
| void QVTK_RenderWindowInteractor::enterEvent | ( | QEvent * | event | ) | [protected, virtual, inherited] |
Custom enter event handler
References FOCUS_UNDER_MOUSE.
| void QVTK_RenderWindowInteractor::leaveEvent | ( | QEvent * | ) | [protected, virtual, inherited] |
Custom leave event handler
| void QVTK_RenderWindowInteractor::contextMenuEvent | ( | QContextMenuEvent * | event | ) | [protected, virtual, inherited] |
Custom context menu event handler
| void QVTK_RenderWindowInteractor::focusInEvent | ( | QFocusEvent * | event | ) | [protected, virtual, inherited] |
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, inherited] |
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, inherited] |
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<vtkCallbackCommand> SVTK_RenderWindowInteractor.myEventCallbackCommand [protected] |
float SVTK_RenderWindowInteractor.myPriority [protected] |
vtkSmartPointer<SVTK_Selector> SVTK_RenderWindowInteractor.mySelector [protected] |
vtkSmartPointer<SVTK_Renderer> SVTK_RenderWindowInteractor.myRenderer [protected] |
vtkSmartPointer<vtkRenderWindow> QVTK_RenderWindowInteractor.myRenderWindow [protected, inherited] |
vtkSmartPointer<vtkGenericRenderWindowInteractor> QVTK_RenderWindowInteractor.myDevice [protected, inherited] |