/usr/include/paraview/vtkPVCameraCueManipulator.h is in paraview-dev 5.0.1+dfsg1-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | /*=========================================================================
Program: ParaView
Module: vtkPVCameraCueManipulator.h
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// .NAME vtkSMCameraManipulatorProxy - Manipulator for Camera animation.
// .SECTION Description
// This is the manipulator for animating camera.
// Unlike the base class, interpolation is not done by the Keyframe objects.
// Instead, this class does the interpolation using the values in
// the keyframe objects. All the keyframes added to a
// vtkSMCameraManipulatorProxy must be vtkSMCameraKeyFrameProxy.
// Like all animation proxies, this is a client side only proxy with no
// VTK objects created on the server side.
#ifndef vtkPVCameraCueManipulator_h
#define vtkPVCameraCueManipulator_h
#include "vtkPVAnimationModule.h" //needed for exports
#include "vtkPVKeyFrameCueManipulator.h"
class vtkCameraInterpolator;
class vtkSMProxy;
class VTKPVANIMATION_EXPORT vtkPVCameraCueManipulator : public vtkPVKeyFrameCueManipulator
{
public:
static vtkPVCameraCueManipulator* New();
vtkTypeMacro(vtkPVCameraCueManipulator, vtkPVKeyFrameCueManipulator);
void PrintSelf(ostream& os, vtkIndent indent);
//BTX
enum Modes
{
CAMERA,
PATH,
FOLLOW_DATA
};
//ETX
// Description:
// This manipulator has three modes:
// \li CAMERA - the traditional mode using vtkCameraInterpolator where camera
// values are directly interpolated.
// \li PATH - the easy-to-use path based interpolation where the camera
// position/camera focal point paths can be explicitly specified.
// We may eventually deprecate CAMERA mode since it may run out of usability
// as PATH mode matures. So the code precariously meanders between the two
// right now, but deprecating the old should help clean that up.
// \li FOLLOW_DATA - the camera will follow the data set with the
// SetDataSourceProxy() method.
vtkSetClampMacro(Mode, int, CAMERA, FOLLOW_DATA);
vtkGetMacro(Mode, int);
// Description:
// Set the data soruce proxy. This is used when in the FOLLOW_DATA mode. The
// camera will track the data refered to by the data source proxy.
void SetDataSourceProxy(vtkSMProxy *dataSourceProxy);
protected:
vtkPVCameraCueManipulator();
~vtkPVCameraCueManipulator();
int Mode;
virtual void Initialize(vtkPVAnimationCue*);
virtual void Finalize(vtkPVAnimationCue*);
// Description:
// This updates the values based on currenttime.
// currenttime is normalized to the time range of the Cue.
virtual void UpdateValue(double currenttime,
vtkPVAnimationCue* cueproxy);
vtkCameraInterpolator* CameraInterpolator;
vtkSMProxy* DataSourceProxy;
private:
vtkPVCameraCueManipulator(const vtkPVCameraCueManipulator&); // Not implemented.
void operator=(const vtkPVCameraCueManipulator&); // Not implemented.
};
#endif
|