VTK
|
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 "vtkInteractionStyleModule.h" // For export macro 00038 #include "vtkInteractorStyleTrackballCamera.h" 00039 00040 class vtkUnsignedCharArray; 00041 00042 class VTKINTERACTIONSTYLE_EXPORT vtkInteractorStyleRubberBandPick : public vtkInteractorStyleTrackballCamera 00043 { 00044 public: 00045 static vtkInteractorStyleRubberBandPick *New(); 00046 vtkTypeMacro(vtkInteractorStyleRubberBandPick, vtkInteractorStyleTrackballCamera); 00047 void PrintSelf(ostream& os, vtkIndent indent); 00048 00049 void StartSelect(); 00050 00052 00053 virtual void OnMouseMove(); 00054 virtual void OnLeftButtonDown(); 00055 virtual void OnLeftButtonUp(); 00056 virtual void OnChar(); 00058 00059 protected: 00060 vtkInteractorStyleRubberBandPick(); 00061 ~vtkInteractorStyleRubberBandPick(); 00062 00063 virtual void Pick(); 00064 void RedrawRubberBand(); 00065 00066 int StartPosition[2]; 00067 int EndPosition[2]; 00068 00069 int Moving; 00070 00071 vtkUnsignedCharArray *PixelArray; 00072 00073 int CurrentMode; 00074 00075 private: 00076 vtkInteractorStyleRubberBandPick(const vtkInteractorStyleRubberBandPick&); // Not implemented 00077 void operator=(const vtkInteractorStyleRubberBandPick&); // Not implemented 00078 }; 00079 00080 #endif