ParaView
vtkSequenceAnimationPlayer.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSequenceAnimationPlayer.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 vtkSequenceAnimationPlayer_h
22 #define vtkSequenceAnimationPlayer_h
23 
24 #include "vtkAnimationPlayer.h"
25 #include "vtkPVAnimationModule.h" // needed for export macro
26 
27 class VTKPVANIMATION_EXPORT vtkSequenceAnimationPlayer : public vtkAnimationPlayer
28 {
29 public:
30  static vtkSequenceAnimationPlayer* New();
32  void PrintSelf(ostream& os, vtkIndent indent);
33 
34  vtkSetClampMacro(NumberOfFrames, int, 2, VTK_INT_MAX);
35  vtkGetMacro(NumberOfFrames, int);
36 
37 protected:
40 
41  virtual void StartLoop(double, double, double*);
42  virtual void EndLoop(){};
43 
47  virtual double GetNextTime(double currentime);
48 
49  virtual double GoToNext(double start, double end, double currenttime);
50  virtual double GoToPrevious(double start, double end, double currenttime);
51 
54  double StartTime;
55  double EndTime;
56  int FrameNo;
57 
58 private:
59  vtkSequenceAnimationPlayer(const vtkSequenceAnimationPlayer&) VTK_DELETE_FUNCTION;
60  void operator=(const vtkSequenceAnimationPlayer&) VTK_DELETE_FUNCTION;
61 };
62 
63 #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 *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.