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 "vtkRemotingAnimationModule.h" // needed for export macro
26 
28 {
29 public:
32  void PrintSelf(ostream& os, vtkIndent indent) override;
33 
34  vtkSetClampMacro(NumberOfFrames, int, 2, VTK_INT_MAX);
35  vtkGetMacro(NumberOfFrames, int);
36 
37 protected:
39  ~vtkSequenceAnimationPlayer() override;
40 
41  void StartLoop(double, double, double, double*) override;
42  void EndLoop() override{};
43 
47  double GetNextTime(double currentime) override;
48 
49  double GoToNext(double start, double end, double currenttime) override;
50  double GoToPrevious(double start, double end, double currenttime) override;
51 
54  double StartTime;
55  double EndTime;
56  int FrameNo;
57 
58 private:
60  void operator=(const vtkSequenceAnimationPlayer&) = delete;
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 curtime, double *playbackWindow)=0
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()