ParaView
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 "vtkPVAnimationModule.h" //needed for exports
26 #include "vtkPVKeyFrame.h"
27 
28 class vtkCamera;
30 class vtkPVAnimationCue;
31 
32 class VTKPVANIMATION_EXPORT vtkPVCameraKeyFrame : public vtkPVKeyFrame
33 {
34 public:
35  static vtkPVCameraKeyFrame* New();
37  void PrintSelf(ostream& os, vtkIndent indent);
38 
46  virtual void UpdateValue(double currenttime, vtkPVAnimationCue* cue, vtkPVKeyFrame* next);
47 
48  // Overridden, since these methods are not supported by this class.
49  virtual void SetKeyValue(unsigned int, double) {}
50  virtual void SetKeyValue(double) {}
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:
88 
89  vtkCamera* Camera;
91 
92 private:
93  vtkPVCameraKeyFrame(const vtkPVCameraKeyFrame&) VTK_DELETE_FUNCTION;
94  void operator=(const vtkPVCameraKeyFrame&) VTK_DELETE_FUNCTION;
95 };
96 
97 #endif
virtual void SetKeyValue(unsigned int, double)
Get/Set the animated value at this key frame.
proxy for vtkAnimationCue.
static vtkPVKeyFrame * New()
virtual void UpdateValue(double currenttime, vtkPVAnimationCue *cue, vtkPVKeyFrame *next)
This method will do the actual interpolation.
virtual void SetKeyValue(double)
Get/Set the animated value at this key frame.
vtkCameraInterpolator2 * Interpolator
Special key frame for animating Camera.
Base class for key frames.
Definition: vtkPVKeyFrame.h:36
void PrintSelf(ostream &os, vtkIndent indent)
virtual double GetKeyValue(unsigned int)