Extends QVTK_RenderWindowInteractor functionality. More...
#include <SVTK_RenderWindowInteractor.h>

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. More... | |
| SVTK_Renderer * | GetRenderer () |
| To get corresponding SVTK_Renderer instance. More... | |
| vtkRenderer * | getRenderer () |
| To get corresponding SVTK_Renderer device (just to simplify collobaration with SVTK_Renderer) More... | |
| vtkInteractorStyle * | GetInteractorStyle () |
| To get current interactor style. More... | |
| void | PushInteractorStyle (vtkInteractorStyle *theStyle) |
| To change current interactor style by pushing the new one into the container. More... | |
| void | PopInteractorStyle () |
| To restore previous interactor style. More... | |
| SVTK_Selector * | GetSelector () |
| To get corresponding SVTK_Selector. More... | |
| Selection_Mode | SelectionMode () const |
| To get current selection mode (just to simplify collobaration with SVTK_Selector) More... | |
| void | SetSelectionMode (Selection_Mode theMode) |
| To change selection mode (just to simplify collobaration with SVTK_Selector) More... | |
| void | onEmitSelectionChanged () |
| To transform vtkCommand::EndPickEvent to Qt selectionChanged signal. More... | |
Public Member Functions inherited from QVTK_RenderWindowInteractor | |
| QVTK_RenderWindowInteractor (QWidget *theParent, const char *theName) | |
| ~QVTK_RenderWindowInteractor () | |
| virtual void | Initialize (vtkGenericRenderWindowInteractor *theDevice) |
| To initialize by vtkGenericRenderWindowInteractor instance. More... | |
| vtkGenericRenderWindowInteractor * | GetDevice () |
| vtkRenderWindow * | getRenderWindow () |
| virtual void | InvokeEvent (unsigned long theEvent, void *theCallData) |
| Just to simplify usage of its device (vtkGenericRenderWindowInteractor) More... | |
| virtual QPaintEngine * | paintEngine () const |
| Get paint engine for the scene. More... | |
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) |
Protected Member Functions inherited from QVTK_RenderWindowInteractor | |
| 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 | nativeEvent (const QByteArray &, void *, long *) |
| To handle native events (from such devices as SpaceMouse) More... | |
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 |
Protected Attributes inherited from QVTK_RenderWindowInteractor | |
| vtkSmartPointer< vtkRenderWindow > | myRenderWindow |
| vtkSmartPointer < vtkGenericRenderWindowInteractor > | myDevice |
Additional Inherited Members | |
Public Slots inherited from QVTK_RenderWindowInteractor | |
| virtual void | show () |
| Need for initial contents display on Win32. More... | |
| virtual void | polish () |
| To implement final initialization, just before the widget is displayed. More... | |
| virtual void | resize (int w, int h) |
| To adjust widget and vtkRenderWindow size. More... | |
Implements such features as support of selection, run-time interactor style management, one render window per one renderer collaboration and SUIT_ViewWindow events invocation.
|
protected |
|
protected |
| SVTK_RenderWindowInteractor::SVTK_RenderWindowInteractor | ( | QWidget * | theParent, |
| const char * | theName | ||
| ) |
Constructor
References ProcessEvents().
| SVTK_RenderWindowInteractor::~SVTK_RenderWindowInteractor | ( | ) |
Destructor
|
signal |
|
signal |
|
signal |
| vtkInteractorStyle * SVTK_RenderWindowInteractor::GetInteractorStyle | ( | ) |
To get current interactor style
| SVTK_Renderer * SVTK_RenderWindowInteractor::GetRenderer | ( | ) |
To get corresponding SVTK_Renderer instance
| vtkRenderer * SVTK_RenderWindowInteractor::getRenderer | ( | ) |
| SVTK_Selector * SVTK_RenderWindowInteractor::GetSelector | ( | ) |
To get current selector
|
virtual |
To initialize properly the class
References QVTK_RenderWindowInteractor::Initialize().
|
protected |
Changes interactor style
| theStyle | - new interactor style |
|
signal |
|
protectedvirtual |
Custom key press event handler
Reimplemented from QVTK_RenderWindowInteractor.
References GENERATE_SUIT_EVENTS, and QVTK_RenderWindowInteractor::keyPressEvent().
|
signal |
|
protectedvirtual |
Custom key release event handler
Reimplemented from QVTK_RenderWindowInteractor.
References GENERATE_SUIT_EVENTS, and QVTK_RenderWindowInteractor::keyReleaseEvent().
|
signal |
|
signal |
|
signal |
|
protectedvirtual |
Custom mouse double click event handler
Reimplemented from QVTK_RenderWindowInteractor.
References GENERATE_SUIT_EVENTS, QVTK_RenderWindowInteractor::mouseDoubleClickEvent(), and SVTK_InteractorStyle::OnMouseButtonDoubleClick().
|
signal |
|
protectedvirtual |
Custom mouse move event handler
Reimplemented from QVTK_RenderWindowInteractor.
References GENERATE_SUIT_EVENTS, and QVTK_RenderWindowInteractor::mouseMoveEvent().
|
protectedvirtual |
Custom mouse press event handler
Reimplemented from QVTK_RenderWindowInteractor.
References GENERATE_SUIT_EVENTS, and QVTK_RenderWindowInteractor::mousePressEvent().
|
protectedvirtual |
Custom mouse release event handler
Reimplemented from QVTK_RenderWindowInteractor.
References SVTK_InteractorStyle::CurrentState(), Disable, Finished, GENERATE_SUIT_EVENTS, SVTK_InteractorStyle::GetPolygonState(), QVTK_RenderWindowInteractor::mouseReleaseEvent(), SVTK_InteractorStyle::SetPolygonState(), and VTK_INTERACTOR_STYLE_CAMERA_NONE.
| void SVTK_RenderWindowInteractor::onEmitSelectionChanged | ( | ) |
Emits signal selectionChanged()
| void SVTK_RenderWindowInteractor::PopInteractorStyle | ( | ) |
To restore previous interactor style
|
staticprotected |
Main process VTK event method
References onEmitSelectionChanged().
| void SVTK_RenderWindowInteractor::PushInteractorStyle | ( | vtkInteractorStyle * | theStyle | ) |
To change current interactor style by pushing the new one into the container
|
signal |
| Selection_Mode SVTK_RenderWindowInteractor::SelectionMode | ( | ) | const |
|
protected |
Changes renderer
| theRenderer | - new renderer |
| void SVTK_RenderWindowInteractor::SetSelectionMode | ( | Selection_Mode | theMode | ) |
|
protected |
Changes selector
| theSelector | - new selector |
|
protectedvirtual |
Custom mouse wheel event handler
Reimplemented from QVTK_RenderWindowInteractor.
References GENERATE_SUIT_EVENTS, QVTK_RenderWindowInteractor::wheelEvent(), SVTK::ZoomInEvent, and SVTK::ZoomOutEvent.
|
signal |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |