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 "vtkRenderingCoreModule.h" // For export macro
39 #include "vtkPicker.h"
40 
42 {
43 public:
44  static vtkPointPicker *New();
45  vtkTypeMacro(vtkPointPicker,vtkPicker);
46  void PrintSelf(ostream& os, vtkIndent indent);
47 
49 
50  vtkGetMacro(PointId, vtkIdType);
52 
54 
56  vtkSetMacro(UseCells, int);
57  vtkGetMacro(UseCells, int);
58  vtkBooleanMacro(UseCells, int);
60 
61 protected:
64 
65  vtkIdType PointId; //picked point
66  int UseCells; // Use cell points vs. points directly
67 
68  double IntersectWithLine(double p1[3], double p2[3], double tol,
69  vtkAssemblyPath *path, vtkProp3D *p,
71  void Initialize();
72 
73 private:
74  vtkPointPicker(const vtkPointPicker&); // Not implemented.
75  void operator=(const vtkPointPicker&); // Not implemented.
76 };
77 
78 #endif
79 
80 
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:42
int vtkIdType
Definition: vtkType.h:275
vtkIdType PointId
superclass for 3D geometric pickers (uses ray cast)
Definition: vtkPicker.h:59
a list of nodes that form an assembly path
a simple class to control print indentation
Definition: vtkIndent.h:38
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)
void PrintSelf(ostream &os, vtkIndent indent)
select a point by shooting a ray into a graphics window
#define VTKRENDERINGCORE_EXPORT