Using custom animation play mode in LidarView
- Nov 26, 2020
-
-
Nicolas Cadart authored
Going previous/next frame changes animation mode to 'Snap To Timesteps'. This will set the speed factor text to 'All frames'. Currently, user has to set back themselves the desired speed factor using the combo box. This commit restores previous animation play mode after having snaped to previous/next frame, so that user does not have to set it themselves again using the speed factor combo box. Also, if we are in 'Real Time' play mode with for example a speed factor 'x5', and if we click Next frame, the speed factor will blink to 'All frames' before going back to 'x5'. As this blink is noisy, we block all animations signals to keep it unchanged during operation.
-
Nicolas Cadart authored
Changing speed factor using combo box may lead to animation play mode change. However, if user changes manually the animation play mode, it may be contradictory with the information displayed by the combo box. lqPlayerControlsToolbar now listens to animation play mode changes, and adapt the combo box display accordingly. Furthermore, when a new animations scene is set, lqPlayerControlsToolbar set its PlayMode accordingly with UI speed combo box.
-
Nicolas Cadart authored
Animation PlayMode and Duration were reset each time Play/Pause buttons were clicked. This prevented using general paraview animations by manually chosing animation settings. Now, the animation PlayMode and Duration is directly updated when the user selects a different playing speed, and Play/Pause buttons have trivial behavior of invoking Play/Pause commands. The animation Duration is also updated when timesteps range changes, e.g. when a new pcap is loaded. NOTE : When upgrading LVCore in your specific LidarView based application, you should consider removing the line `app.scene.UpdateAnimationUsingDataTimeSteps()` in function `applogic.openPCAP()`. Without this change, the speed mode will be set to 'All Frames' when a new pcap will be loaded. By removing this line, the speed mode and animation settings won't be changed, and will be kept as user set them before.
-