VTK  9.0.20200918
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 =========================================================================*/
27 #ifndef vtkMergePoints_h
28 #define vtkMergePoints_h
29 
30 #include "vtkCommonDataModelModule.h" // For export macro
31 #include "vtkPointLocator.h"
32 
33 class VTKCOMMONDATAMODEL_EXPORT vtkMergePoints : public vtkPointLocator
34 {
35 public:
36  static vtkMergePoints* New();
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
41 
46  vtkIdType IsInsertedPoint(const double x[3]) override;
47  vtkIdType IsInsertedPoint(double x, double y, double z) override
48  {
49  return this->vtkPointLocator::IsInsertedPoint(x, y, z);
50  }
52 
61  int InsertUniquePoint(const double x[3], vtkIdType& ptId) override;
62 
63 protected:
64  vtkMergePoints() = default;
65  ~vtkMergePoints() override = default;
66 
67 private:
68  vtkMergePoints(const vtkMergePoints&) = delete;
69  void operator=(const vtkMergePoints&) = delete;
70 };
71 
72 #endif
vtkMergePoints::IsInsertedPoint
vtkIdType IsInsertedPoint(double x, double y, double z) override
Determine whether or not a given point has been inserted.
Definition: vtkMergePoints.h:47
vtkIdType
int vtkIdType
Definition: vtkType.h:330
vtkPointLocator
quickly locate points in 3-space
Definition: vtkPointLocator.h:50
vtkPointLocator::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPointLocator.h
vtkPointLocator::InsertUniquePoint
int InsertUniquePoint(const double x[3], vtkIdType &ptId) override
Determine whether point given by x[3] has been inserted into points list.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkPointLocator::New
static vtkPointLocator * New()
Construct with automatic computation of divisions, averaging 25 points per bucket.
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:152
vtkMergePoints
merge exactly coincident points
Definition: vtkMergePoints.h:33