Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
< 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_SelectormySelector
 
vtkSmartPointer< SVTK_RenderermyRenderer
 
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...
 

Detailed Description

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

Constructor & Destructor Documentation

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

Constructor

References ProcessEvents().

SVTK_RenderWindowInteractor::~SVTK_RenderWindowInteractor ( )

Destructor

Member Function Documentation

void SVTK_RenderWindowInteractor::ButtonPressed ( const QMouseEvent *  event)
signal
void SVTK_RenderWindowInteractor::ButtonReleased ( const QMouseEvent *  event)
signal
void SVTK_RenderWindowInteractor::contextMenuRequested ( QContextMenuEvent *  e)
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

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

To initialize properly the class

References QVTK_RenderWindowInteractor::Initialize().

void SVTK_RenderWindowInteractor::InitInteractorStyle ( vtkInteractorStyle theStyle)
protected

Changes interactor style

Parameters
theStyle- new interactor style
void SVTK_RenderWindowInteractor::KeyPressed ( QKeyEvent *  )
signal
void SVTK_RenderWindowInteractor::keyPressEvent ( QKeyEvent *  event)
protectedvirtual

Custom key press event handler

Reimplemented from QVTK_RenderWindowInteractor.

References GENERATE_SUIT_EVENTS, and QVTK_RenderWindowInteractor::keyPressEvent().

void SVTK_RenderWindowInteractor::KeyReleased ( QKeyEvent *  )
signal
void SVTK_RenderWindowInteractor::keyReleaseEvent ( QKeyEvent *  event)
protectedvirtual

Custom key release event handler

Reimplemented from QVTK_RenderWindowInteractor.

References GENERATE_SUIT_EVENTS, and QVTK_RenderWindowInteractor::keyReleaseEvent().

void SVTK_RenderWindowInteractor::MouseButtonPressed ( QMouseEvent *  )
signal
void SVTK_RenderWindowInteractor::MouseButtonReleased ( QMouseEvent *  )
signal
void SVTK_RenderWindowInteractor::MouseDoubleClicked ( QMouseEvent *  )
signal
void SVTK_RenderWindowInteractor::mouseDoubleClickEvent ( QMouseEvent *  event)
protectedvirtual
void SVTK_RenderWindowInteractor::MouseMove ( QMouseEvent *  )
signal
void SVTK_RenderWindowInteractor::mouseMoveEvent ( QMouseEvent *  event)
protectedvirtual

Custom mouse move event handler

Reimplemented from QVTK_RenderWindowInteractor.

References GENERATE_SUIT_EVENTS, and QVTK_RenderWindowInteractor::mouseMoveEvent().

void SVTK_RenderWindowInteractor::mousePressEvent ( QMouseEvent *  event)
protectedvirtual

Custom mouse press event handler

Reimplemented from QVTK_RenderWindowInteractor.

References GENERATE_SUIT_EVENTS, and QVTK_RenderWindowInteractor::mousePressEvent().

void SVTK_RenderWindowInteractor::mouseReleaseEvent ( QMouseEvent *  event)
protectedvirtual
void SVTK_RenderWindowInteractor::onEmitSelectionChanged ( )

Emits signal selectionChanged()

void SVTK_RenderWindowInteractor::PopInteractorStyle ( )

To restore previous interactor style

void SVTK_RenderWindowInteractor::ProcessEvents ( vtkObject theObject,
unsigned long  theEvent,
void *  theClientData,
void *  theCallData 
)
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

void SVTK_RenderWindowInteractor::selectionChanged ( )
signal
Selection_Mode SVTK_RenderWindowInteractor::SelectionMode ( ) const
void SVTK_RenderWindowInteractor::SetRenderer ( SVTK_Renderer theRenderer)
protected

Changes renderer

Parameters
theRenderer- new renderer
void SVTK_RenderWindowInteractor::SetSelectionMode ( Selection_Mode  theMode)
void SVTK_RenderWindowInteractor::SetSelector ( SVTK_Selector theSelector)
protected

Changes selector

Parameters
theSelector- new selector
void SVTK_RenderWindowInteractor::wheelEvent ( QWheelEvent *  event)
protectedvirtual
void SVTK_RenderWindowInteractor::WheelMoved ( QWheelEvent *  )
signal

Member Data Documentation

vtkSmartPointer<vtkCallbackCommand> SVTK_RenderWindowInteractor::myEventCallbackCommand
protected
TInteractorStyles SVTK_RenderWindowInteractor::myInteractorStyles
protected
float SVTK_RenderWindowInteractor::myPriority
protected
vtkSmartPointer<SVTK_Renderer> SVTK_RenderWindowInteractor::myRenderer
protected
vtkSmartPointer<SVTK_Selector> SVTK_RenderWindowInteractor::mySelector
protected

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