vtkPVKeyFrame.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVKeyFrame.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 =========================================================================*/
26 #ifndef vtkPVKeyFrame_h
27 #define vtkPVKeyFrame_h
28 
29 #include "vtkObject.h"
30 #include "vtkRemotingAnimationModule.h" // needed for export macro
31 
32 class vtkPVKeyFrameInternals;
33 class vtkPVAnimationCue;
34 struct vtkClientServerID;
35 
37 {
38 public:
39  vtkTypeMacro(vtkPVKeyFrame, vtkObject);
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41  static vtkPVKeyFrame* New();
42 
44 
50  vtkSetMacro(KeyTime, double);
51  vtkGetMacro(KeyTime, double);
53 
55 
60  virtual void SetKeyValue(double val) { this->SetKeyValue(0, val); }
61  virtual void SetKeyValue(unsigned int index, double val);
62  double GetKeyValue() { return this->GetKeyValue(0); }
63  double GetKeyValue(unsigned int index);
65 
69  virtual void RemoveAllKeyValues();
70 
72 
75  unsigned int GetNumberOfKeyValues();
76  virtual void SetNumberOfKeyValues(unsigned int num);
78 
84  virtual void UpdateValue(double currenttime, vtkPVAnimationCue* cue, vtkPVKeyFrame* next);
85 
86 protected:
87  vtkPVKeyFrame();
88  ~vtkPVKeyFrame() override;
89 
90  double KeyTime;
91  vtkPVKeyFrameInternals* Internals;
92 
93 private:
94  vtkPVKeyFrame(const vtkPVKeyFrame&) = delete;
95  void operator=(const vtkPVKeyFrame&) = delete;
96 };
97 
98 #endif
proxy for vtkAnimationCue.
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
next
#define VTKREMOTINGANIMATION_EXPORT
Base class for key frames.
Definition: vtkPVKeyFrame.h:36
virtual void SetKeyValue(double val)
Get/Set the animated value at this key frame.
Definition: vtkPVKeyFrame.h:60
vtkPVKeyFrameInternals * Internals
Definition: vtkPVKeyFrame.h:91
static vtkObject * New()
Identifier for a ClientServer object.
index
void operator=(const vtkObjectBase &)
double GetKeyValue()
Get/Set the animated value at this key frame.
Definition: vtkPVKeyFrame.h:62