Call scene update automatically after changed trajectories
Once we apply a change to the trajectories, we need to call the update function of the scene, such that our GraphicsItem
-overlays redraw themselves with the new data, in particular the TrackerItem
, but of course others are included as well.
Since all changes to trajectories have been bundled in PersonStorage
, we could send a signal on each trajectory change (potentially bundling framewise for automaitic recognition and tracking) and connect to that signal to update.
Then we do not need to remember to add this mScene->update()
or similar to each and every place that touches trajectories.
Similar things could be done for image changes, which also mandate an update (of ImageItem
only, so we could use a more direct connection; instead of a scene update)