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 "vtkRemotingAnimationModule.h" // needed for export macro
26 
27 class vtkTimerLog;
29 {
30 public:
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
36 
39  vtkGetMacro(Duration, unsigned long);
40  vtkSetMacro(Duration, unsigned long);
42 
43 protected:
45  ~vtkRealtimeAnimationPlayer() override;
46 
47  void StartLoop(double, double, double, double*) override;
48  void EndLoop() override {}
49 
53  double GetNextTime(double currentime) override;
54 
55  double GoToNext(double start, double end, double currenttime) override;
56  double GoToPrevious(double start, double end, double currenttime) override;
57 
58  unsigned long Duration;
59  double StartTime;
60  double EndTime;
61  double ShiftTime;
62  double Factor;
64 
65 private:
67  void operator=(const vtkRealtimeAnimationPlayer&) = delete;
68 };
69 
70 #endif
virtual double GetNextTime(double currentime)=0
Return the next time given the current time.
Abstract superclass for an animation player.
virtual void StartLoop(double starttime, double endtime, double curtime, double *playbackWindow)=0
Animation player that plays in real time.
void GoToPrevious()
Take animation scene to previous frame.
#define VTKREMOTINGANIMATION_EXPORT
void GoToNext()
Take the animation scene to next frame.
void PrintSelf(ostream &os, vtkIndent indent) override
static vtkObject * New()