VTK
Public Types | Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | Properties | List of all members
QVTKWidget Class Reference

More...

#include <Q4VTKWidgetPlugin.h>

Inherits QWidget, and QWidget.

Collaboration diagram for QVTKWidget:
[legend]

Public Types

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

Public Slots

void markCachedImageAsDirty ()
 
void saveImageToCache ()
 

Signals

void mouseEvent (QMouseEvent *event)
 
void cachedImageDirty ()
 
void cachedImageClean ()
 

Public Member Functions

 QVTKWidget (QWidget *p)
 
 QVTKWidget (QWidget *parent=nullptr, Qt::WindowFlags f=0)
 constructor More...
 
 ~QVTKWidget () override
 destructor More...
 
virtual void SetRenderWindow (vtkRenderWindow *)
 
virtual vtkRenderWindowGetRenderWindow ()
 
virtual QVTKInteractorGetInteractor ()
 
virtual void setAutomaticImageCacheEnabled (bool flag)
 
virtual bool isAutomaticImageCacheEnabled () const
 
virtual void setMaxRenderRateForImageCache (double rate)
 
virtual double maxRenderRateForImageCache () const
 
virtual vtkImageDatacachedImage ()
 
void showEvent (QShowEvent *) override
 
QPaintEngine * paintEngine () const override
 
void SetUseTDx (bool useTDx)
 
bool GetUseTDx () const
 
void setDeferRenderInPaintEvent (bool val)
 
bool deferRenderInPaintEvent () const
 

Protected Slots

virtual void deferRender ()
 
virtual void doDeferredRender ()
 

Protected Member Functions

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

Protected Attributes

vtkRenderWindowmRenWin
 
bool UseTDx
 
QPaintEngine * mPaintEngine
 
vtkImageDatamCachedImage
 
bool cachedImageCleanFlag
 
bool automaticImageCache
 
double maxImageCacheRenderRate
 
QVTKInteractorAdaptermIrenAdapter
 
bool mDeferRenderInPaintEvent
 

Properties

bool automaticImageCacheEnabled
 
double maxRenderRateForImageCache
 
bool deferRenderInPaintEvent
 

Detailed Description

QVTKWidget provides a way to display VTK data in a Qt widget.

Deprecated:
Please use QVTKOpenGLNativeWidget instead.

Definition at line 76 of file Q4VTKWidgetPlugin.h.

Member Enumeration Documentation

Enumerator
ContextMenuEvent 
DragEnterEvent 
DragMoveEvent 
DragLeaveEvent 
DropEvent 

Definition at line 101 of file QVTKWidget.h.

Constructor & Destructor Documentation

QVTKWidget::QVTKWidget ( QWidget *  p)
inline

Definition at line 80 of file Q4VTKWidgetPlugin.h.

QVTKWidget::QVTKWidget ( QWidget *  parent = nullptr,
Qt::WindowFlags  f = 0 
)

constructor

QVTKWidget::~QVTKWidget ( )
override

destructor

Member Function Documentation

virtual void QVTKWidget::SetRenderWindow ( vtkRenderWindow )
virtual
virtual vtkRenderWindow* QVTKWidget::GetRenderWindow ( )
virtual
virtual QVTKInteractor* QVTKWidget::GetInteractor ( )
virtual
virtual void QVTKWidget::setAutomaticImageCacheEnabled ( bool  flag)
virtual
virtual bool QVTKWidget::isAutomaticImageCacheEnabled ( ) const
virtual
virtual void QVTKWidget::setMaxRenderRateForImageCache ( double  rate)
virtual
virtual double QVTKWidget::maxRenderRateForImageCache ( ) const
virtual
virtual vtkImageData* QVTKWidget::cachedImage ( )
virtual
void QVTKWidget::showEvent ( QShowEvent *  )
override
QPaintEngine* QVTKWidget::paintEngine ( ) const
override
void QVTKWidget::SetUseTDx ( bool  useTDx)
bool QVTKWidget::GetUseTDx ( ) const
void QVTKWidget::setDeferRenderInPaintEvent ( bool  val)
bool QVTKWidget::deferRenderInPaintEvent ( ) const
void QVTKWidget::mouseEvent ( QMouseEvent *  event)
signal
void QVTKWidget::cachedImageDirty ( )
signal
void QVTKWidget::cachedImageClean ( )
signal
void QVTKWidget::markCachedImageAsDirty ( )
slot
void QVTKWidget::saveImageToCache ( )
slot
virtual void QVTKWidget::deferRender ( )
protectedvirtualslot
virtual void QVTKWidget::doDeferredRender ( )
protectedvirtualslot
void QVTKWidget::resizeEvent ( QResizeEvent *  event)
overrideprotected
void QVTKWidget::moveEvent ( QMoveEvent *  event)
overrideprotected
void QVTKWidget::paintEvent ( QPaintEvent *  event)
overrideprotected
void QVTKWidget::mousePressEvent ( QMouseEvent *  event)
overrideprotected
void QVTKWidget::mouseMoveEvent ( QMouseEvent *  event)
overrideprotected
void QVTKWidget::mouseReleaseEvent ( QMouseEvent *  event)
overrideprotected
void QVTKWidget::keyPressEvent ( QKeyEvent *  event)
overrideprotected
void QVTKWidget::keyReleaseEvent ( QKeyEvent *  event)
overrideprotected
void QVTKWidget::enterEvent ( QEvent *  )
overrideprotected
void QVTKWidget::leaveEvent ( QEvent *  )
overrideprotected
void QVTKWidget::wheelEvent ( QWheelEvent *  )
overrideprotected
void QVTKWidget::focusInEvent ( QFocusEvent *  )
overrideprotected
void QVTKWidget::focusOutEvent ( QFocusEvent *  )
overrideprotected
bool QVTKWidget::event ( QEvent *  e)
overrideprotected
void QVTKWidget::contextMenuEvent ( QContextMenuEvent *  )
overrideprotected
void QVTKWidget::dragEnterEvent ( QDragEnterEvent *  )
overrideprotected
void QVTKWidget::dragMoveEvent ( QDragMoveEvent *  )
overrideprotected
void QVTKWidget::dragLeaveEvent ( QDragLeaveEvent *  )
overrideprotected
void QVTKWidget::dropEvent ( QDropEvent *  )
overrideprotected
virtual bool QVTKWidget::paintCachedImage ( )
protectedvirtual
void QVTKWidget::x11_setup_window ( )
protected

Member Data Documentation

vtkRenderWindow* QVTKWidget::mRenWin
protected

Definition at line 258 of file QVTKWidget.h.

bool QVTKWidget::UseTDx
protected

Definition at line 259 of file QVTKWidget.h.

QPaintEngine* QVTKWidget::mPaintEngine
protected

Definition at line 262 of file QVTKWidget.h.

vtkImageData* QVTKWidget::mCachedImage
protected

Definition at line 276 of file QVTKWidget.h.

bool QVTKWidget::cachedImageCleanFlag
protected

Definition at line 277 of file QVTKWidget.h.

bool QVTKWidget::automaticImageCache
protected

Definition at line 278 of file QVTKWidget.h.

double QVTKWidget::maxImageCacheRenderRate
protected

Definition at line 279 of file QVTKWidget.h.

QVTKInteractorAdapter* QVTKWidget::mIrenAdapter
protected

Definition at line 280 of file QVTKWidget.h.

bool QVTKWidget::mDeferRenderInPaintEvent
protected

Definition at line 281 of file QVTKWidget.h.

Property Documentation

bool QVTKWidget::automaticImageCacheEnabled
readwrite

Definition at line 72 of file QVTKWidget.h.

double QVTKWidget::maxRenderRateForImageCache
readwrite

Definition at line 75 of file QVTKWidget.h.

bool QVTKWidget::deferRenderInPaintEvent
readwrite

Definition at line 78 of file QVTKWidget.h.


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