104 #ifndef QQuickVTKRenderWindow_h
105 #define QQuickVTKRenderWindow_h
112 #include <QOpenGLFunctions>
114 #include <QQuickItem>
116 #include "vtkGUISupportQtQuickModule.h"
123 VTK_ABI_NAMESPACE_BEGIN
136 ,
protected QOpenGLFunctions
139 typedef QQuickItem Superclass;
163 static void setupGraphicsBackend();
183 virtual void mapToViewport(
const QRectF& rect,
double viewport[4]);
188 QPointer<QQuickVTKInteractorAdapter> interactorAdapter()
const;
207 virtual bool isInitialized()
const;
236 virtual void paint();
242 virtual void cleanup();
248 virtual void renderNow();
257 virtual void render();
260 virtual void handleWindowChanged(QQuickWindow* w);
265 bool m_initialized =
false;
268 bool m_screenshotScheduled =
false;
273 #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
274 void geometryChanged(
const QRectF& newGeometry,
const QRectF& oldGeometry)
override;
276 void geometryChange(
const QRectF& newGeometry,
const QRectF& oldGeometry)
override;
282 bool checkGraphicsBackend();
289 VTK_ABI_NAMESPACE_END
290 #endif // QQuickVTKRenderWindow_h
vtkNew< vtkRenderer > m_dummyRenderer
abstract specification for renderers
[QQuickItem] subclass that manages the vtkRenderWindow and, in turn, the OpenGL context of the QML ap...
vtkSmartPointer< vtkGenericOpenGLRenderWindow > m_renderWindow
#define VTK_DEPRECATED_IN_9_3_0(reason)
platform independent render window
QPointer< QQuickVTKInteractorAdapter > m_interactorAdapter
topologically and geometrically regular array of data
Use a vtkWindow as input to image pipeline.
create a window for renderers to draw into
Intermediate class that handles relaying Qt events to VTK.
QQuickItem that manages a VTK rendering in the QML scenegraph.
vtkNew< vtkWindowToImageFilter > m_screenshotFilter