-
Notifications
You must be signed in to change notification settings - Fork 6
/
vtkPanCameraTool.h
59 lines (44 loc) · 1.58 KB
/
vtkPanCameraTool.h
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
/*=========================================================================
Program: ToolCursor
Module: vtkPanCameraTool.h
Copyright (c) 2010 David Gobbi
All rights reserved.
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 vtkPanCameraTool - Pan the camera in order to move the scene.
// .SECTION Description
// This class is used to pan the camera. The pan is achieved by moving
// the camera position and focal point together, not by slowly rotating
// the camera around its position.
#ifndef __vtkPanCameraTool_h
#define __vtkPanCameraTool_h
#include "vtkTool.h"
class vtkTransform;
class VTK_EXPORT vtkPanCameraTool : public vtkTool
{
public:
// Description:
// Instantiate the object.
static vtkPanCameraTool *New();
// Description:
// Standard vtkObject methods
vtkTypeMacro(vtkPanCameraTool,vtkTool);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// These are the methods that are called when the action takes place.
virtual void StartAction();
virtual void StopAction();
virtual void DoAction();
protected:
vtkPanCameraTool();
~vtkPanCameraTool();
double StartCameraFocalPoint[3];
double StartCameraPosition[3];
vtkTransform *Transform;
private:
vtkPanCameraTool(const vtkPanCameraTool&); //Not implemented
void operator=(const vtkPanCameraTool&); //Not implemented
};
#endif