Fraxinus  18.10
An IGT application
CXQVTKWidget Class Reference

QVTKWidget displays a VTK window in a Qt window. More...

#include <cxQVTKWidget.h>

Inheritance diagram for CXQVTKWidget:

Public Types

enum  vtkCustomEvents {
  ContextMenuEvent = QVTKInteractor::ContextMenuEvent, DragEnterEvent = QVTKInteractor::DragEnterEvent, DragMoveEvent = QVTKInteractor::DragMoveEvent, DragLeaveEvent = QVTKInteractor::DragLeaveEvent,
  DropEvent = QVTKInteractor::DropEvent
}
 

Signals

void mouseEvent (QMouseEvent *event)
 

Public Member Functions

 CXQVTKWidget (QWidget *parent=NULL, Qt::WindowFlags f=0)
 constructor More...
 
virtual ~CXQVTKWidget ()
 destructor More...
 
virtual void SetRenderWindow (vtkRenderWindow *)
 
virtual vtkRenderWindow * GetRenderWindow ()
 
virtual QVTKInteractor * GetInteractor ()
 
virtual void showEvent (QShowEvent *)
 
void SetUseTDx (bool useTDx)
 
bool GetUseTDx () const
 

Protected Member Functions

QPaintEngine * paintEngine ()
 
virtual void resizeEvent (QResizeEvent *event)
 
virtual void moveEvent (QMoveEvent *event)
 
virtual void paintEvent (QPaintEvent *event)
 
virtual void mousePressEvent (QMouseEvent *event)
 
virtual void mouseMoveEvent (QMouseEvent *event)
 
virtual void mouseReleaseEvent (QMouseEvent *event)
 
virtual void keyPressEvent (QKeyEvent *event)
 
virtual void keyReleaseEvent (QKeyEvent *event)
 
virtual void enterEvent (QEvent *)
 
virtual void leaveEvent (QEvent *)
 
virtual void wheelEvent (QWheelEvent *)
 
virtual void focusInEvent (QFocusEvent *)
 
virtual void focusOutEvent (QFocusEvent *)
 
bool event (QEvent *e)
 
virtual void contextMenuEvent (QContextMenuEvent *)
 
virtual void dragEnterEvent (QDragEnterEvent *)
 
virtual void dragMoveEvent (QDragMoveEvent *)
 
virtual void dragLeaveEvent (QDragLeaveEvent *)
 
virtual void dropEvent (QDropEvent *)
 
void x11_setup_window ()
 

Protected Attributes

vtkRenderWindow * mRenWin
 
bool UseTDx
 
QVTKInteractorAdapter * mIrenAdapter
 

Detailed Description

QVTKWidget displays a VTK window in a Qt window.

Definition at line 56 of file cxQVTKWidget.h.

Member Enumeration Documentation

Enumerator
ContextMenuEvent 
DragEnterEvent 
DragMoveEvent 
DragLeaveEvent 
DropEvent 

Definition at line 81 of file cxQVTKWidget.h.

Constructor & Destructor Documentation

CXQVTKWidget::CXQVTKWidget ( QWidget *  p = NULL,
Qt::WindowFlags  f = 0 
)

constructor

constructor

Definition at line 74 of file cxQVTKWidget.cpp.

CXQVTKWidget::~CXQVTKWidget ( )
virtual

destructor

destructor

Definition at line 101 of file cxQVTKWidget.cpp.

Member Function Documentation

void CXQVTKWidget::contextMenuEvent ( QContextMenuEvent *  e)
protectedvirtual

Definition at line 495 of file cxQVTKWidget.cpp.

void CXQVTKWidget::dragEnterEvent ( QDragEnterEvent *  e)
protectedvirtual

Definition at line 503 of file cxQVTKWidget.cpp.

void CXQVTKWidget::dragLeaveEvent ( QDragLeaveEvent *  e)
protectedvirtual

Definition at line 519 of file cxQVTKWidget.cpp.

void CXQVTKWidget::dragMoveEvent ( QDragMoveEvent *  e)
protectedvirtual

Definition at line 511 of file cxQVTKWidget.cpp.

void CXQVTKWidget::dropEvent ( QDropEvent *  e)
protectedvirtual

Definition at line 527 of file cxQVTKWidget.cpp.

void CXQVTKWidget::enterEvent ( QEvent *  e)
protectedvirtual

handle enter event

Definition at line 411 of file cxQVTKWidget.cpp.

bool CXQVTKWidget::event ( QEvent *  e)
protected

overloaded Qt's event handler to capture additional keys that Qt has default behavior for (for example the Tab and Shift-Tab key)

Definition at line 252 of file cxQVTKWidget.cpp.

void CXQVTKWidget::focusInEvent ( QFocusEvent *  e)
protectedvirtual

Definition at line 470 of file cxQVTKWidget.cpp.

void CXQVTKWidget::focusOutEvent ( QFocusEvent *  e)
protectedvirtual

Definition at line 482 of file cxQVTKWidget.cpp.

QVTKInteractor * CXQVTKWidget::GetInteractor ( )
virtual

get the Qt/VTK interactor

Definition at line 242 of file cxQVTKWidget.cpp.

vtkRenderWindow * CXQVTKWidget::GetRenderWindow ( )
virtual

get the render window

Definition at line 142 of file cxQVTKWidget.cpp.

bool CXQVTKWidget::GetUseTDx ( ) const

Definition at line 135 of file cxQVTKWidget.cpp.

void CXQVTKWidget::keyPressEvent ( QKeyEvent *  e)
protectedvirtual

handle key press event

Definition at line 444 of file cxQVTKWidget.cpp.

void CXQVTKWidget::keyReleaseEvent ( QKeyEvent *  e)
protectedvirtual

handle key release event

Definition at line 454 of file cxQVTKWidget.cpp.

void CXQVTKWidget::leaveEvent ( QEvent *  e)
protectedvirtual

handle leave event

Definition at line 421 of file cxQVTKWidget.cpp.

void CXQVTKWidget::mouseEvent ( QMouseEvent *  event)
signal
void CXQVTKWidget::mouseMoveEvent ( QMouseEvent *  e)
protectedvirtual

handle mouse move event

Definition at line 397 of file cxQVTKWidget.cpp.

void CXQVTKWidget::mousePressEvent ( QMouseEvent *  e)
protectedvirtual

handle mouse press event

Definition at line 382 of file cxQVTKWidget.cpp.

void CXQVTKWidget::mouseReleaseEvent ( QMouseEvent *  e)
protectedvirtual

handle mouse release event

Definition at line 431 of file cxQVTKWidget.cpp.

void CXQVTKWidget::moveEvent ( QMoveEvent *  event)
protectedvirtual

Definition at line 323 of file cxQVTKWidget.cpp.

QPaintEngine* CXQVTKWidget::paintEngine ( )
inlineprotected

Definition at line 123 of file cxQVTKWidget.h.

void CXQVTKWidget::paintEvent ( QPaintEvent *  event)
protectedvirtual

handle paint event

Definition at line 340 of file cxQVTKWidget.cpp.

void CXQVTKWidget::resizeEvent ( QResizeEvent *  e)
protectedvirtual

handle resize event

Definition at line 300 of file cxQVTKWidget.cpp.

void CXQVTKWidget::SetRenderWindow ( vtkRenderWindow *  w)
virtual

set the render window this will bind a VTK window with the Qt window it'll also replace an existing VTK window

Definition at line 159 of file cxQVTKWidget.cpp.

void CXQVTKWidget::SetUseTDx ( bool  useTDx)

Definition at line 108 of file cxQVTKWidget.cpp.

void CXQVTKWidget::showEvent ( QShowEvent *  e)
virtual

Definition at line 535 of file cxQVTKWidget.cpp.

void CXQVTKWidget::wheelEvent ( QWheelEvent *  e)
protectedvirtual

Definition at line 462 of file cxQVTKWidget.cpp.

void CXQVTKWidget::x11_setup_window ( )
protected

Definition at line 566 of file cxQVTKWidget.cpp.

Member Data Documentation

QVTKInteractorAdapter* CXQVTKWidget::mIrenAdapter
protected

Definition at line 182 of file cxQVTKWidget.h.

vtkRenderWindow* CXQVTKWidget::mRenWin
protected

Definition at line 169 of file cxQVTKWidget.h.

bool CXQVTKWidget::UseTDx
protected

Definition at line 170 of file cxQVTKWidget.h.


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