Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QVTK_RenderWindowInteractor Class Reference

#include <SVTK_RenderWindowInteractor.h>

Inheritance diagram for QVTK_RenderWindowInteractor:
Inheritance graph

Public Slots

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

Public Member Functions

 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 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 nativeEvent (const QByteArray &, void *, long *)
 To handle native events (from such devices as SpaceMouse) More...
 

Protected Attributes

vtkSmartPointer< vtkRenderWindow > myRenderWindow
 
vtkSmartPointer
< vtkGenericRenderWindowInteractor
myDevice
 

Detailed Description

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.

Constructor & Destructor Documentation

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

Constructor

QVTK_RenderWindowInteractor::~QVTK_RenderWindowInteractor ( )

Member Function Documentation

void QVTK_RenderWindowInteractor::contextMenuEvent ( QContextMenuEvent *  event)
protectedvirtual

Custom context menu event handler

void QVTK_RenderWindowInteractor::enterEvent ( QEvent event)
protectedvirtual

Custom enter event handler

References FOCUS_UNDER_MOUSE.

void QVTK_RenderWindowInteractor::focusInEvent ( QFocusEvent *  event)
protectedvirtual

Reimplemented from QWidget in order to set window - receiver of space mouse events.

References SVTK_SpaceMouseXCB::getInstance(), SVTK_SpaceMouseXCB::initialize(), SVTK_SpaceMouse::isSpaceMouseOn(), and SVTK_SpaceMouseXCB::setWindow().

void QVTK_RenderWindowInteractor::focusOutEvent ( QFocusEvent *  event)
protectedvirtual

Reimplemented from QWidget in order to set window - receiver of space mouse events.

References SVTK_SpaceMouseXCB::getInstance(), SVTK_SpaceMouse::isSpaceMouseOn(), and SVTK_SpaceMouseXCB::setWindow().

vtkGenericRenderWindowInteractor * QVTK_RenderWindowInteractor::GetDevice ( )
Returns
corresponding render window interactor
vtkRenderWindow * QVTK_RenderWindowInteractor::getRenderWindow ( )
Returns
corresponding render window
void QVTK_RenderWindowInteractor::Initialize ( vtkGenericRenderWindowInteractor theDevice)
virtual

To initialize by vtkGenericRenderWindowInteractor instance

void QVTK_RenderWindowInteractor::InvokeEvent ( unsigned long  theEvent,
void *  theCallData 
)
virtual

Just to simplify usage of its device (vtkGenericRenderWindowInteractor)

void QVTK_RenderWindowInteractor::keyPressEvent ( QKeyEvent *  event)
protectedvirtual

Custom key press event handler

Reimplemented in SVTK_RenderWindowInteractor.

void QVTK_RenderWindowInteractor::keyReleaseEvent ( QKeyEvent *  event)
protectedvirtual

Custom key release event handler

Reimplemented in SVTK_RenderWindowInteractor.

void QVTK_RenderWindowInteractor::leaveEvent ( QEvent )
protectedvirtual

Custom leave event handler

void QVTK_RenderWindowInteractor::mouseDoubleClickEvent ( QMouseEvent *  event)
protectedvirtual

Custom mouse double click event handler

Reimplemented in SVTK_RenderWindowInteractor.

void QVTK_RenderWindowInteractor::mouseMoveEvent ( QMouseEvent *  event)
protectedvirtual

Custom mouse move event handler

Reimplemented in SVTK_RenderWindowInteractor.

void QVTK_RenderWindowInteractor::mousePressEvent ( QMouseEvent *  event)
protectedvirtual

Custom mouse press event handler

Reimplemented in SVTK_RenderWindowInteractor.

void QVTK_RenderWindowInteractor::mouseReleaseEvent ( QMouseEvent *  event)
protectedvirtual

Custom mouse release event handler

Reimplemented in SVTK_RenderWindowInteractor.

QPaintEngine * QVTK_RenderWindowInteractor::paintEngine ( ) const
virtual

Get paint engine for the scene

void QVTK_RenderWindowInteractor::paintEvent ( QPaintEvent *  theEvent)
protectedvirtual

Custom paint event handler

void QVTK_RenderWindowInteractor::polish ( )
virtualslot

To implement final initialization, just before the widget is displayed

void QVTK_RenderWindowInteractor::resize ( int  w,
int  h 
)
virtualslot

To adjust widget and vtkRenderWindow size

void QVTK_RenderWindowInteractor::resizeEvent ( QResizeEvent *  theEvent)
protectedvirtual

Custom resize event handler

void QVTK_RenderWindowInteractor::show ( )
virtualslot

Need for initial contents display on Win32

void QVTK_RenderWindowInteractor::wheelEvent ( QWheelEvent *  event)
protectedvirtual

Custom mouse wheel event handler

Reimplemented in SVTK_RenderWindowInteractor.

Member Data Documentation

vtkSmartPointer<vtkGenericRenderWindowInteractor> QVTK_RenderWindowInteractor::myDevice
protected
vtkSmartPointer<vtkRenderWindow> QVTK_RenderWindowInteractor::myRenderWindow
protected

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