VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkInteractorStyleRubberBandZoom.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00027 #ifndef __vtkInteractorStyleRubberBandZoom_h 00028 #define __vtkInteractorStyleRubberBandZoom_h 00029 00030 #include "vtkInteractionStyleModule.h" // For export macro 00031 #include "vtkInteractorStyle.h" 00032 00033 class vtkUnsignedCharArray; 00034 00035 class VTKINTERACTIONSTYLE_EXPORT vtkInteractorStyleRubberBandZoom : public vtkInteractorStyle 00036 { 00037 public: 00038 static vtkInteractorStyleRubberBandZoom *New(); 00039 vtkTypeMacro(vtkInteractorStyleRubberBandZoom, vtkInteractorStyle); 00040 void PrintSelf(ostream& os, vtkIndent indent); 00041 00043 00044 virtual void OnMouseMove(); 00045 virtual void OnLeftButtonDown(); 00046 virtual void OnLeftButtonUp(); 00048 00049 protected: 00050 vtkInteractorStyleRubberBandZoom(); 00051 ~vtkInteractorStyleRubberBandZoom(); 00052 00053 virtual void Zoom(); 00054 00055 int StartPosition[2]; 00056 int EndPosition[2]; 00057 00058 int Moving; 00059 00060 vtkUnsignedCharArray *PixelArray; 00061 00062 private: 00063 vtkInteractorStyleRubberBandZoom(const vtkInteractorStyleRubberBandZoom&); // Not implemented 00064 void operator=(const vtkInteractorStyleRubberBandZoom&); // Not implemented 00065 }; 00066 00067 #endif