vtkPVKeyFrame.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
14 #ifndef vtkPVKeyFrame_h
15 #define vtkPVKeyFrame_h
16 
17 #include "vtkObject.h"
18 #include "vtkRemotingAnimationModule.h" // needed for export macro
19 
20 class vtkPVKeyFrameInternals;
21 class vtkPVAnimationCue;
22 struct vtkClientServerID;
23 
25 {
26 public:
27  vtkTypeMacro(vtkPVKeyFrame, vtkObject);
28  void PrintSelf(ostream& os, vtkIndent indent) override;
29  static vtkPVKeyFrame* New();
30 
32 
38  vtkSetMacro(KeyTime, double);
39  vtkGetMacro(KeyTime, double);
41 
43 
48  virtual void SetKeyValue(double val) { this->SetKeyValue(0, val); }
49  virtual void SetKeyValue(unsigned int index, double val);
50  double GetKeyValue() { return this->GetKeyValue(0); }
51  double GetKeyValue(unsigned int index);
53 
57  virtual void RemoveAllKeyValues();
58 
60 
63  unsigned int GetNumberOfKeyValues();
64  virtual void SetNumberOfKeyValues(unsigned int num);
66 
72  virtual void UpdateValue(double currenttime, vtkPVAnimationCue* cue, vtkPVKeyFrame* next);
73 
74 protected:
75  vtkPVKeyFrame();
76  ~vtkPVKeyFrame() override;
77 
78  double KeyTime;
79  vtkPVKeyFrameInternals* Internals;
80 
81 private:
82  vtkPVKeyFrame(const vtkPVKeyFrame&) = delete;
83  void operator=(const vtkPVKeyFrame&) = delete;
84 };
85 
86 #endif
proxy for vtkAnimationCue.
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
next
#define VTKREMOTINGANIMATION_EXPORT
Base class for key frames.
Definition: vtkPVKeyFrame.h:24
virtual void SetKeyValue(double val)
Get/Set the animated value at this key frame.
Definition: vtkPVKeyFrame.h:48
vtkPVKeyFrameInternals * Internals
Definition: vtkPVKeyFrame.h:79
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:50