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 "vtkLocator.h"
33 
34 class vtkIdList;
35 
37 {
38 public:
40  void PrintSelf(ostream& os, vtkIndent indent);
41 
43 
47  virtual vtkIdType FindClosestPoint(const double x[3]) = 0;
48  vtkIdType FindClosestPoint(double x, double y, double z);
50 
52 
55  virtual vtkIdType FindClosestPointWithinRadius(
56  double radius, const double x[3], double& dist2) = 0;
58 
60 
66  virtual void FindClosestNPoints(
67  int N, const double x[3], vtkIdList *result) = 0;
68  void FindClosestNPoints(int N, double x, double y, double z,
69  vtkIdList *result);
71 
73 
77  virtual void FindPointsWithinRadius(double R, const double x[3],
78  vtkIdList *result) = 0;
79  void FindPointsWithinRadius(double R, double x, double y, double z,
80  vtkIdList *result);
82 
84 
85  virtual double *GetBounds() { return this->Bounds; }
86  virtual void GetBounds(double*);
88 
90 
92  virtual void FreeSearchStructure() = 0;
93  virtual void BuildLocator() = 0;
94  virtual void GenerateRepresentation(int level, vtkPolyData *pd) = 0;
96 
97 protected:
99  virtual ~vtkAbstractPointLocator();
100 
101  double Bounds[6]; // bounds of points
102 
103 private:
104  vtkAbstractPointLocator(const vtkAbstractPointLocator&); // Not implemented.
105  void operator=(const vtkAbstractPointLocator&); // Not implemented.
106 };
107 
108 #endif
109 
110 
virtual void BuildLocator()=0
#define VTK_FILTERING_EXPORT
abstract base class for objects that accelerate spatial searches
Definition: vtkLocator.h:60
void PrintSelf(ostream &os, vtkIndent indent)
int vtkIdType
Definition: vtkType.h:255
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:81
virtual void FreeSearchStructure()=0
a simple class to control print indentation
Definition: vtkIndent.h:37
abstract class to quickly locate points in 3-space
list of point or cell ids
Definition: vtkIdList.h:34
virtual void GenerateRepresentation(int level, vtkPolyData *pd)=0