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) VTK_OVERRIDE;
42 
44 
47  void OnMouseMove() VTK_OVERRIDE;
48  void OnLeftButtonDown() VTK_OVERRIDE;
49  void OnLeftButtonUp() VTK_OVERRIDE;
51 
52 protected:
54  ~vtkInteractorStyleRubberBandZoom() VTK_OVERRIDE;
55 
56  void Zoom() VTK_OVERRIDE;
57 
58  int StartPosition[2];
59  int EndPosition[2];
60 
61  int Moving;
62 
63  vtkUnsignedCharArray *PixelArray;
64 
65 private:
66  vtkInteractorStyleRubberBandZoom(const vtkInteractorStyleRubberBandZoom&) VTK_DELETE_FUNCTION;
67  void operator=(const vtkInteractorStyleRubberBandZoom&) VTK_DELETE_FUNCTION;
68 };
69 
70 #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:39
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.