VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Rendering
vtkInteractorStyleImage.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkInteractorStyleImage.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm 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
=========================================================================*/
49
#ifndef __vtkInteractorStyleImage_h
50
#define __vtkInteractorStyleImage_h
51
52
#include "
vtkInteractorStyleTrackballCamera.h
"
53
54
// Motion flags
55
56
#define VTKIS_WINDOW_LEVEL 1024
57
#define VTKIS_PICK 1025
58
59
class
VTK_RENDERING_EXPORT
vtkInteractorStyleImage
:
public
vtkInteractorStyleTrackballCamera
60
{
61
public
:
62
static
vtkInteractorStyleImage
*
New
();
63
vtkTypeMacro(
vtkInteractorStyleImage
,
vtkInteractorStyleTrackballCamera
);
64
void
PrintSelf
(ostream& os,
vtkIndent
indent);
65
67
68
vtkGetVector2Macro(WindowLevelStartPosition,
int
);
69
vtkGetVector2Macro(WindowLevelCurrentPosition,
int
);
71
73
75
virtual
void
OnMouseMove
();
76
virtual
void
OnLeftButtonDown
();
77
virtual
void
OnLeftButtonUp
();
78
virtual
void
OnRightButtonDown
();
79
virtual
void
OnRightButtonUp
();
81
83
virtual
void
OnChar
();
84
85
// These methods for the different interactions in different modes
86
// are overridden in subclasses to perform the correct motion. Since
87
// they might be called from OnTimer, they do not have mouse coord parameters
88
// (use interactor's GetEventPosition and GetLastEventPosition)
89
virtual
void
WindowLevel();
90
virtual
void
Pick();
91
92
// Interaction mode entry points used internally.
93
virtual
void
StartWindowLevel();
94
virtual
void
EndWindowLevel();
95
virtual
void
StartPick();
96
virtual
void
EndPick();
97
98
protected
:
99
vtkInteractorStyleImage
();
100
~
vtkInteractorStyleImage
();
101
102
int
WindowLevelStartPosition[2];
103
int
WindowLevelCurrentPosition[2];
104
105
private
:
106
vtkInteractorStyleImage
(
const
vtkInteractorStyleImage
&);
// Not implemented.
107
void
operator=(
const
vtkInteractorStyleImage
&);
// Not implemented.
108
};
109
110
#endif
Generated on Sun Sep 9 2012 13:03:44 for VTK by
1.8.1.2