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

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 =========================================================================*/
00051 #ifndef __vtkPropPicker_h
00052 #define __vtkPropPicker_h
00053 
00054 #include "vtkAbstractPropPicker.h"
00055 
00056 class vtkProp;
00057 class vtkWorldPointPicker;
00058 
00059 class VTK_RENDERING_EXPORT vtkPropPicker : public vtkAbstractPropPicker
00060 {
00061 public:
00062   static vtkPropPicker *New();
00063 
00064   vtkTypeRevisionMacro(vtkPropPicker,vtkAbstractPropPicker);
00065   void PrintSelf(ostream& os, vtkIndent indent);
00066 
00071   int PickProp(float selectionX, float selectionY, vtkRenderer *renderer);  
00072 
00074 
00076   int PickProp(float selectionX, float selectionY, vtkRenderer *renderer, 
00077                vtkPropCollection* pickfrom);  
00079 
00081 
00082   int Pick(float selectionX, float selectionY, float selectionZ, 
00083            vtkRenderer *renderer);  
00084   int Pick(float selectionPt[3], vtkRenderer *renderer)
00085     { return this->Pick( selectionPt[0], 
00086                          selectionPt[1], selectionPt[2], renderer); };  
00088 
00089 protected:
00090   vtkPropPicker();
00091   ~vtkPropPicker();
00092 
00093   void Initialize();
00094   
00095   vtkPropCollection* PickFromProps;
00096   
00097   // Used to get x-y-z pick position
00098   vtkWorldPointPicker *WorldPointPicker;
00099 private:
00100   vtkPropPicker(const vtkPropPicker&);  // Not implemented.
00101   void operator=(const vtkPropPicker&);  // Not implemented.
00102 };
00103 
00104 #endif
00105 
00106