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=========================================================================*/
36#ifndef vtkPointPicker_h
37#define vtkPointPicker_h
38
39#include "vtkRenderingCoreModule.h" // For export macro
40#include "vtkPicker.h"
41
42class VTKRENDERINGCORE_EXPORT vtkPointPicker : public vtkPicker
43{
44public:
47 void PrintSelf(ostream& os, vtkIndent indent);
48
50
53 vtkGetMacro(PointId, vtkIdType);
55
57
61 vtkSetMacro(UseCells, int);
62 vtkGetMacro(UseCells, int);
63 vtkBooleanMacro(UseCells, int);
65
66protected:
69
70 vtkIdType PointId; //picked point
71 int UseCells; // Use cell points vs. points directly
72
73 double IntersectWithLine(double p1[3], double p2[3], double tol,
74 vtkAssemblyPath *path, vtkProp3D *p,
76 void Initialize();
77
78private:
79 vtkPointPicker(const vtkPointPicker&) VTK_DELETE_FUNCTION;
80 void operator=(const vtkPointPicker&) VTK_DELETE_FUNCTION;
81};
82
83#endif
84
85
abstract class specifies interface to map 3D data
a list of nodes that form an assembly path
a simple class to control print indentation
Definition: vtkIndent.h:40
superclass for 3D geometric pickers (uses ray cast)
Definition: vtkPicker.h:58
select a point by shooting a ray into a graphics window
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkIdType PointId
double IntersectWithLine(double p1[3], double p2[3], double tol, vtkAssemblyPath *path, vtkProp3D *p, vtkAbstractMapper3D *m)
static vtkPointPicker * New()
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:47
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
int vtkIdType
Definition: vtkType.h:287