VTK: Common/DataModel/vtkMergePoints.h Source File

| VTK 9.3.1

vtkMergePoints.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
27 #ifndef vtkMergePoints_h
28 #define vtkMergePoints_h
29
30 #include "vtkCommonDataModelModule.h" // For export macro
31 #include "vtkPointLocator.h"
32
33 VTK_ABI_NAMESPACE_BEGIN
34 class VTKCOMMONDATAMODEL_EXPORT vtkMergePoints : public vtkPointLocator
35 {
36 public:
37 static vtkMergePoints* New();
38 vtkTypeMacro(vtkMergePoints, vtkPointLocator);
39 void PrintSelf(ostream& os, vtkIndent indent) override;
40
42
47 vtkIdType IsInsertedPoint(const double x[3]) override;
48 vtkIdType IsInsertedPoint(double x, double y, double z) override
49 {
50 return this->vtkPointLocator::IsInsertedPoint(x, y, z);
51 }
53
62 int InsertUniquePoint(const double x[3], vtkIdType& ptId) override;
63
64 protected:
65 vtkMergePoints() = default;
66 ~vtkMergePoints() override = default;
67
68 private:
69 vtkMergePoints(const vtkMergePoints&) = delete;
70 void operator=(const vtkMergePoints&) = delete;
71 };
72
73 VTK_ABI_NAMESPACE_END
74 #endif
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkMergePoints
merge exactly coincident points
Definition: vtkMergePoints.h:35
vtkMergePoints::InsertUniquePoint
int InsertUniquePoint(const double x[3], vtkIdType &ptId) override
Determine whether point given by x[3] has been inserted into points list.
vtkMergePoints::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard type and print methods.
vtkMergePoints::~vtkMergePoints
~vtkMergePoints() override=default
vtkMergePoints::IsInsertedPoint
vtkIdType IsInsertedPoint(double x, double y, double z) override
Determine whether point given by x[3] has been inserted into points list.
Definition: vtkMergePoints.h:48
vtkMergePoints::New
static vtkMergePoints * New()
vtkMergePoints::IsInsertedPoint
vtkIdType IsInsertedPoint(const double x[3]) override
Determine whether point given by x[3] has been inserted into points list.
vtkMergePoints::vtkMergePoints
vtkMergePoints()=default
vtkPointLocator
quickly locate points in 3-space
Definition: vtkPointLocator.h:59
vtkPointLocator::IsInsertedPoint
vtkIdType IsInsertedPoint(double x, double y, double z) override
Determine whether point given by x[3] has been inserted into points list.
Definition: vtkPointLocator.h:160
vtkPointLocator.h
vtkIdType
int vtkIdType
Definition: vtkType.h:315