ParaView
vtkPVAnimationCue.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVAnimationCue.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 =========================================================================*/
28 #ifndef vtkPVAnimationCue_h
29 #define vtkPVAnimationCue_h
30 
31 #include "vtkAnimationCue.h"
32 #include "vtkPVAnimationModule.h" // needed for export macro
33 
34 class vtkAnimationCue;
35 class vtkCommand;
37 
38 class VTKPVANIMATION_EXPORT vtkPVAnimationCue : public vtkAnimationCue
39 {
40 public:
41  vtkTypeMacro(vtkPVAnimationCue, vtkAnimationCue);
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
45 
50  vtkSetMacro(AnimatedElement, int);
51  vtkGetMacro(AnimatedElement, int);
53 
55 
61  void SetManipulator(vtkPVCueManipulator*);
62  vtkGetObjectMacro(Manipulator, vtkPVCueManipulator);
64 
66 
69  vtkSetMacro(Enabled, int);
70  vtkGetMacro(Enabled, int);
71  vtkBooleanMacro(Enabled, int);
73 
75 
81  virtual void BeginUpdateAnimationValues() = 0;
82  virtual void SetAnimationValue(int index, double value) = 0;
83  virtual void EndUpdateAnimationValues() = 0;
85 
87 
91  vtkSetMacro(UseAnimationTime, bool);
92  vtkGetMacro(UseAnimationTime, bool);
94 
96 
99  virtual void Initialize();
100  virtual void Tick(double currenttime, double deltatime, double clocktime);
101  virtual void Finalize();
103 
104 protected:
107 
109  virtual void StartCueInternal();
110  virtual void TickInternal(double currenttime, double deltatime, double clocktime);
111  virtual void EndCueInternal();
113 
115 
116  unsigned long ObserverID;
119  int Enabled;
120 
121  vtkAnimationCue* AnimationCue;
123 
124 private:
125  vtkPVAnimationCue(const vtkPVAnimationCue&) VTK_DELETE_FUNCTION;
126  void operator=(const vtkPVAnimationCue&) VTK_DELETE_FUNCTION;
127 };
128 
129 #endif
proxy for vtkAnimationCue.
vtkSMAnimationSceneProxy observe vtkCommand::ModifiedEvent on the client-side VTK-object to call Upda...
vtkPVCueManipulator * Manipulator
unsigned long ObserverID
vtkAnimationCue * AnimationCue
abstract proxy for manipulators used in animation.