VTK  9.3.20240418
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:
57  ~vtkNonMergingPointLocator() override = default;
58 
59 private:
61  void operator=(const vtkNonMergingPointLocator&) = delete;
62 };
63 
64 VTK_ABI_NAMESPACE_END
65 #endif
a simple class to control print indentation
Definition: vtkIndent.h:108
direct / check-free point insertion.
int InsertUniquePoint(const double x[3], vtkIdType &ptId) override
Determine whether a given point x has been inserted into the points list.
static vtkNonMergingPointLocator * New()
vtkIdType IsInsertedPoint(const double[3]) override
Determine whether a given point x has been inserted into the points list.
vtkNonMergingPointLocator()=default
vtkIdType IsInsertedPoint(double, double, double) override
Determine whether or not a given point has been inserted.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard type and print methods.
~vtkNonMergingPointLocator() override=default
quickly locate points in 3-space
represent and manipulate 3D points
Definition: vtkPoints.h:139
int vtkIdType
Definition: vtkType.h:315