Skip to content
Snippets Groups Projects
Commit f3a28677 authored by Nick Laurenson's avatar Nick Laurenson
Browse files

[fix] Next Frame doesn't jump to t+1s

parent c621bdb8
No related branches found
No related tags found
1 merge request!345VCR fix
Pipeline #282231 passed
Pipeline: LidarView

#282232

    ......@@ -239,6 +239,22 @@ void lqPlayerControlsController::setSceneTime(double time)
    this->Scene->setAnimationTime(time);
    }
    //-----------------------------------------------------------------------------
    void lqPlayerControlsController::onNextFrame()
    {
    // need to change the mode as in realtime next frame is actually t = t+1s
    SetProperty(this->Scene, "PlayMode", vtkAnimationScene::PLAYMODE_SEQUENCE);
    this->Scene->getProxy()->InvokeCommand("GoToNext");
    }
    //-----------------------------------------------------------------------------
    void lqPlayerControlsController::onPreviousFrame()
    {
    // need to change the mode as in realtime previous frame is actually t = t-1s
    SetProperty(this->Scene, "PlayMode", vtkAnimationScene::PLAYMODE_SEQUENCE);
    this->Scene->getProxy()->InvokeCommand("GoToPrevious");
    }
    //-----------------------------------------------------------------------------
    void lqPlayerControlsController::setPlayMode(double speed){
    if(!this->Scene)
    ......
    ......@@ -72,6 +72,9 @@ public slots:
    void onSeekFrame(int index);
    void onSeekTime (double time);
    void onPreviousFrame(); // cannot override as the method is not virtual, but not needed in our case
    void onNextFrame(); // cannot override as the method is not virtual, but not needed in our case
    Q_SIGNALS:
    void speedChange(double); // Signal speed has changed
    void frameRanges(int, int); // Tirggered alongside VCR original 'TimeRanges'
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment