Skip to content
Snippets Groups Projects
Verified Commit d5a9df63 authored by Sankhesh Jhaveri's avatar Sankhesh Jhaveri :speech_balloon:
Browse files

QtQuick: Provide a render scheduler on the QQuickVTKItem

The public method `scheduleRender` can be invoked any time the vtk view
needs to be refreshed.
parent ed6c6e04
Branches
Tags
No related merge requests found
......@@ -122,9 +122,18 @@ public:
void dispatch_async(std::function<void(vtkRenderWindow* renderWindow, vtkUserData userData)> f);
///@}
protected:
/**
* Schedules an update on the vtkRenderWindow encapsulated in this item
*
* This function triggers a render on the VTK render window and ensures that the render happens on
* the QML render thread.
*
* \note This public method can be invoked after updating a VTK pipeline parameter
* programmatically to update the item.
*/
void scheduleRender();
protected:
bool event(QEvent*) override;
QSGNode* updatePaintNode(QSGNode*, UpdatePaintNodeData*) override;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment