00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkInteractorStyleRubberBandPick.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 =========================================================================*/ 00034 #ifndef __vtkInteractorStyleRubberBandPick_h 00035 #define __vtkInteractorStyleRubberBandPick_h 00036 00037 #include "vtkInteractorStyleTrackballCamera.h" 00038 00039 class vtkUnsignedCharArray; 00040 00041 class VTK_RENDERING_EXPORT vtkInteractorStyleRubberBandPick : public vtkInteractorStyleTrackballCamera 00042 { 00043 public: 00044 static vtkInteractorStyleRubberBandPick *New(); 00045 vtkTypeMacro(vtkInteractorStyleRubberBandPick, vtkInteractorStyleTrackballCamera); 00046 void PrintSelf(ostream& os, vtkIndent indent); 00047 00048 void StartSelect(); 00049 00051 00052 virtual void OnMouseMove(); 00053 virtual void OnLeftButtonDown(); 00054 virtual void OnLeftButtonUp(); 00055 virtual void OnChar(); 00057 00058 protected: 00059 vtkInteractorStyleRubberBandPick(); 00060 ~vtkInteractorStyleRubberBandPick(); 00061 00062 virtual void Pick(); 00063 void RedrawRubberBand(); 00064 00065 int StartPosition[2]; 00066 int EndPosition[2]; 00067 00068 int Moving; 00069 00070 vtkUnsignedCharArray *PixelArray; 00071 00072 int CurrentMode; 00073 00074 private: 00075 vtkInteractorStyleRubberBandPick(const vtkInteractorStyleRubberBandPick&); // Not implemented 00076 void operator=(const vtkInteractorStyleRubberBandPick&); // Not implemented 00077 }; 00078 00079 #endif