VTK
Signals | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
QVTKWidget2 Class Reference

display a vtkRenderWindow in Qt's QGLWidget. More...

#include <QVTKWidget2.h>

Inherits QGLWidget.

Collaboration diagram for QVTKWidget2:
[legend]

Signals

void mouseEvent (QMouseEvent *e)
 

Public Member Functions

 QVTKWidget2 (QWidget *parent=nullptr, const QGLWidget *shareWidget=0, Qt::WindowFlags f=0)
 constructor More...
 
 QVTKWidget2 (vtkGenericOpenGLRenderWindow *w, QWidget *parent=nullptr, const QGLWidget *shareWidget=0, Qt::WindowFlags f=0)
 
 QVTKWidget2 (QGLContext *ctx, QWidget *parent=nullptr, const QGLWidget *shareWidget=0, Qt::WindowFlags f=0)
 
 QVTKWidget2 (const QGLFormat &fmt, QWidget *parent=nullptr, const QGLWidget *shareWidget=0, Qt::WindowFlags f=0)
 
virtual ~QVTKWidget2 ()
 destructor More...
 
virtual void SetRenderWindow (vtkGenericOpenGLRenderWindow *)
 
virtual vtkGenericOpenGLRenderWindowGetRenderWindow ()
 
virtual QVTKInteractorGetInteractor ()
 
virtual int GetMultiSamples () const
 
void SetUseTDx (bool useTDx)
 
bool GetUseTDx () const
 
void setAutoBufferSwap (bool)
 
bool autoBufferSwap () const
 

Static Public Member Functions

static QGLFormat GetDefaultVTKFormat (vtkGenericOpenGLRenderWindow *w=nullptr)
 

Protected Slots

virtual void MakeCurrent ()
 
virtual void IsCurrent (vtkObject *caller, unsigned long vtk_event, void *client_data, void *call_data)
 
virtual void Frame ()
 
virtual void Start ()
 
virtual void End ()
 
virtual void IsDirect (vtkObject *caller, unsigned long vtk_event, void *client_data, void *call_data)
 
virtual void SupportsOpenGL (vtkObject *caller, unsigned long vtk_event, void *client_data, void *call_data)
 

Protected Member Functions

virtual void initializeGL ()
 
virtual void resizeGL (int, int)
 
virtual void paintGL ()
 
virtual void moveEvent (QMoveEvent *event)
 
virtual bool event (QEvent *e)
 
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 contextMenuEvent (QContextMenuEvent *)
 
virtual void dragEnterEvent (QDragEnterEvent *)
 
virtual void dragMoveEvent (QDragMoveEvent *)
 
virtual void dragLeaveEvent (QDragLeaveEvent *)
 
virtual void dropEvent (QDropEvent *)
 
virtual bool focusNextPrevChild (bool)
 

Protected Attributes

vtkSmartPointer< vtkGenericOpenGLRenderWindowmRenWin
 
bool UseTDx
 
QVTKInteractorAdaptermIrenAdapter
 
vtkSmartPointer< vtkEventQtSlotConnectmConnect
 

Detailed Description

display a vtkRenderWindow in Qt's QGLWidget.

QVTKWidget2 provides a way to display VTK data in a Qt QGLWidget. Since QGLWidget is flagged as obsolete by Qt, it is recommended to use QVTKOpenGLNativeWidget instead.

Deprecated:
Please use QVTKOpenGLNativeWidget instead.

Definition at line 50 of file QVTKWidget2.h.

Constructor & Destructor Documentation

QVTKWidget2::QVTKWidget2 ( QWidget *  parent = nullptr,
const QGLWidget *  shareWidget = 0,
Qt::WindowFlags  f = 0 
)

constructor

QVTKWidget2::QVTKWidget2 ( vtkGenericOpenGLRenderWindow w,
QWidget *  parent = nullptr,
const QGLWidget *  shareWidget = 0,
Qt::WindowFlags  f = 0 
)
QVTKWidget2::QVTKWidget2 ( QGLContext *  ctx,
QWidget *  parent = nullptr,
const QGLWidget *  shareWidget = 0,
Qt::WindowFlags  f = 0 
)
QVTKWidget2::QVTKWidget2 ( const QGLFormat &  fmt,
QWidget *  parent = nullptr,
const QGLWidget *  shareWidget = 0,
Qt::WindowFlags  f = 0 
)
virtual QVTKWidget2::~QVTKWidget2 ( )
virtual

destructor

Member Function Documentation

virtual void QVTKWidget2::SetRenderWindow ( vtkGenericOpenGLRenderWindow )
virtual
virtual vtkGenericOpenGLRenderWindow* QVTKWidget2::GetRenderWindow ( )
virtual
virtual QVTKInteractor* QVTKWidget2::GetInteractor ( )
virtual
virtual int QVTKWidget2::GetMultiSamples ( ) const
virtual
void QVTKWidget2::SetUseTDx ( bool  useTDx)
bool QVTKWidget2::GetUseTDx ( ) const
void QVTKWidget2::setAutoBufferSwap ( bool  )
bool QVTKWidget2::autoBufferSwap ( ) const
static QGLFormat QVTKWidget2::GetDefaultVTKFormat ( vtkGenericOpenGLRenderWindow w = nullptr)
static
void QVTKWidget2::mouseEvent ( QMouseEvent *  e)
signal
virtual void QVTKWidget2::MakeCurrent ( )
protectedvirtualslot
virtual void QVTKWidget2::IsCurrent ( vtkObject caller,
unsigned long  vtk_event,
void *  client_data,
void *  call_data 
)
protectedvirtualslot
virtual void QVTKWidget2::Frame ( )
protectedvirtualslot
virtual void QVTKWidget2::Start ( )
protectedvirtualslot
virtual void QVTKWidget2::End ( )
protectedvirtualslot
virtual void QVTKWidget2::IsDirect ( vtkObject caller,
unsigned long  vtk_event,
void *  client_data,
void *  call_data 
)
protectedvirtualslot
virtual void QVTKWidget2::SupportsOpenGL ( vtkObject caller,
unsigned long  vtk_event,
void *  client_data,
void *  call_data 
)
protectedvirtualslot
virtual void QVTKWidget2::initializeGL ( )
protectedvirtual
virtual void QVTKWidget2::resizeGL ( int  ,
int   
)
protectedvirtual
virtual void QVTKWidget2::paintGL ( )
protectedvirtual
virtual void QVTKWidget2::moveEvent ( QMoveEvent *  event)
protectedvirtual
virtual bool QVTKWidget2::event ( QEvent *  e)
protectedvirtual
virtual void QVTKWidget2::mousePressEvent ( QMouseEvent *  event)
protectedvirtual
virtual void QVTKWidget2::mouseMoveEvent ( QMouseEvent *  event)
protectedvirtual
virtual void QVTKWidget2::mouseReleaseEvent ( QMouseEvent *  event)
protectedvirtual
virtual void QVTKWidget2::keyPressEvent ( QKeyEvent *  event)
protectedvirtual
virtual void QVTKWidget2::keyReleaseEvent ( QKeyEvent *  event)
protectedvirtual
virtual void QVTKWidget2::enterEvent ( QEvent *  )
protectedvirtual
virtual void QVTKWidget2::leaveEvent ( QEvent *  )
protectedvirtual
virtual void QVTKWidget2::wheelEvent ( QWheelEvent *  )
protectedvirtual
virtual void QVTKWidget2::contextMenuEvent ( QContextMenuEvent *  )
protectedvirtual
virtual void QVTKWidget2::dragEnterEvent ( QDragEnterEvent *  )
protectedvirtual
virtual void QVTKWidget2::dragMoveEvent ( QDragMoveEvent *  )
protectedvirtual
virtual void QVTKWidget2::dragLeaveEvent ( QDragLeaveEvent *  )
protectedvirtual
virtual void QVTKWidget2::dropEvent ( QDropEvent *  )
protectedvirtual
virtual bool QVTKWidget2::focusNextPrevChild ( bool  )
protectedvirtual

Member Data Documentation

vtkSmartPointer<vtkGenericOpenGLRenderWindow> QVTKWidget2::mRenWin
protected

Definition at line 168 of file QVTKWidget2.h.

bool QVTKWidget2::UseTDx
protected

Definition at line 169 of file QVTKWidget2.h.

QVTKInteractorAdapter* QVTKWidget2::mIrenAdapter
protected

Definition at line 171 of file QVTKWidget2.h.

vtkSmartPointer<vtkEventQtSlotConnect> QVTKWidget2::mConnect
protected

Definition at line 172 of file QVTKWidget2.h.


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