91 #ifndef QVTKOpenGLNativeWidget_h
92 #define QVTKOpenGLNativeWidget_h
94 #include <QOpenGLWidget>
95 #include <QScopedPointer>
98 #include "vtkGUISupportQtModule.h"
102 VTK_ABI_NAMESPACE_BEGIN
111 typedef QOpenGLWidget Superclass;
116 Qt::WindowFlags f = Qt::WindowFlags());
143 static QSurfaceFormat defaultFormat(
bool stereo_capable =
false);
151 void setEnableTouchEventProcessing(
bool enable);
162 void setEnableHiDPI(
bool enable);
171 void setUnscaledDPI(
int);
189 void setCustomDevicePixelRatio(
double cdpr);
191 double effectiveDevicePixelRatio()
const;
198 void setDefaultCursor(
const QCursor& cursor);
217 virtual void cleanupContext();
222 bool event(QEvent* evt)
override;
223 void initializeGL()
override;
224 void paintGL()
override;
232 bool EnableTouchEventProcessing =
true;
235 double CustomDevicePixelRatio;
236 QCursor DefaultCursor;
239 VTK_ABI_NAMESPACE_END
an interactor for QVTKOpenGLNativeWidget (and QVTKWiget).
platform independent render window
create a window for renderers to draw into
Helper to manage Qt context and other OpenGL components.