VTK: Common/DataModel/vtkNonMergingPointLocator.h Source File

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