 |
VTK
9.1.0
|
Go to the documentation of this file.
129 #ifndef QQuickVTKRenderItem_h
130 #define QQuickVTKRenderItem_h
133 #include <QOpenGLFunctions>
134 #include <QQuickItem>
141 #include "vtkGUISupportQtQuickModule.h"
152 ,
protected QOpenGLFunctions
155 typedef QQuickItem Superclass;
251 #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
252 void geometryChanged(
const QRectF& newGeometry,
const QRectF& oldGeometry)
override;
254 void geometryChange(
const QRectF& newGeometry,
const QRectF& oldGeometry)
override;
263 #endif // QQuickVTKRenderItem_h
virtual void cleanup()
This is the function called on the QtQuick render thread when the scenegraph is invalidated.
virtual void removeWidgetByName(QString name)
Get/Remove widgets from the view by their object name.
virtual void addWidget(QQuickVTKInteractiveWidget *w)
Add/Remove widgets to/from the view.
virtual QQuickVTKInteractiveWidget * widgetByName(QString name) const
Get/Remove widgets from the view by their object name.
~QQuickVTKRenderItem()=default
virtual void sync()
This is the function called on the QtQuick render thread before the scenegraph state is synchronized.
virtual vtkSmartPointer< vtkImageData > captureScreenshot()
Capture a screenshot of the view.
QQuickVTKRenderItem(QQuickItem *parent=nullptr)
virtual void removeWidget(QQuickVTKInteractiveWidget *w)
Add/Remove widgets to/from the view.
virtual void handleWindowChanged(QQuickWindow *w)
virtual void init()
Initialize the graphics resources required for this render item.
QQuickItem subclass that manages the vtkRenderWindow and, in turn, the OpenGL context of the QML appl...
vtkRenderer * renderer() const
Get access to the renderer.
vtkNew< vtkRenderer > m_renderer
void geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry) override
topologically and geometrically regular array of data
virtual void setRenderWindow(QQuickVTKRenderWindow *w)
Set/Get the render window for the item.
QVector< QQuickVTKInteractiveWidget * > m_widgets
virtual void paint()
This is the function called on the QtQuick render thread right before the scenegraph is rendered.
QQuickItem subclass to render a VTK scene in a QtQuick/QML application.
QQuickVTKRenderWindow * renderWindow() const
Set/Get the render window for the item.
virtual void setViewport(const QRectF &rect)
Set the viewport for this item.
abstract specification for renderers
bool event(QEvent *ev) override