VTK
dox/Rendering/Core/vtkPointPicker.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkPointPicker.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 __vtkPointPicker_h
00036 #define __vtkPointPicker_h
00037 
00038 #include "vtkRenderingCoreModule.h" // For export macro
00039 #include "vtkPicker.h"
00040 
00041 class VTKRENDERINGCORE_EXPORT vtkPointPicker : public vtkPicker
00042 {
00043 public:
00044   static vtkPointPicker *New();
00045   vtkTypeMacro(vtkPointPicker,vtkPicker);
00046   void PrintSelf(ostream& os, vtkIndent indent);
00047 
00049 
00050   vtkGetMacro(PointId, vtkIdType);
00052 
00053 protected:
00054   vtkPointPicker();
00055   ~vtkPointPicker() {}
00056 
00057   vtkIdType PointId; //picked point
00058 
00059   double IntersectWithLine(double p1[3], double p2[3], double tol,
00060                           vtkAssemblyPath *path, vtkProp3D *p,
00061                           vtkAbstractMapper3D *m);
00062   void Initialize();
00063 
00064 private:
00065   vtkPointPicker(const vtkPointPicker&);  // Not implemented.
00066   void operator=(const vtkPointPicker&);  // Not implemented.
00067 };
00068 
00069 #endif
00070 
00071