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 
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:41
int vtkIdType
Definition: vtkType.h:255
superclass for 3D geometric pickers (uses ray cast)
Definition: vtkPicker.h:55
a list of nodes that form an assembly path
a simple class to control print indentation
Definition: vtkIndent.h:37
static vtkPicker * New()
virtual void Initialize()
abstract class specifies interface to map 3D data
virtual double IntersectWithLine(double p1[3], double p2[3], double tol, vtkAssemblyPath *path, vtkProp3D *p, vtkAbstractMapper3D *m)
#define VTK_RENDERING_EXPORT
void PrintSelf(ostream &os, vtkIndent indent)
select a point by shooting a ray into a graphics window