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

◆ vtkCustomEvents

Enumerator
ContextMenuEvent 
DragEnterEvent 
DragMoveEvent 
DragLeaveEvent 
DropEvent 

Definition at line 101 of file QVTKWidget.h.

Constructor & Destructor Documentation

◆ QVTKWidget() [1/2]

QVTKWidget::QVTKWidget ( QWidget *  p)
inline

Definition at line 80 of file Q4VTKWidgetPlugin.h.

◆ QVTKWidget() [2/2]

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

constructor

◆ ~QVTKWidget()

QVTKWidget::~QVTKWidget ( )
override

destructor

Member Function Documentation

◆ SetRenderWindow()

virtual void QVTKWidget::SetRenderWindow ( vtkRenderWindow )
virtual

◆ GetRenderWindow()

virtual vtkRenderWindow* QVTKWidget::GetRenderWindow ( )
virtual

◆ GetInteractor()

virtual QVTKInteractor* QVTKWidget::GetInteractor ( )
virtual

◆ setAutomaticImageCacheEnabled()

virtual void QVTKWidget::setAutomaticImageCacheEnabled ( bool  flag)
virtual

◆ isAutomaticImageCacheEnabled()

virtual bool QVTKWidget::isAutomaticImageCacheEnabled ( ) const
virtual

◆ setMaxRenderRateForImageCache()

virtual void QVTKWidget::setMaxRenderRateForImageCache ( double  rate)
virtual

◆ maxRenderRateForImageCache()

virtual double QVTKWidget::maxRenderRateForImageCache ( ) const
virtual

◆ cachedImage()

virtual vtkImageData* QVTKWidget::cachedImage ( )
virtual

◆ showEvent()

void QVTKWidget::showEvent ( QShowEvent *  )
override

◆ paintEngine()

QPaintEngine* QVTKWidget::paintEngine ( ) const
override

◆ SetUseTDx()

void QVTKWidget::SetUseTDx ( bool  useTDx)

◆ GetUseTDx()

bool QVTKWidget::GetUseTDx ( ) const

◆ setDeferRenderInPaintEvent()

void QVTKWidget::setDeferRenderInPaintEvent ( bool  val)

◆ deferRenderInPaintEvent()

bool QVTKWidget::deferRenderInPaintEvent ( ) const

◆ mouseEvent

void QVTKWidget::mouseEvent ( QMouseEvent *  event)
signal

◆ cachedImageDirty

void QVTKWidget::cachedImageDirty ( )
signal

◆ cachedImageClean

void QVTKWidget::cachedImageClean ( )
signal

◆ markCachedImageAsDirty

void QVTKWidget::markCachedImageAsDirty ( )
slot

◆ saveImageToCache

void QVTKWidget::saveImageToCache ( )
slot

◆ deferRender

virtual void QVTKWidget::deferRender ( )
protectedvirtualslot

◆ doDeferredRender

virtual void QVTKWidget::doDeferredRender ( )
protectedvirtualslot

◆ resizeEvent()

void QVTKWidget::resizeEvent ( QResizeEvent *  event)
overrideprotected

◆ moveEvent()

void QVTKWidget::moveEvent ( QMoveEvent *  event)
overrideprotected

◆ paintEvent()

void QVTKWidget::paintEvent ( QPaintEvent *  event)
overrideprotected

◆ mousePressEvent()

void QVTKWidget::mousePressEvent ( QMouseEvent *  event)
overrideprotected

◆ mouseMoveEvent()

void QVTKWidget::mouseMoveEvent ( QMouseEvent *  event)
overrideprotected

◆ mouseReleaseEvent()

void QVTKWidget::mouseReleaseEvent ( QMouseEvent *  event)
overrideprotected

◆ keyPressEvent()

void QVTKWidget::keyPressEvent ( QKeyEvent *  event)
overrideprotected

◆ keyReleaseEvent()

void QVTKWidget::keyReleaseEvent ( QKeyEvent *  event)
overrideprotected

◆ enterEvent()

void QVTKWidget::enterEvent ( QEvent *  )
overrideprotected

◆ leaveEvent()

void QVTKWidget::leaveEvent ( QEvent *  )
overrideprotected

◆ wheelEvent()

void QVTKWidget::wheelEvent ( QWheelEvent *  )
overrideprotected

◆ focusInEvent()

void QVTKWidget::focusInEvent ( QFocusEvent *  )
overrideprotected

◆ focusOutEvent()

void QVTKWidget::focusOutEvent ( QFocusEvent *  )
overrideprotected

◆ event()

bool QVTKWidget::event ( QEvent *  e)
overrideprotected

◆ contextMenuEvent()

void QVTKWidget::contextMenuEvent ( QContextMenuEvent *  )
overrideprotected

◆ dragEnterEvent()

void QVTKWidget::dragEnterEvent ( QDragEnterEvent *  )
overrideprotected

◆ dragMoveEvent()

void QVTKWidget::dragMoveEvent ( QDragMoveEvent *  )
overrideprotected

◆ dragLeaveEvent()

void QVTKWidget::dragLeaveEvent ( QDragLeaveEvent *  )
overrideprotected

◆ dropEvent()

void QVTKWidget::dropEvent ( QDropEvent *  )
overrideprotected

◆ paintCachedImage()

virtual bool QVTKWidget::paintCachedImage ( )
protectedvirtual

◆ x11_setup_window()

void QVTKWidget::x11_setup_window ( )
protected

Member Data Documentation

◆ mRenWin

vtkRenderWindow* QVTKWidget::mRenWin
protected

Definition at line 258 of file QVTKWidget.h.

◆ UseTDx

bool QVTKWidget::UseTDx
protected

Definition at line 259 of file QVTKWidget.h.

◆ mPaintEngine

QPaintEngine* QVTKWidget::mPaintEngine
protected

Definition at line 262 of file QVTKWidget.h.

◆ mCachedImage

vtkImageData* QVTKWidget::mCachedImage
protected

Definition at line 276 of file QVTKWidget.h.

◆ cachedImageCleanFlag

bool QVTKWidget::cachedImageCleanFlag
protected

Definition at line 277 of file QVTKWidget.h.

◆ automaticImageCache

bool QVTKWidget::automaticImageCache
protected

Definition at line 278 of file QVTKWidget.h.

◆ maxImageCacheRenderRate

double QVTKWidget::maxImageCacheRenderRate
protected

Definition at line 279 of file QVTKWidget.h.

◆ mIrenAdapter

QVTKInteractorAdapter* QVTKWidget::mIrenAdapter
protected

Definition at line 280 of file QVTKWidget.h.

◆ mDeferRenderInPaintEvent

bool QVTKWidget::mDeferRenderInPaintEvent
protected

Definition at line 281 of file QVTKWidget.h.

Property Documentation

◆ automaticImageCacheEnabled

bool QVTKWidget::automaticImageCacheEnabled
readwrite

Definition at line 72 of file QVTKWidget.h.

◆ maxRenderRateForImageCache

double QVTKWidget::maxRenderRateForImageCache
readwrite

Definition at line 75 of file QVTKWidget.h.

◆ deferRenderInPaintEvent

bool QVTKWidget::deferRenderInPaintEvent
readwrite

Definition at line 78 of file QVTKWidget.h.


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