116 #ifndef QQuickVTKRenderWindow_h
117 #define QQuickVTKRenderWindow_h
123 #include <QOpenGLFunctions>
125 #include <QQuickItem>
127 #include "vtkGUISupportQtQuickModule.h"
142 ,
protected QOpenGLFunctions
145 typedef QQuickItem Superclass;
169 static void setupGraphicsBackend();
189 virtual void mapToViewport(
const QRectF& rect,
double viewport[4]);
194 QPointer<QQuickVTKInteractorAdapter> interactorAdapter()
const;
213 virtual bool isInitialized()
const;
242 virtual void paint();
248 virtual void cleanup();
254 virtual void renderNow();
263 virtual void render();
266 virtual void handleWindowChanged(QQuickWindow* w);
271 bool m_initialized =
false;
274 bool m_screenshotScheduled =
false;
279 #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
280 void geometryChanged(
const QRectF& newGeometry,
const QRectF& oldGeometry)
override;
282 void geometryChange(
const QRectF& newGeometry,
const QRectF& oldGeometry)
override;
288 bool checkGraphicsBackend();
295 #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
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.
vtkNew< vtkWindowToImageFilter > m_screenshotFilter