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 49 of file QVTKWidget2.h.

Constructor & Destructor Documentation

◆ QVTKWidget2() [1/4]

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

constructor

◆ QVTKWidget2() [2/4]

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

◆ QVTKWidget2() [3/4]

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

◆ QVTKWidget2() [4/4]

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

◆ ~QVTKWidget2()

virtual QVTKWidget2::~QVTKWidget2 ( )
virtual

destructor

Member Function Documentation

◆ SetRenderWindow()

virtual void QVTKWidget2::SetRenderWindow ( vtkGenericOpenGLRenderWindow )
virtual

◆ GetRenderWindow()

virtual vtkGenericOpenGLRenderWindow* QVTKWidget2::GetRenderWindow ( )
virtual

◆ GetInteractor()

virtual QVTKInteractor* QVTKWidget2::GetInteractor ( )
virtual

◆ GetMultiSamples()

virtual int QVTKWidget2::GetMultiSamples ( ) const
virtual

◆ SetUseTDx()

void QVTKWidget2::SetUseTDx ( bool  useTDx)

◆ GetUseTDx()

bool QVTKWidget2::GetUseTDx ( ) const

◆ setAutoBufferSwap()

void QVTKWidget2::setAutoBufferSwap ( bool  )

◆ autoBufferSwap()

bool QVTKWidget2::autoBufferSwap ( ) const

◆ GetDefaultVTKFormat()

static QGLFormat QVTKWidget2::GetDefaultVTKFormat ( vtkGenericOpenGLRenderWindow w = nullptr)
static

◆ mouseEvent

void QVTKWidget2::mouseEvent ( QMouseEvent *  e)
signal

◆ MakeCurrent

virtual void QVTKWidget2::MakeCurrent ( )
protectedvirtualslot

◆ IsCurrent

virtual void QVTKWidget2::IsCurrent ( vtkObject caller,
unsigned long  vtk_event,
void *  client_data,
void *  call_data 
)
protectedvirtualslot

◆ Frame

virtual void QVTKWidget2::Frame ( )
protectedvirtualslot

◆ Start

virtual void QVTKWidget2::Start ( )
protectedvirtualslot

◆ End

virtual void QVTKWidget2::End ( )
protectedvirtualslot

◆ IsDirect

virtual void QVTKWidget2::IsDirect ( vtkObject caller,
unsigned long  vtk_event,
void *  client_data,
void *  call_data 
)
protectedvirtualslot

◆ SupportsOpenGL

virtual void QVTKWidget2::SupportsOpenGL ( vtkObject caller,
unsigned long  vtk_event,
void *  client_data,
void *  call_data 
)
protectedvirtualslot

◆ initializeGL()

virtual void QVTKWidget2::initializeGL ( )
protectedvirtual

◆ resizeGL()

virtual void QVTKWidget2::resizeGL ( int  ,
int   
)
protectedvirtual

◆ paintGL()

virtual void QVTKWidget2::paintGL ( )
protectedvirtual

◆ moveEvent()

virtual void QVTKWidget2::moveEvent ( QMoveEvent *  event)
protectedvirtual

◆ event()

virtual bool QVTKWidget2::event ( QEvent *  e)
protectedvirtual

◆ mousePressEvent()

virtual void QVTKWidget2::mousePressEvent ( QMouseEvent *  event)
protectedvirtual

◆ mouseMoveEvent()

virtual void QVTKWidget2::mouseMoveEvent ( QMouseEvent *  event)
protectedvirtual

◆ mouseReleaseEvent()

virtual void QVTKWidget2::mouseReleaseEvent ( QMouseEvent *  event)
protectedvirtual

◆ keyPressEvent()

virtual void QVTKWidget2::keyPressEvent ( QKeyEvent *  event)
protectedvirtual

◆ keyReleaseEvent()

virtual void QVTKWidget2::keyReleaseEvent ( QKeyEvent *  event)
protectedvirtual

◆ enterEvent()

virtual void QVTKWidget2::enterEvent ( QEvent *  )
protectedvirtual

◆ leaveEvent()

virtual void QVTKWidget2::leaveEvent ( QEvent *  )
protectedvirtual

◆ wheelEvent()

virtual void QVTKWidget2::wheelEvent ( QWheelEvent *  )
protectedvirtual

◆ contextMenuEvent()

virtual void QVTKWidget2::contextMenuEvent ( QContextMenuEvent *  )
protectedvirtual

◆ dragEnterEvent()

virtual void QVTKWidget2::dragEnterEvent ( QDragEnterEvent *  )
protectedvirtual

◆ dragMoveEvent()

virtual void QVTKWidget2::dragMoveEvent ( QDragMoveEvent *  )
protectedvirtual

◆ dragLeaveEvent()

virtual void QVTKWidget2::dragLeaveEvent ( QDragLeaveEvent *  )
protectedvirtual

◆ dropEvent()

virtual void QVTKWidget2::dropEvent ( QDropEvent *  )
protectedvirtual

◆ focusNextPrevChild()

virtual bool QVTKWidget2::focusNextPrevChild ( bool  )
protectedvirtual

Member Data Documentation

◆ mRenWin

vtkSmartPointer<vtkGenericOpenGLRenderWindow> QVTKWidget2::mRenWin
protected

Definition at line 175 of file QVTKWidget2.h.

◆ UseTDx

bool QVTKWidget2::UseTDx
protected

Definition at line 176 of file QVTKWidget2.h.

◆ mIrenAdapter

QVTKInteractorAdapter* QVTKWidget2::mIrenAdapter
protected

Definition at line 178 of file QVTKWidget2.h.

◆ mConnect

vtkSmartPointer<vtkEventQtSlotConnect> QVTKWidget2::mConnect
protected

Definition at line 179 of file QVTKWidget2.h.


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