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

Rendering/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 =========================================================================*/
00027 #ifndef __vtkInteractorStyleRubberBandZoom_h
00028 #define __vtkInteractorStyleRubberBandZoom_h
00029 
00030 #include "vtkInteractorStyle.h"
00031 
00032 class vtkUnsignedCharArray;
00033 
00034 class VTK_RENDERING_EXPORT vtkInteractorStyleRubberBandZoom : public vtkInteractorStyle
00035 {
00036 public:
00037   static vtkInteractorStyleRubberBandZoom *New();
00038   vtkTypeRevisionMacro(vtkInteractorStyleRubberBandZoom, vtkInteractorStyle);
00039   void PrintSelf(ostream& os, vtkIndent indent);
00040   
00042 
00043   virtual void OnMouseMove();
00044   virtual void OnLeftButtonDown();
00045   virtual void OnLeftButtonUp();
00047   
00048 protected:
00049   vtkInteractorStyleRubberBandZoom();
00050   ~vtkInteractorStyleRubberBandZoom();
00051   
00052   virtual void Zoom();
00053   
00054   int StartPosition[2];
00055   int EndPosition[2];
00056 
00057   int Moving;
00058 
00059   vtkUnsignedCharArray *PixelArray;
00060   
00061 private:
00062   vtkInteractorStyleRubberBandZoom(const vtkInteractorStyleRubberBandZoom&);  // Not implemented
00063   void operator=(const vtkInteractorStyleRubberBandZoom&);  // Not implemented
00064 };
00065 
00066 #endif