VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Rendering
vtkInteractorStyleRubberBand3D.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkInteractorStyleRubberBand3D.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
=========================================================================*/
15
/*-------------------------------------------------------------------------
16
Copyright 2008 Sandia Corporation.
17
Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18
the U.S. Government retains certain rights in this software.
19
-------------------------------------------------------------------------*/
40
#ifndef __vtkInteractorStyleRubberBand3D_h
41
#define __vtkInteractorStyleRubberBand3D_h
42
43
#include "
vtkInteractorStyleTrackballCamera.h
"
44
45
class
vtkUnsignedCharArray
;
46
47
class
VTK_RENDERING_EXPORT
vtkInteractorStyleRubberBand3D
:
public
vtkInteractorStyleTrackballCamera
48
{
49
public
:
50
static
vtkInteractorStyleRubberBand3D
*
New
();
51
vtkTypeMacro(
vtkInteractorStyleRubberBand3D
,
vtkInteractorStyleTrackballCamera
);
52
void
PrintSelf
(ostream& os,
vtkIndent
indent);
53
54
virtual
void
OnLeftButtonDown
();
55
virtual
void
OnLeftButtonUp
();
56
virtual
void
OnMiddleButtonDown
();
57
virtual
void
OnMiddleButtonUp
();
58
virtual
void
OnRightButtonDown
();
59
virtual
void
OnRightButtonUp
();
60
virtual
void
OnMouseMove
();
61
virtual
void
OnMouseWheelForward
();
62
virtual
void
OnMouseWheelBackward
();
63
65
66
vtkSetMacro(RenderOnMouseMove,
bool
);
67
vtkGetMacro(RenderOnMouseMove,
bool
);
68
vtkBooleanMacro(RenderOnMouseMove,
bool
);
70
71
//BTX
73
74
enum
75
{
76
SELECT_NORMAL = 0,
77
SELECT_UNION = 1
78
};
79
//ETX
81
83
84
vtkGetMacro(Interaction,
int
);
86
87
//BTX
88
enum
89
{
90
NONE
,
91
PANNING
,
92
ZOOMING
,
93
ROTATING
,
94
SELECTING
95
};
96
//ETX
97
99
103
vtkGetVector2Macro(StartPosition,
int
);
104
vtkGetVector2Macro(EndPosition,
int
);
106
107
protected
:
108
vtkInteractorStyleRubberBand3D
();
109
~
vtkInteractorStyleRubberBand3D
();
110
111
// The interaction mode
112
int
Interaction
;
113
114
// Draws the selection rubber band
115
void
RedrawRubberBand();
116
117
// The end position of the selection
118
int
StartPosition[2];
119
120
// The start position of the selection
121
int
EndPosition[2];
122
123
// The pixel array for the rubber band
124
vtkUnsignedCharArray
*
PixelArray
;
125
126
// Whether to trigger a render when the mouse moves
127
bool
RenderOnMouseMove
;
128
129
private
:
130
vtkInteractorStyleRubberBand3D
(
const
vtkInteractorStyleRubberBand3D
&);
//Not implemented
131
void
operator=(
const
vtkInteractorStyleRubberBand3D
&);
// Not implemented
132
};
133
134
#endif
Generated on Fri Aug 2 2013 12:20:01 for VTK by
1.8.4