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 
24 class VTKREMOTINGANIMATION_EXPORT vtkPVKeyFrame : public vtkObject
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
vtkObjectBase::operator=
void operator=(const vtkObjectBase &)
vtkPVKeyFrame::SetKeyValue
virtual void SetKeyValue(double val)
Get/Set the animated value at this key frame.
Definition: vtkPVKeyFrame.h:48
vtkClientServerID
Identifier for a ClientServer object.
Definition: vtkClientServerID.h:20
vtkObject::New
static vtkObject * New()
vtkPVKeyFrame
Definition: vtkPVKeyFrame.h:24
vtkObject
vtkPVAnimationCue
proxy for vtkAnimationCue.
Definition: vtkPVAnimationCue.h:26
vtkIndent
vtkPVKeyFrame::GetKeyValue
double GetKeyValue()
Get/Set the animated value at this key frame.
Definition: vtkPVKeyFrame.h:50
vtkObject.h
vtkObject::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
vtkPVKeyFrame::KeyTime
double KeyTime
Definition: vtkPVKeyFrame.h:78
vtkPVKeyFrame::Internals
vtkPVKeyFrameInternals * Internals
Definition: vtkPVKeyFrame.h:79