11#include <QtQuick/QQuickItem>
13#include <QtCore/QScopedPointer>
17#include "vtkGUISupportQtQuickModule.h"
20VTK_ABI_NAMESPACE_BEGIN
25class QQuickVTKItemPrivate;
74 Q_UNUSED(renderWindow)
98 Q_UNUSED(renderWindow);
177 void invalidateSceneGraph();
182 QScopedPointer<QQuickVTKItemPrivate> _d_ptr;
QQuickItem that manages a VTK rendering in the QML scenegraph.
QQuickVTKItem(QQuickItem *parent=nullptr)
Q_INVOKABLE void pinchHandlerTranslate(const QPointF &position, const QVector2D &delta)
Individual slots for the three pinch handler signals in QML namely, translationChanged,...
QSGTextureProvider * textureProvider() const override
bool isTextureProvider() const override
void scheduleRender()
Schedules an update on the vtkRenderWindow encapsulated in this item.
virtual vtkUserData initializeVTK(vtkRenderWindow *renderWindow)
This is where the VTK initialization should be done including creating a pipeline and attaching it to...
void releaseResources() override
Q_INVOKABLE void pinchHandlerScale(const QPointF &position, double delta)
Individual slots for the three pinch handler signals in QML namely, translationChanged,...
QSGNode * updatePaintNode(QSGNode *, UpdatePaintNodeData *) override
~QQuickVTKItem() override
void dispatch_async(std::function< void(vtkRenderWindow *renderWindow, vtkUserData userData)> f)
This is the function that enqueues an async command that will be executed just before VTK renders.
bool event(QEvent *) override
virtual void destroyingVTK(vtkRenderWindow *renderWindow, vtkUserData userData)
At any moment the QML SceneGraph can decide to delete the underlying QSGNode.
static void setGraphicsApi()
Set up the graphics surface format and api.
Q_INVOKABLE void pinchHandlerRotate(const QPointF &position, double delta)
Individual slots for the three pinch handler signals in QML namely, translationChanged,...
abstract base class for most VTK objects
create a window for renderers to draw into
Hold a reference to a vtkObjectBase instance.