Keeps one worker viewport showing one document. More...
| Header: | #include <ViewportFeed> |
| Inherits: | QObject |
A worker viewport draws from data, never from the live model. A structural edit hands it a whole ConstructSnapshot, and a parameter edit hands it a WorkerSceneDelta that it applies in place with nothing compiled (construct-scene-evaluator §EV-A3). The feed decides which of the two an edit needs. It also turns a burst of edits into one hand-off per event-loop turn, numbers the snapshots, and turns a delta into a snapshot when a delta cannot carry the change.
These rules are the same for every worker viewport. They were members of ConstructShell until the definition editor's preview needed the same rules (construct-multi-document MD-38), so both use this class now.
The rules:
What differs per client is in Hooks: where the viewport and the document are, how the snapshot is built, and how an item is prepared for the worker. hooksFor() gives the plain answers.
GUI thread only.
See also SceneWorkerWidget and WorkerSceneDelta.