VTK
vtkNonMergingPointLocator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkNonMergingPointLocator.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 =========================================================================*/
34 #ifndef vtkNonMergingPointLocator_h
35 #define vtkNonMergingPointLocator_h
36 
37 #include "vtkCommonDataModelModule.h" // For export macro
38 #include "vtkPointLocator.h"
39 
40 class vtkPoints;
41 
42 class VTKCOMMONDATAMODEL_EXPORT vtkNonMergingPointLocator : public vtkPointLocator
43 {
44 public:
45  static vtkNonMergingPointLocator * New();
46 
48  void PrintSelf( ostream & os, vtkIndent indent ) override;
49 
55  vtkIdType IsInsertedPoint( const double [3] ) override
56  { return -1; }
57  vtkIdType IsInsertedPoint( double, double, double ) override
58  { return -1; }
59 
66  int InsertUniquePoint( const double x[3], vtkIdType & ptId ) override;
67 
68 protected:
71 
72 private:
74  void operator = ( const vtkNonMergingPointLocator & ) = delete;
75 };
76 
77 #endif
78 
79 
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for type management and printing.
vtkIdType IsInsertedPoint(double, double, double) override
Determine whether or not a given point has been inserted.
vtkIdType IsInsertedPoint(const double[3]) override
Determine whether a given point x has been inserted into the points list.
quickly locate points in 3-space
direct / check-free point insertion.
int vtkIdType
Definition: vtkType.h:347
static vtkPointLocator * New()
Construct with automatic computation of divisions, averaging 25 points per bucket.
int InsertUniquePoint(const double x[3], vtkIdType &ptId) override
Determine whether point given by x[3] has been inserted into points list.
a simple class to control print indentation
Definition: vtkIndent.h:39
represent and manipulate 3D points
Definition: vtkPoints.h:39