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

dox/Rendering/vtkPropPicker.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkPropPicker.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00039 #ifndef __vtkPropPicker_h 00040 #define __vtkPropPicker_h 00041 00042 #include "vtkAbstractPropPicker.h" 00043 00044 class vtkProp; 00045 class vtkWorldPointPicker; 00046 00047 class VTK_RENDERING_EXPORT vtkPropPicker : public vtkAbstractPropPicker 00048 { 00049 public: 00050 static vtkPropPicker *New(); 00051 00052 vtkTypeRevisionMacro(vtkPropPicker,vtkAbstractPropPicker); 00053 void PrintSelf(ostream& os, vtkIndent indent); 00054 00059 int PickProp(float selectionX, float selectionY, vtkRenderer *renderer); 00060 00062 00064 int PickProp(float selectionX, float selectionY, vtkRenderer *renderer, 00065 vtkPropCollection* pickfrom); 00067 00069 00070 int Pick(float selectionX, float selectionY, float selectionZ, 00071 vtkRenderer *renderer); 00072 int Pick(float selectionPt[3], vtkRenderer *renderer) 00073 { return this->Pick( selectionPt[0], 00074 selectionPt[1], selectionPt[2], renderer); }; 00076 00077 protected: 00078 vtkPropPicker(); 00079 ~vtkPropPicker(); 00080 00081 void Initialize(); 00082 00083 vtkPropCollection* PickFromProps; 00084 00085 // Used to get x-y-z pick position 00086 vtkWorldPointPicker *WorldPointPicker; 00087 private: 00088 vtkPropPicker(const vtkPropPicker&); // Not implemented. 00089 void operator=(const vtkPropPicker&); // Not implemented. 00090 }; 00091 00092 #endif 00093 00094