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 =========================================================================*/
25 #ifndef vtkInteractorStyleRubberBandZoom_h
26 #define vtkInteractorStyleRubberBandZoom_h
27 
28 #include "vtkInteractionStyleModule.h" // For export macro
29 #include "vtkInteractorStyle.h"
30 
32 
33 class VTKINTERACTIONSTYLE_EXPORT vtkInteractorStyleRubberBandZoom : public vtkInteractorStyle
34 {
35 public:
38  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
39 
41 
44  void OnMouseMove() VTK_OVERRIDE;
45  void OnLeftButtonDown() VTK_OVERRIDE;
46  void OnLeftButtonUp() VTK_OVERRIDE;
48 
49 protected:
51  ~vtkInteractorStyleRubberBandZoom() VTK_OVERRIDE;
52 
53  void Zoom() VTK_OVERRIDE;
54 
55  int StartPosition[2];
56  int EndPosition[2];
57 
58  int Moving;
59 
60  vtkUnsignedCharArray *PixelArray;
61 
62 private:
63  vtkInteractorStyleRubberBandZoom(const vtkInteractorStyleRubberBandZoom&) VTK_DELETE_FUNCTION;
64  void operator=(const vtkInteractorStyleRubberBandZoom&) VTK_DELETE_FUNCTION;
65 };
66 
67 #endif
static vtkInteractorStyle * New()
This class must be supplied with a vtkRenderWindowInteractor wrapper or parent.
a simple class to control print indentation
Definition: vtkIndent.h:33
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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.