VTK  9.3.1
vtkNonMergingPointLocator.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
22 #ifndef vtkNonMergingPointLocator_h
23 #define vtkNonMergingPointLocator_h
24 
25 #include "vtkCommonDataModelModule.h" // For export macro
26 #include "vtkPointLocator.h"
27 
28 VTK_ABI_NAMESPACE_BEGIN
29 class vtkPoints;
30 
31 class VTKCOMMONDATAMODEL_EXPORT vtkNonMergingPointLocator : public vtkPointLocator
32 {
33 public:
35 
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
44  vtkIdType IsInsertedPoint(const double[3]) override { return -1; }
45  vtkIdType IsInsertedPoint(double, double, double) override { return -1; }
46 
53  int InsertUniquePoint(const double x[3], vtkIdType& ptId) override;
54 
55 protected:
56  vtkNonMergingPointLocator() = default;
57  ~vtkNonMergingPointLocator() override = default;
58 
59 private:
61  void operator=(const vtkNonMergingPointLocator&) = delete;
62 };
63 
64 VTK_ABI_NAMESPACE_END
65 #endif
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:315
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:28
represent and manipulate 3D points
Definition: vtkPoints.h:28