VTK
vtkAbstractPointLocator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkAbstractPointLocator.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 =========================================================================*/
29 #ifndef vtkAbstractPointLocator_h
30 #define vtkAbstractPointLocator_h
31 
32 #include "vtkCommonDataModelModule.h" // For export macro
33 #include "vtkLocator.h"
34 
35 class vtkIdList;
36 
38 {
39 public:
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
44 
48  virtual vtkIdType FindClosestPoint(const double x[3]) = 0;
49  vtkIdType FindClosestPoint(double x, double y, double z);
51 
53 
56  virtual vtkIdType FindClosestPointWithinRadius(
57  double radius, const double x[3], double& dist2) = 0;
59 
61 
67  virtual void FindClosestNPoints(
68  int N, const double x[3], vtkIdList *result) = 0;
69  void FindClosestNPoints(int N, double x, double y, double z,
70  vtkIdList *result);
72 
74 
78  virtual void FindPointsWithinRadius(double R, const double x[3],
79  vtkIdList *result) = 0;
80  void FindPointsWithinRadius(double R, double x, double y, double z,
81  vtkIdList *result);
83 
85 
86  virtual double *GetBounds() { return this->Bounds; }
87  virtual void GetBounds(double*);
89 
91 
93  virtual void FreeSearchStructure() = 0;
94  virtual void BuildLocator() = 0;
95  virtual void GenerateRepresentation(int level, vtkPolyData *pd) = 0;
97 
98 protected:
100  virtual ~vtkAbstractPointLocator();
101 
102  double Bounds[6]; // bounds of points
103 
104 private:
105  vtkAbstractPointLocator(const vtkAbstractPointLocator&); // Not implemented.
106  void operator=(const vtkAbstractPointLocator&); // Not implemented.
107 };
108 
109 #endif
110 
111 
virtual void BuildLocator()=0
abstract base class for objects that accelerate spatial searches
Definition: vtkLocator.h:61
void PrintSelf(ostream &os, vtkIndent indent)
int vtkIdType
Definition: vtkType.h:275
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:83
virtual void FreeSearchStructure()=0
a simple class to control print indentation
Definition: vtkIndent.h:38
abstract class to quickly locate points in 3-space
list of point or cell ids
Definition: vtkIdList.h:35
virtual void GenerateRepresentation(int level, vtkPolyData *pd)=0
#define VTKCOMMONDATAMODEL_EXPORT