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 =========================================================================*/
59 #ifndef vtkMergePoints_h
60 #define vtkMergePoints_h
61 
62 #include "vtkCommonDataModelModule.h" // For export macro
63 #include "vtkPointLocator.h"
64 
65 class VTKCOMMONDATAMODEL_EXPORT vtkMergePoints : public vtkPointLocator
66 {
67 public:
68  static vtkMergePoints* New();
70  void PrintSelf(ostream& os, vtkIndent indent) override;
71 
73 
78  vtkIdType IsInsertedPoint(const double x[3]) override;
79  vtkIdType IsInsertedPoint(double x, double y, double z) override
80  {
81  return this->vtkPointLocator::IsInsertedPoint(x, y, z);
82  }
84 
93  int InsertUniquePoint(const double x[3], vtkIdType& ptId) override;
94 
95 protected:
96  vtkMergePoints() = default;
97  ~vtkMergePoints() override = default;
98 
99 private:
100  vtkMergePoints(const vtkMergePoints&) = delete;
101  void operator=(const vtkMergePoints&) = delete;
102 };
103 
104 #endif
a simple class to control print indentation
Definition: vtkIndent.h:119
merge exactly coincident points
int InsertUniquePoint(const double x[3], vtkIdType &ptId) override
Determine whether point given by x[3] has been inserted into points list.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard type and print methods.
~vtkMergePoints() override=default
vtkIdType IsInsertedPoint(double x, double y, double z) override
Determine whether point given by x[3] has been inserted into points list.
static vtkMergePoints * New()
vtkIdType IsInsertedPoint(const double x[3]) override
Determine whether point given by x[3] has been inserted into points list.
vtkMergePoints()=default
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