Go to the documentation of this file.
35 #ifndef Q_VTK_WIDGET_H
36 #define Q_VTK_WIDGET_H
38 #include "vtkGUISupportQtModule.h"
46 #include <vtkConfigure.h>
47 #include <vtkToolkits.h>
50 #include "vtkTDxConfigure.h"
56 # if defined(QT_MAC_USE_COCOA) && defined(VTK_USE_COCOA)
57 # define QVTK_USE_COCOA
58 # elif defined(VTK_USE_COCOA)
59 # error "VTK configured to use Cocoa, but Qt configured to use Carbon"
66 class VTKGUISUPPORTQT_EXPORT
QVTKWidget :
public QWidget
70 Q_PROPERTY(
bool automaticImageCacheEnabled
71 READ isAutomaticImageCacheEnabled
72 WRITE setAutomaticImageCacheEnabled)
73 Q_PROPERTY(
double maxRenderRateForImageCache
74 READ maxRenderRateForImageCache
75 WRITE setMaxRenderRateForImageCache)
76 Q_PROPERTY(
bool deferRenderInPaintEvent
77 READ deferRenderInPaintEvent
78 WRITE setDeferRenderInPaintEvent)
82 VTK_LEGACY(
QVTKWidget(QWidget *parent =
nullptr, Qt::WindowFlags f = 0));
194 void setDevice(vtkTDxDevice *device);
230 #ifndef QT_NO_WHEELEVENT
268 #if defined(Q_OS_WIN)
269 bool winEvent(MSG* msg,
long* result);
271 bool nativeEvent(
const QByteArray& eventType,
void* message,
long* result);
288 unsigned long renderEventCallbackObserverId;
293 void renderEventCallback();
294 QTimer mDeferedRenderTimer;
topologically and geometrically regular array of data
create a window for renderers to draw into
an interactor for QVTKOpenGLNativeWidget (and QVTKWiget).