Version: 6.3.1
Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes

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

Public Member Functions

 QVTK_RenderWindowInteractor (QWidget *theParent, const char *theName)
 ~QVTK_RenderWindowInteractor ()
virtual void Initialize (vtkGenericRenderWindowInteractor *theDevice)
 To initialize by vtkGenericRenderWindowInteractor instance.
vtkGenericRenderWindowInteractorGetDevice ()
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 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 x11Event (XEvent *e)
 To handle native events (from such devices as SpaceMouse)

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::Initialize ( vtkGenericRenderWindowInteractor theDevice) [virtual]

To initialize by vtkGenericRenderWindowInteractor instance

vtkGenericRenderWindowInteractor * QVTK_RenderWindowInteractor::GetDevice ( )
Returns:
corresponding render window interactor
vtkRenderWindow * QVTK_RenderWindowInteractor::getRenderWindow ( )
Returns:
corresponding render window
void QVTK_RenderWindowInteractor::InvokeEvent ( unsigned long  theEvent,
void *  theCallData 
) [virtual]

Just to simplify usage of its device (vtkGenericRenderWindowInteractor)

QPaintEngine * QVTK_RenderWindowInteractor::paintEngine ( ) const [virtual]

Get paint engine for the scene

void QVTK_RenderWindowInteractor::show ( ) [virtual, slot]

Need for initial contents display on Win32

void QVTK_RenderWindowInteractor::polish ( ) [virtual, slot]

To implement final initialization, just before the widget is displayed

void QVTK_RenderWindowInteractor::resize ( int  w,
int  h 
) [virtual, slot]

To adjust widget and vtkRenderWindow size

void QVTK_RenderWindowInteractor::paintEvent ( QPaintEvent *  theEvent) [protected, virtual]

Custom paint event handler

void QVTK_RenderWindowInteractor::resizeEvent ( QResizeEvent *  theEvent) [protected, virtual]

Custom resize event handler

void QVTK_RenderWindowInteractor::mouseMoveEvent ( QMouseEvent *  event) [protected, virtual]

Custom mouse move event handler

Reimplemented in SVTK_RenderWindowInteractor.

void QVTK_RenderWindowInteractor::mousePressEvent ( QMouseEvent *  event) [protected, virtual]

Custom mouse press event handler

Reimplemented in SVTK_RenderWindowInteractor.

void QVTK_RenderWindowInteractor::mouseReleaseEvent ( QMouseEvent *  event) [protected, virtual]

Custom mouse release event handler

Reimplemented in SVTK_RenderWindowInteractor.

void QVTK_RenderWindowInteractor::mouseDoubleClickEvent ( QMouseEvent *  event) [protected, virtual]

Custom mouse double click event handler

Reimplemented in SVTK_RenderWindowInteractor.

void QVTK_RenderWindowInteractor::wheelEvent ( QWheelEvent *  event) [protected, virtual]

Custom mouse wheel event handler

Reimplemented in SVTK_RenderWindowInteractor.

void QVTK_RenderWindowInteractor::keyPressEvent ( QKeyEvent *  event) [protected, virtual]

Custom key press event handler

Reimplemented in SVTK_RenderWindowInteractor.

void QVTK_RenderWindowInteractor::keyReleaseEvent ( QKeyEvent *  event) [protected, virtual]

Custom key release event handler

Reimplemented in SVTK_RenderWindowInteractor.

void QVTK_RenderWindowInteractor::enterEvent ( QEvent event) [protected, virtual]

Custom enter event handler

References FOCUS_UNDER_MOUSE.

void QVTK_RenderWindowInteractor::leaveEvent ( QEvent ) [protected, virtual]

Custom leave event handler

void QVTK_RenderWindowInteractor::contextMenuEvent ( QContextMenuEvent *  event) [protected, virtual]

Custom context menu event handler

void QVTK_RenderWindowInteractor::focusInEvent ( QFocusEvent *  event) [protected, virtual]

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]

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]

Field Documentation

vtkSmartPointer<vtkRenderWindow> QVTK_RenderWindowInteractor.myRenderWindow [protected]
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS