/usr/include/paraview/vtkPVJoystickFly.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 | /*=========================================================================
Program: ParaView
Module: vtkPVJoystickFly.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 vtkPVJoystickFly - Fly camera towards or away from the object
// .SECTION Description
// vtkPVJoystickFly allows the user to interactively manipulate the
// camera, the viewpoint of the scene.
#ifndef vtkPVJoystickFly_h
#define vtkPVJoystickFly_h
#include "vtkCameraManipulator.h"
#include "vtkPVVTKExtensionsRenderingModule.h" // needed for export macro
class vtkRenderer;
class VTKPVVTKEXTENSIONSRENDERING_EXPORT vtkPVJoystickFly : public vtkCameraManipulator
{
public:
vtkTypeMacro(vtkPVJoystickFly, vtkCameraManipulator);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Event bindings controlling the effects of pressing mouse buttons
// or moving the mouse.
virtual void OnMouseMove(int x, int y, vtkRenderer *ren,
vtkRenderWindowInteractor *rwi);
virtual void OnButtonDown(int x, int y, vtkRenderer *ren,
vtkRenderWindowInteractor *rwi);
virtual void OnButtonUp(int x, int y, vtkRenderer *ren,
vtkRenderWindowInteractor *rwi);
// Description:
// Set and get the speed of flying.
vtkSetClampMacro(FlySpeed, double, 1, 30);
vtkGetMacro(FlySpeed, double);
protected:
vtkPVJoystickFly();
~vtkPVJoystickFly();
int In;
int FlyFlag;
double FlySpeed;
double Scale;
double LastRenderTime;
double CameraXAxis[3];
double CameraYAxis[3];
double CameraZAxis[3];
void Fly(vtkRenderer* ren, vtkRenderWindowInteractor *rwi,
double scale, double speed);
void ComputeCameraAxes(vtkRenderer*);
vtkPVJoystickFly(const vtkPVJoystickFly&); // Not implemented
void operator=(const vtkPVJoystickFly&); // Not implemented
};
#endif
|