VTK  9.2.6
vtkMergePoints.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkMergePoints.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 =========================================================================*/
30 #ifndef vtkMergePoints_h
31 #define vtkMergePoints_h
32 
33 #include "vtkCommonDataModelModule.h" // For export macro
34 #include "vtkPointLocator.h"
35 
36 class VTKCOMMONDATAMODEL_EXPORT vtkMergePoints : public vtkPointLocator
37 {
38 public:
39  static vtkMergePoints* New();
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
44 
49  vtkIdType IsInsertedPoint(const double x[3]) override;
50  vtkIdType IsInsertedPoint(double x, double y, double z) override
51  {
52  return this->vtkPointLocator::IsInsertedPoint(x, y, z);
53  }
55 
64  int InsertUniquePoint(const double x[3], vtkIdType& ptId) override;
65 
66 protected:
67  vtkMergePoints() = default;
68  ~vtkMergePoints() override = default;
69 
70 private:
71  vtkMergePoints(const vtkMergePoints&) = delete;
72  void operator=(const vtkMergePoints&) = delete;
73 };
74 
75 #endif
vtkIdType IsInsertedPoint(double x, double y, double z) override
Determine whether point given by x[3] has been inserted into points list.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for type management and printing.
quickly locate points in 3-space
vtkIdType IsInsertedPoint(double x, double y, double z) override
Determine whether point given by x[3] has been inserted into points list.
int vtkIdType
Definition: vtkType.h:332
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
merge exactly coincident points