8 #ifndef QQuickVTKItem_h
9 #define QQuickVTKItem_h
11 #include <QtQuick/QQuickItem>
13 #include <QtCore/QScopedPointer>
17 #include "vtkGUISupportQtQuickModule.h"
20 VTK_ABI_NAMESPACE_BEGIN
25 class QQuickVTKItemPrivate;
43 static void setGraphicsApi();
74 Q_UNUSED(renderWindow)
return {};
97 Q_UNUSED(renderWindow);
134 void scheduleRender();
137 bool event(QEvent*)
override;
139 QSGNode* updatePaintNode(QSGNode*, UpdatePaintNodeData*)
override;
140 bool isTextureProvider()
const override;
141 QSGTextureProvider* textureProvider()
const override;
142 void releaseResources()
override;
145 void invalidateSceneGraph();
150 QScopedPointer<QQuickVTKItemPrivate> _d_ptr;
153 VTK_ABI_NAMESPACE_END
154 #endif // QQuickVTKItem_h
virtual void destroyingVTK(vtkRenderWindow *renderWindow, vtkUserData userData)
At any moment the QML SceneGraph can decide to delete the underlying QSGNode.
abstract base class for most VTK objects
virtual vtkUserData initializeVTK(vtkRenderWindow *renderWindow)
This is where the VTK initializiation should be done including creating a pipeline and attaching it t...
Hold a reference to a vtkObjectBase instance.
create a window for renderers to draw into
QQuickItem that manages a VTK rendering in the QML scenegraph.