Version: 9.12.0
SVTK_RenderWindowInteractor Class Reference

Extends QVTK_RenderWindowInteractor functionality. More...

#include <SVTK_RenderWindowInteractor.h>

Inheritance diagram for SVTK_RenderWindowInteractor:
Inheritance graph

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_RendererGetRenderer ()
 To get corresponding SVTK_Renderer instance. More...
 
vtkRenderer * getRenderer ()
 To get corresponding SVTK_Renderer device (just to simplify collobaration with SVTK_Renderer) More...
 
vtkInteractorStyleGetInteractorStyle ()
 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_SelectorGetSelector ()
 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...
 
vtkGenericRenderWindowInteractorGetDevice ()
 
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< vtkInteractorStylePInteractorStyle
 
typedef std::stack< PInteractorStyleTInteractorStyles
 

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_SelectormySelector
 
vtkSmartPointer< SVTK_RenderermyRenderer
 
TInteractorStyles myInteractorStyles
 
- Protected Attributes inherited from QVTK_RenderWindowInteractor
vtkSmartPointer< vtkRenderWindow > myRenderWindow
 
vtkSmartPointer< vtkGenericRenderWindowInteractormyDevice
 

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...
 

Detailed Description

Extends QVTK_RenderWindowInteractor functionality.

Implements such features as support of selection, run-time interactor style management, one render window per one renderer collaboration and SUIT_ViewWindow events invocation.

Member Typedef Documentation

◆ PInteractorStyle

◆ TInteractorStyles

Constructor & Destructor Documentation

◆ SVTK_RenderWindowInteractor()

SVTK_RenderWindowInteractor::SVTK_RenderWindowInteractor ( QWidget theParent,
const char *  theName 
)

Constructor

References ProcessEvents().

◆ ~SVTK_RenderWindowInteractor()

SVTK_RenderWindowInteractor::~SVTK_RenderWindowInteractor ( )

Destructor

Member Function Documentation

◆ ButtonPressed

void SVTK_RenderWindowInteractor::ButtonPressed ( const QMouseEvent *  event)
signal

◆ ButtonReleased

void SVTK_RenderWindowInteractor::ButtonReleased ( const QMouseEvent *  event)
signal

◆ contextMenuRequested

void SVTK_RenderWindowInteractor::contextMenuRequested ( QContextMenuEvent *  e)
signal

◆ GetInteractorStyle()

vtkInteractorStyle * SVTK_RenderWindowInteractor::GetInteractorStyle ( )

To get current interactor style.

To get current interactor style

◆ GetRenderer()

SVTK_Renderer * SVTK_RenderWindowInteractor::GetRenderer ( )

To get corresponding SVTK_Renderer instance.

To get corresponding SVTK_Renderer instance

◆ getRenderer()

vtkRenderer * SVTK_RenderWindowInteractor::getRenderer ( )

To get corresponding SVTK_Renderer device (just to simplify collobaration with SVTK_Renderer)

To get corresponding SVTK_Renderer device (just to simplify collobaration with SVTK_Renderer)

◆ GetSelector()

SVTK_Selector * SVTK_RenderWindowInteractor::GetSelector ( )

To get corresponding SVTK_Selector.

To get current selector

◆ Initialize()

void SVTK_RenderWindowInteractor::Initialize ( vtkGenericRenderWindowInteractor theDevice,
SVTK_Renderer theRenderer,
SVTK_Selector theSelector 
)
virtual

To initialize properly the class.

To initialize properly the class

References QVTK_RenderWindowInteractor::Initialize().

◆ InitInteractorStyle()

void SVTK_RenderWindowInteractor::InitInteractorStyle ( vtkInteractorStyle theStyle)
protected

Changes interactor style

Parameters
theStyle- new interactor style

◆ KeyPressed

void SVTK_RenderWindowInteractor::KeyPressed ( QKeyEvent *  )
signal

◆ keyPressEvent()

void SVTK_RenderWindowInteractor::keyPressEvent ( QKeyEvent *  event)
protectedvirtual

Custom key press event handler

Reimplemented from QVTK_RenderWindowInteractor.

References GENERATE_SUIT_EVENTS, and QVTK_RenderWindowInteractor::keyPressEvent().

◆ KeyReleased

void SVTK_RenderWindowInteractor::KeyReleased ( QKeyEvent *  )
signal

◆ keyReleaseEvent()

void SVTK_RenderWindowInteractor::keyReleaseEvent ( QKeyEvent *  event)
protectedvirtual

Custom key release event handler

Reimplemented from QVTK_RenderWindowInteractor.

References GENERATE_SUIT_EVENTS, and QVTK_RenderWindowInteractor::keyReleaseEvent().

◆ MouseButtonPressed

void SVTK_RenderWindowInteractor::MouseButtonPressed ( QMouseEvent *  )
signal

◆ MouseButtonReleased

void SVTK_RenderWindowInteractor::MouseButtonReleased ( QMouseEvent *  )
signal

◆ MouseDoubleClicked

void SVTK_RenderWindowInteractor::MouseDoubleClicked ( QMouseEvent *  )
signal

◆ mouseDoubleClickEvent()

void SVTK_RenderWindowInteractor::mouseDoubleClickEvent ( QMouseEvent *  event)
protectedvirtual

◆ MouseMove

void SVTK_RenderWindowInteractor::MouseMove ( QMouseEvent *  )
signal

◆ mouseMoveEvent()

void SVTK_RenderWindowInteractor::mouseMoveEvent ( QMouseEvent *  event)
protectedvirtual

Custom mouse move event handler

Reimplemented from QVTK_RenderWindowInteractor.

References GENERATE_SUIT_EVENTS, and QVTK_RenderWindowInteractor::mouseMoveEvent().

◆ mousePressEvent()

void SVTK_RenderWindowInteractor::mousePressEvent ( QMouseEvent *  event)
protectedvirtual

Custom mouse press event handler

Reimplemented from QVTK_RenderWindowInteractor.

References GENERATE_SUIT_EVENTS, and QVTK_RenderWindowInteractor::mousePressEvent().

◆ mouseReleaseEvent()

void SVTK_RenderWindowInteractor::mouseReleaseEvent ( QMouseEvent *  event)
protectedvirtual

◆ onEmitSelectionChanged()

void SVTK_RenderWindowInteractor::onEmitSelectionChanged ( )

To transform vtkCommand::EndPickEvent to Qt selectionChanged signal.

Emits signal selectionChanged()

◆ PopInteractorStyle()

void SVTK_RenderWindowInteractor::PopInteractorStyle ( )

To restore previous interactor style.

To restore previous interactor style

◆ ProcessEvents()

void SVTK_RenderWindowInteractor::ProcessEvents ( vtkObject theObject,
unsigned long  theEvent,
void *  theClientData,
void *  theCallData 
)
staticprotected

Main process VTK event method

References onEmitSelectionChanged().

◆ PushInteractorStyle()

void SVTK_RenderWindowInteractor::PushInteractorStyle ( vtkInteractorStyle theStyle)

To change current interactor style by pushing the new one into the container.

To change current interactor style by pushing the new one into the container

◆ selectionChanged

void SVTK_RenderWindowInteractor::selectionChanged ( )
signal

◆ SelectionMode()

Selection_Mode SVTK_RenderWindowInteractor::SelectionMode ( ) const

To get current selection mode (just to simplify collobaration with SVTK_Selector)

To get current selection mode (just to simplify collobaration with SVTK_Selector)

◆ SetRenderer()

void SVTK_RenderWindowInteractor::SetRenderer ( SVTK_Renderer theRenderer)
protected

Changes renderer

Parameters
theRenderer- new renderer

◆ SetSelectionMode()

void SVTK_RenderWindowInteractor::SetSelectionMode ( Selection_Mode  theMode)

To change selection mode (just to simplify collobaration with SVTK_Selector)

To change selection mode (just to simplify collobaration with SVTK_Selector)

◆ SetSelector()

void SVTK_RenderWindowInteractor::SetSelector ( SVTK_Selector theSelector)
protected

Changes selector

Parameters
theSelector- new selector

◆ wheelEvent()

void SVTK_RenderWindowInteractor::wheelEvent ( QWheelEvent *  event)
protectedvirtual

◆ WheelMoved

void SVTK_RenderWindowInteractor::WheelMoved ( QWheelEvent *  )
signal

Member Data Documentation

◆ myEventCallbackCommand

vtkSmartPointer<vtkCallbackCommand> SVTK_RenderWindowInteractor::myEventCallbackCommand
protected

◆ myInteractorStyles

TInteractorStyles SVTK_RenderWindowInteractor::myInteractorStyles
protected

◆ myPriority

float SVTK_RenderWindowInteractor::myPriority
protected

◆ myRenderer

vtkSmartPointer<SVTK_Renderer> SVTK_RenderWindowInteractor::myRenderer
protected

◆ mySelector

vtkSmartPointer<SVTK_Selector> SVTK_RenderWindowInteractor::mySelector
protected

The documentation for this class was generated from the following files: