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 
36 class VTKINTERACTIONSTYLE_EXPORT vtkInteractorStyleRubberBandZoom : public vtkInteractorStyle
37 {
38 public:
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
44 
47  virtual void OnMouseMove();
48  virtual void OnLeftButtonDown();
49  virtual void OnLeftButtonUp();
51 
52 protected:
55 
56  virtual void Zoom();
57 
58  int StartPosition[2];
59  int EndPosition[2];
60 
61  int Moving;
62 
64 
65 private:
67  void operator=(const vtkInteractorStyleRubberBandZoom&) VTK_DELETE_FUNCTION;
68 };
69 
70 #endif
virtual void OnLeftButtonDown()
virtual void OnLeftButtonUp()
static vtkInteractorStyle * New()
This class must be supplied with a vtkRenderWindowInteractor wrapper or parent.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:39
dynamic, self-adjusting array of unsigned char
provide event-driven interface to the rendering window (defines trackball mode)
zoom in by amount indicated by rubber band box
virtual void OnMouseMove()
Generic event bindings can be overridden in subclasses.