VTK
vtkPointPicker.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPointPicker.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
35 #ifndef __vtkPointPicker_h
36 #define __vtkPointPicker_h
37 
38 #include "vtkPicker.h"
39 
41 {
42 public:
43  static vtkPointPicker *New();
44  vtkTypeMacro(vtkPointPicker,vtkPicker);
45  void PrintSelf(ostream& os, vtkIndent indent);
46 
48 
49  vtkGetMacro(PointId, vtkIdType);
51 
52 protected:
55 
56  vtkIdType PointId; //picked point
57 
58  double IntersectWithLine(double p1[3], double p2[3], double tol,
59  vtkAssemblyPath *path, vtkProp3D *p,
61  void Initialize();
62 
63 private:
64  vtkPointPicker(const vtkPointPicker&); // Not implemented.
65  void operator=(const vtkPointPicker&); // Not implemented.
66 };
67 
68 #endif
69 
70