VTK  9.1.0
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=========================================================================*/
36#ifndef vtkMergePoints_h
37#define vtkMergePoints_h
38
39#include "vtkCommonDataModelModule.h" // For export macro
40#include "vtkPointLocator.h"
41
42class VTKCOMMONDATAMODEL_EXPORT vtkMergePoints : public vtkPointLocator
43{
44public:
47 void PrintSelf(ostream& os, vtkIndent indent) override;
48
50
55 vtkIdType IsInsertedPoint(const double x[3]) override;
56 vtkIdType IsInsertedPoint(double x, double y, double z) override
57 {
58 return this->vtkPointLocator::IsInsertedPoint(x, y, z);
59 }
61
70 int InsertUniquePoint(const double x[3], vtkIdType& ptId) override;
71
72protected:
73 vtkMergePoints() = default;
74 ~vtkMergePoints() override = default;
75
76private:
77 vtkMergePoints(const vtkMergePoints&) = delete;
78 void operator=(const vtkMergePoints&) = delete;
79};
80
81#endif
a simple class to control print indentation
Definition: vtkIndent.h:43
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
static vtkMergePoints * New()
vtkIdType IsInsertedPoint(double x, double y, double z) override
Determine whether point given by x[3] has been inserted into points list.
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