VTK  9.1.0
vtkNonMergingPointLocator.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkNonMergingPointLocator.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=========================================================================*/
34#ifndef vtkNonMergingPointLocator_h
35#define vtkNonMergingPointLocator_h
36
37#include "vtkCommonDataModelModule.h" // For export macro
38#include "vtkPointLocator.h"
39
40class vtkPoints;
41
42class VTKCOMMONDATAMODEL_EXPORT vtkNonMergingPointLocator : public vtkPointLocator
43{
44public:
46
48 void PrintSelf(ostream& os, vtkIndent indent) override;
49
55 vtkIdType IsInsertedPoint(const double[3]) override { return -1; }
56 vtkIdType IsInsertedPoint(double, double, double) override { return -1; }
57
64 int InsertUniquePoint(const double x[3], vtkIdType& ptId) override;
65
66protected:
68 ~vtkNonMergingPointLocator() override = default;
69
70private:
72 void operator=(const vtkNonMergingPointLocator&) = delete;
73};
74
75#endif
a simple class to control print indentation
Definition: vtkIndent.h:113
direct / check-free point insertion.
int InsertUniquePoint(const double x[3], vtkIdType &ptId) override
Determine whether a given point x has been inserted into the points list.
vtkIdType IsInsertedPoint(const double[3]) override
Determine whether a given point x has been inserted into the points list.
vtkNonMergingPointLocator()=default
vtkIdType IsInsertedPoint(double, double, double) override
Determine whether or not a given point has been inserted.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard type and print methods.
~vtkNonMergingPointLocator() override=default
static vtkNonMergingPointLocator * New()
quickly locate points in 3-space
represent and manipulate 3D points
Definition: vtkPoints.h:143
int vtkIdType
Definition: vtkType.h:332