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

vtkPointPicker.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkPointPicker.h,v $
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 =========================================================================*/
00047 #ifndef __vtkPointPicker_h
00048 #define __vtkPointPicker_h
00049 
00050 #include "vtkPicker.h"
00051 
00052 class VTK_RENDERING_EXPORT vtkPointPicker : public vtkPicker
00053 {
00054 public:
00055   static vtkPointPicker *New();
00056   vtkTypeRevisionMacro(vtkPointPicker,vtkPicker);
00057   void PrintSelf(ostream& os, vtkIndent indent);
00058 
00060 
00061   vtkGetMacro(PointId, vtkIdType);
00063 
00064 protected:
00065   vtkPointPicker();
00066   ~vtkPointPicker() {};
00067 
00068   vtkIdType PointId; //picked point
00069 
00070   double IntersectWithLine(double p1[3], double p2[3], double tol, 
00071                           vtkAssemblyPath *path, vtkProp3D *p, 
00072                           vtkAbstractMapper3D *m);
00073   void Initialize();
00074 
00075 private:
00076   vtkPointPicker(const vtkPointPicker&);  // Not implemented.
00077   void operator=(const vtkPointPicker&);  // Not implemented.
00078 };
00079 
00080 #endif
00081 
00082