Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkInteractorStyleRubberBandZoom.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkInteractorStyleRubberBandZoom.h,v $
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 =========================================================================*/
00038 #ifndef __vtkInteractorStyleRubberBandZoom_h
00039 #define __vtkInteractorStyleRubberBandZoom_h
00040 
00041 #include "vtkInteractorStyle.h"
00042 
00043 class vtkUnsignedCharArray;
00044 
00045 class VTK_RENDERING_EXPORT vtkInteractorStyleRubberBandZoom : public vtkInteractorStyle
00046 {
00047 public:
00048   static vtkInteractorStyleRubberBandZoom *New();
00049   vtkTypeRevisionMacro(vtkInteractorStyleRubberBandZoom, vtkInteractorStyle);
00050   void PrintSelf(ostream& os, vtkIndent indent);
00051   
00053 
00054   virtual void OnMouseMove();
00055   virtual void OnLeftButtonDown();
00056   virtual void OnLeftButtonUp();
00058   
00059 protected:
00060   vtkInteractorStyleRubberBandZoom();
00061   ~vtkInteractorStyleRubberBandZoom();
00062   
00063   virtual void Zoom();
00064   
00065   int StartPosition[2];
00066   int EndPosition[2];
00067 
00068   int Moving;
00069 
00070   vtkUnsignedCharArray *PixelArray;
00071   
00072 private:
00073   vtkInteractorStyleRubberBandZoom(const vtkInteractorStyleRubberBandZoom&);  // Not implemented
00074   void operator=(const vtkInteractorStyleRubberBandZoom&);  // Not implemented
00075 };
00076 
00077 #endif