VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/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 
00054 
00056   vtkSetMacro(UseCells, int);
00057   vtkGetMacro(UseCells, int);
00058   vtkBooleanMacro(UseCells, int);
00060 
00061 protected:
00062   vtkPointPicker();
00063   ~vtkPointPicker() {}
00064 
00065   vtkIdType PointId; //picked point
00066   int UseCells;  // Use cell points vs. points directly
00067 
00068   double IntersectWithLine(double p1[3], double p2[3], double tol,
00069                           vtkAssemblyPath *path, vtkProp3D *p,
00070                           vtkAbstractMapper3D *m);
00071   void Initialize();
00072 
00073 private:
00074   vtkPointPicker(const vtkPointPicker&);  // Not implemented.
00075   void operator=(const vtkPointPicker&);  // Not implemented.
00076 };
00077 
00078 #endif
00079 
00080