vtkPVCameraKeyFrame.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
10 #ifndef vtkPVCameraKeyFrame_h
11 #define vtkPVCameraKeyFrame_h
12 
13 #include "vtkPVKeyFrame.h"
14 #include "vtkRemotingAnimationModule.h" //needed for exports
15 
16 class vtkCamera;
18 class vtkPVAnimationCue;
19 
21 {
22 public:
23  static vtkPVCameraKeyFrame* New();
25  void PrintSelf(ostream& os, vtkIndent indent) override;
26 
34  void UpdateValue(double currenttime, vtkPVAnimationCue* cue, vtkPVKeyFrame* next) override;
35 
36  // Overridden, since these methods are not supported by this class.
37  void SetKeyValue(unsigned int, double) override {}
38  void SetKeyValue(double) override {}
39  virtual double GetKeyValue(unsigned int) { return 0; }
40 
42 
45  vtkGetObjectMacro(Camera, vtkCamera);
47 
49 
52  void SetPosition(double x, double y, double z);
53  void SetFocalPoint(double x, double y, double z);
54  void SetViewUp(double x, double y, double z);
55  void SetViewAngle(double angle);
56  void SetParallelScale(double scale);
58 
60 
63  void AddPositionPathPoint(double x, double y, double z);
64  void ClearPositionPath();
65  void AddFocalPathPoint(double x, double y, double z);
66  void ClearFocalPath();
67  void SetFocalPointMode(int val);
68  void SetPositionMode(int val);
69  void SetClosedFocalPath(bool val);
70  void SetClosedPositionPath(bool val);
72 
73 protected:
75  ~vtkPVCameraKeyFrame() override;
76 
79 
80 private:
82  void operator=(const vtkPVCameraKeyFrame&) = delete;
83 };
84 
85 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
proxy for vtkAnimationCue.
static vtkPVKeyFrame * New()
void SetKeyValue(unsigned int, double) override
Get/Set the animated value at this key frame.
void SetKeyValue(double) override
Get/Set the animated value at this key frame.
virtual void UpdateValue(double currenttime, vtkPVAnimationCue *cue, vtkPVKeyFrame *next)
This method will do the actual interpolation.
vtkCameraInterpolator2 * Interpolator
Special key frame for animating Camera.
#define VTKREMOTINGANIMATION_EXPORT
Base class for key frames.
Definition: vtkPVKeyFrame.h:24
virtual double GetKeyValue(unsigned int)
scale