ParaView
vtkRealtimeAnimationPlayer.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkRealtimeAnimationPlayer.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
21 #ifndef vtkRealtimeAnimationPlayer_h
22 #define vtkRealtimeAnimationPlayer_h
23 
24 #include "vtkAnimationPlayer.h"
25 #include "vtkPVAnimationModule.h" // needed for export macro
26 
27 class vtkTimerLog;
28 class VTKPVANIMATION_EXPORT vtkRealtimeAnimationPlayer : public vtkAnimationPlayer
29 {
30 public:
31  static vtkRealtimeAnimationPlayer* New();
33  void PrintSelf(ostream& os, vtkIndent indent);
34 
36 
39  vtkGetMacro(Duration, unsigned long);
40  vtkSetMacro(Duration, unsigned long);
42 
43 protected:
46 
47  virtual void StartLoop(double, double, double*);
48  virtual void EndLoop() {}
49 
53  virtual double GetNextTime(double currentime);
54 
55  virtual double GoToNext(double start, double end, double currenttime);
56  virtual double GoToPrevious(double start, double end, double currenttime);
57 
58  unsigned long Duration;
59  double StartTime;
60  double EndTime;
61  double ShiftTime;
62  double Factor;
63  vtkTimerLog* Timer;
64 
65 private:
66  vtkRealtimeAnimationPlayer(const vtkRealtimeAnimationPlayer&) VTK_DELETE_FUNCTION;
67  void operator=(const vtkRealtimeAnimationPlayer&) VTK_DELETE_FUNCTION;
68 };
69 
70 #endif
virtual double GetNextTime(double currentime)=0
Return the next time given the current time.
Abstract superclass for an animation player.
Animation player that plays in real time.
virtual void StartLoop(double starttime, double endtime, double *playbackWindow)=0
void PrintSelf(ostream &os, vtkIndent indent)
void GoToPrevious()
Take animation scene to previous frame.
void GoToNext()
Take the animation scene to next frame.