vtkPVCameraKeyFrame.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVCameraKeyFrame.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 =========================================================================*/
22 #ifndef vtkPVCameraKeyFrame_h
23 #define vtkPVCameraKeyFrame_h
24 
25 #include "vtkPVKeyFrame.h"
26 #include "vtkRemotingAnimationModule.h" //needed for exports
27 
28 class vtkCamera;
30 class vtkPVAnimationCue;
31 
33 {
34 public:
35  static vtkPVCameraKeyFrame* New();
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
46  void UpdateValue(double currenttime, vtkPVAnimationCue* cue, vtkPVKeyFrame* next) override;
47 
48  // Overridden, since these methods are not supported by this class.
49  void SetKeyValue(unsigned int, double) override {}
50  void SetKeyValue(double) override {}
51  virtual double GetKeyValue(unsigned int) { return 0; }
52 
54 
57  vtkGetObjectMacro(Camera, vtkCamera);
59 
61 
64  void SetPosition(double x, double y, double z);
65  void SetFocalPoint(double x, double y, double z);
66  void SetViewUp(double x, double y, double z);
67  void SetViewAngle(double angle);
68  void SetParallelScale(double scale);
70 
72 
75  void AddPositionPathPoint(double x, double y, double z);
76  void ClearPositionPath();
77  void AddFocalPathPoint(double x, double y, double z);
78  void ClearFocalPath();
79  void SetFocalPointMode(int val);
80  void SetPositionMode(int val);
81  void SetClosedFocalPath(bool val);
82  void SetClosedPositionPath(bool val);
84 
85 protected:
87  ~vtkPVCameraKeyFrame() override;
88 
91 
92 private:
94  void operator=(const vtkPVCameraKeyFrame&) = delete;
95 };
96 
97 #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:36
virtual double GetKeyValue(unsigned int)
scale