VTK
vtkInteractorStyleRubberBandZoom.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkInteractorStyleRubberBandZoom.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=========================================================================*/
28#ifndef vtkInteractorStyleRubberBandZoom_h
29#define vtkInteractorStyleRubberBandZoom_h
30
31#include "vtkInteractionStyleModule.h" // For export macro
32#include "vtkInteractorStyle.h"
33
35
36class VTKINTERACTIONSTYLE_EXPORT vtkInteractorStyleRubberBandZoom : public vtkInteractorStyle
37{
38public:
41 void PrintSelf(ostream& os, vtkIndent indent);
42
44
47 virtual void OnMouseMove();
48 virtual void OnLeftButtonDown();
49 virtual void OnLeftButtonUp();
51
52protected:
55
56 virtual void Zoom();
57
58 int StartPosition[2];
59 int EndPosition[2];
60
61 int Moving;
62
64
65private:
67 void operator=(const vtkInteractorStyleRubberBandZoom&) VTK_DELETE_FUNCTION;
68};
69
70#endif
a simple class to control print indentation
Definition: vtkIndent.h:40
zoom in by amount indicated by rubber band box
virtual void OnMouseMove()
Event bindings.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
static vtkInteractorStyleRubberBandZoom * New()
provide event-driven interface to the rendering window (defines trackball mode)
dynamic, self-adjusting array of unsigned char