VTK
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
36class VTKCOMMONDATAMODEL_EXPORT vtkMergePoints : public vtkPointLocator
37{
38public:
41 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
42
44
49 vtkIdType IsInsertedPoint(const double x[3]) VTK_OVERRIDE;
50 vtkIdType IsInsertedPoint(double x, double y, double z) VTK_OVERRIDE
51 {return this->vtkPointLocator::IsInsertedPoint(x, y, z); };
53
62 int InsertUniquePoint(const double x[3], vtkIdType &ptId) VTK_OVERRIDE;
63
64protected:
66 ~vtkMergePoints() VTK_OVERRIDE {}
67
68private:
69 vtkMergePoints(const vtkMergePoints&) VTK_DELETE_FUNCTION;
70 void operator=(const vtkMergePoints&) VTK_DELETE_FUNCTION;
71};
72
73#endif
74
75
a simple class to control print indentation
Definition: vtkIndent.h:40
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
Methods invoked by print to print information about the object including superclasses.
~vtkMergePoints() override
static vtkMergePoints * New()
vtkIdType IsInsertedPoint(double x, double y, double z) override
Determine whether or not a given point has been inserted.
vtkIdType IsInsertedPoint(const double x[3]) override
Determine whether point given by x[3] has been inserted into points list.
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:287