MantisBT - ParaView
View Issue Details
0007831ParaView(No Category)public2008-10-19 10:322008-11-25 21:23
Stephane P 
Zhanping Liu 
normalminoralways
closedfixed 
 
 
ParaViS
0007831: sequence animation always restart at initial time
When a Sequence animation is paused, it restarts at the initial time, not at the paused time.
That is caused by the InitiliazeAnimation method of vtkSequenceAnimation class which resets the FrameNo to 0.

The state file reproduce this pb (you must activate sequence animation, and set the framenumber to 100 to see it)
No tags attached.
? sequenceAnimation.pvsm (53,236) 2008-10-19 10:32
https://www.vtk.org/Bug/file/6784/sequenceAnimation.pvsm
Issue History
2008-10-19 10:32Stephane PNew Issue
2008-10-19 10:32Stephane PFile Added: sequenceAnimation.pvsm
2008-10-28 14:19Utkarsh AyachitStatusbacklog => tabled
2008-10-28 14:19Utkarsh AyachitAssigned To => Zhanping Liu
2008-10-30 08:56Zhanping LiuNote Added: 0013986
2008-10-30 08:57Zhanping LiuStatustabled => @80@
2008-11-25 21:23Alan ScottNote Added: 0014191
2008-11-25 21:23Alan ScottStatus@80@ => closed
2008-11-25 21:23Alan ScottResolutionopen => fixed
2011-06-16 13:10Zack GalbreathCategory => (No Category)
2011-06-23 11:44Utkarsh AyachitProject => ParaViS

Notes
(0013986)
Zhanping Liu   
2008-10-30 08:56   
Bug 0007831 was fixed. The problem was due to vtkSequenceAnimationPlayer::StartLoop(). The old version has only two arguments, without considering the 'current' time at which an animation might be paused / stopped and from which it might be intended to be resumed subsequently. 'FrameNo' not only indicates the frame index, but also, in some cases, determines the time from which to resume an animation. In the old version, it is always set to 0 --- to start an animation from the very beginning.

In the new version, the 'current' time --- 'currenttime' (obtained from the 'scene' time) --- is used to determine the 'previous' frame index, next to which an animation is to be resumed. See line 34 to line 56 for the update.

To make this fix, some files were updated so as to be consistent with one another in terms of the signature of StartLoop().

     ( 1) vtkAnimationPlayer.h --- StartLoop()'s signature updated.
     ( 2) vtkAnimationPlayer.cxx --- Call to StartLoop() updated.

     ( 3) vtkSequenceAnimationPlayer.h ---StartLoop()'s signature updated.
     ( 4) vtkSequenceAnimationPlayer.cxx --- StartLoop() updated.

     ( 5) vtkRealTimeAnimationPlayer.h --- StartLoop()'s signature updated.
     ( 6) vtkRealTimeAnimationPlayer.cxx --- StartLoop()'s signature updated.

     ( 7) vtkTimeStepAnimationPlayer.h ---StartLoop()'s signature updated.
     ( 8) vtkTimeStepAnimationPlayer.cxx --- StartLoop()'s signature updated.

     ( 9) vtkCompositeAnimationPlayer.h --- StartLoop()'s signature updated.
     (10) vtkCompositeAnimationPlayer.cxx --- The signature of and call to StartLoop() updated.

      Thanks for reporting this bug.
(0014191)
Alan Scott   
2008-11-25 21:23   
Tested client/server. Fixed.