VTK
dox/Rendering/Core/vtkPropPicker.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkPropPicker.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 =========================================================================*/
00035 #ifndef __vtkPropPicker_h
00036 #define __vtkPropPicker_h
00037 
00038 #include "vtkRenderingCoreModule.h" // For export macro
00039 #include "vtkAbstractPropPicker.h"
00040 
00041 class vtkProp;
00042 class vtkWorldPointPicker;
00043 
00044 class VTKRENDERINGCORE_EXPORT vtkPropPicker : public vtkAbstractPropPicker
00045 {
00046 public:
00047   static vtkPropPicker *New();
00048 
00049   vtkTypeMacro(vtkPropPicker, vtkAbstractPropPicker);
00050   void PrintSelf(ostream& os, vtkIndent indent);
00051 
00056   int PickProp(double selectionX, double selectionY, vtkRenderer *renderer);
00057 
00059 
00061   int PickProp(double selectionX, double selectionY, vtkRenderer *renderer,
00062                vtkPropCollection* pickfrom);
00064 
00066 
00067   int Pick(double selectionX, double selectionY, double selectionZ,
00068            vtkRenderer *renderer);
00069   int Pick(double selectionPt[3], vtkRenderer *renderer)
00070     { return this->Pick( selectionPt[0],
00071                          selectionPt[1], selectionPt[2], renderer); }
00073 
00074 protected:
00075   vtkPropPicker();
00076   ~vtkPropPicker();
00077 
00078   void Initialize();
00079 
00080   vtkPropCollection* PickFromProps;
00081 
00082   // Used to get x-y-z pick position
00083   vtkWorldPointPicker *WorldPointPicker;
00084 private:
00085   vtkPropPicker(const vtkPropPicker&);  // Not implemented.
00086   void operator=(const vtkPropPicker&);  // Not implemented.
00087 };
00088 
00089 #endif