vtkPVCameraCueManipulator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVCameraCueManipulator.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 =========================================================================*/
28 #ifndef vtkPVCameraCueManipulator_h
29 #define vtkPVCameraCueManipulator_h
30 
31 #include "vtkCameraInterpolator.h" // needed for interpolation enum
33 #include "vtkRemotingAnimationModule.h" //needed for exports
34 
35 class vtkSMProxy;
36 
38 {
39 public:
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
44  enum Modes
45  {
48  FOLLOW_DATA
49  };
50 
52 
64  vtkSetClampMacro(Mode, int, CAMERA, FOLLOW_DATA);
65  vtkGetMacro(Mode, int);
67 
69 
72  vtkSetClampMacro(InterpolationMode, int, vtkCameraInterpolator::INTERPOLATION_TYPE_LINEAR,
74  vtkGetMacro(InterpolationMode, int);
76 
81  void SetDataSourceProxy(vtkSMProxy* dataSourceProxy);
82 
83 protected:
85  ~vtkPVCameraCueManipulator() override;
86 
87  int Mode;
89 
90  void Initialize(vtkPVAnimationCue*) override;
91  void Finalize(vtkPVAnimationCue*) override;
96  void UpdateValue(double currenttime, vtkPVAnimationCue* cueproxy) override;
97 
100 
101 private:
103  void operator=(const vtkPVCameraCueManipulator&) = delete;
104 };
105 
106 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
void Finalize(vtkPVAnimationCue *) override
This method is called when the AnimationCue's EndAnimationCueEvent is triggered.
void UpdateValue(double currenttime, vtkPVAnimationCue *cueproxy) override
This updates the values based on currenttime.
proxy for vtkAnimationCue.
animation manipulator that uses keyframes to generate the animation.
vtkCameraInterpolator * CameraInterpolator
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:152
#define VTKREMOTINGANIMATION_EXPORT
void Initialize(vtkPVAnimationCue *) override
This method is called when the AnimationCue's StartAnimationCueEvent is triggered, to let the animation manipulator know that the cue has been restarted.
static vtkPVKeyFrameCueManipulator * New()