15 #ifndef QVTKOpenGLWidget_h 16 #define QVTKOpenGLWidget_h 18 #include "vtkGUISupportQtModule.h" 87 typedef QWidget Superclass;
90 Qt::WindowFlags f = Qt::WindowFlags());
92 Qt::WindowFlags f = Qt::WindowFlags());
94 QWidget* parent = Q_NULLPTR, Qt::WindowFlags f = Qt::WindowFlags());
96 QWidget* parent = Q_NULLPTR, Qt::WindowFlags f = Qt::WindowFlags());
125 static QSurfaceFormat defaultFormat();
130 void setFormat(
const QSurfaceFormat& format);
135 virtual void setEnableHiDPI(
bool enable);
141 void setQVTKCursor(
const QCursor &cursor);
147 virtual bool isValid();
157 virtual bool testingEvent(QEvent* e);
163 QImage grabFramebuffer();
169 void mouseEvent(QMouseEvent* event);
179 void widgetEvent(QEvent* e);
185 void windowEvent(QEvent* event);
188 virtual void resizeEvent(QResizeEvent* event) Q_DECL_OVERRIDE;
189 virtual bool event(QEvent* e) Q_DECL_OVERRIDE;
191 bool EnableHiDPI =
true;
platform-independent render window interaction including picking and frame rate control.
platform independent render window
display a vtkGenericOpenGLRenderWindow in a Qt QOpenGLWindow.
create a window for renderers to draw into