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)
98 Q_UNUSED(renderWindow);
135 void scheduleRender();
163 Q_INVOKABLE
void pinchHandlerRotate(
const QPointF&
position,
double delta);
164 Q_INVOKABLE
void pinchHandlerScale(
const QPointF&
position,
double delta);
165 Q_INVOKABLE
void pinchHandlerTranslate(
const QPointF&
position,
const QVector2D& delta);
169 bool event(QEvent*)
override;
171 QSGNode* updatePaintNode(QSGNode*, UpdatePaintNodeData*)
override;
172 bool isTextureProvider()
const override;
173 QSGTextureProvider* textureProvider()
const override;
174 void releaseResources()
override;
177 void invalidateSceneGraph();
182 QScopedPointer<QQuickVTKItemPrivate> _d_ptr;
185 VTK_ABI_NAMESPACE_END
186 #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 initialization should be done including creating a pipeline and attaching it to...
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.