VTK  9.0.20210301
vtkIncrementalPointLocator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkIncrementalPointLocator.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 =========================================================================*/
42 #ifndef vtkIncrementalPointLocator_h
43 #define vtkIncrementalPointLocator_h
44 
46 #include "vtkCommonDataModelModule.h" // For export macro
47 
48 class vtkPoints;
49 class vtkIdList;
50 
51 class VTKCOMMONDATAMODEL_EXPORT vtkIncrementalPointLocator : public vtkAbstractPointLocator
52 {
53 public:
55  void PrintSelf(ostream& os, vtkIndent indent) override;
56 
65  virtual vtkIdType FindClosestInsertedPoint(const double x[3]) = 0;
66 
67  // -------------------------------------------------------------------------
68  // ---------------------------- Point Location ----------------------------
69  // ---- All virtual functions related to point location are declared by ----
70  // --------------- the parent class vtkAbstractPointLocator ---------------
71  // -------------------------------------------------------------------------
72 
73  // -------------------------------------------------------------------------
74  // ---------------------------- Point Insertion ----------------------------
75  // -------------------------------------------------------------------------
76 
83  virtual int InitPointInsertion(vtkPoints* newPts, const double bounds[6]) = 0;
84 
91  virtual int InitPointInsertion(vtkPoints* newPts, const double bounds[6], vtkIdType estSize) = 0;
92 
98  virtual vtkIdType IsInsertedPoint(double x, double y, double z) = 0;
99 
105  virtual vtkIdType IsInsertedPoint(const double x[3]) = 0;
106 
111  virtual int InsertUniquePoint(const double x[3], vtkIdType& ptId) = 0;
112 
119  virtual void InsertPoint(vtkIdType ptId, const double x[3]) = 0;
120 
127  virtual vtkIdType InsertNextPoint(const double x[3]) = 0;
128 
129 protected:
132 
133 private:
135  void operator=(const vtkIncrementalPointLocator&) = delete;
136 };
137 
138 #endif
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:34
vtkIncrementalPointLocator::InsertUniquePoint
virtual int InsertUniquePoint(const double x[3], vtkIdType &ptId)=0
Insert a point unless there has been a duplicate in the search structure.
vtkIncrementalPointLocator::IsInsertedPoint
virtual vtkIdType IsInsertedPoint(double x, double y, double z)=0
Determine whether or not a given point has been inserted.
vtkIncrementalPointLocator::vtkIncrementalPointLocator
vtkIncrementalPointLocator()
vtkIncrementalPointLocator::InsertPoint
virtual void InsertPoint(vtkIdType ptId, const double x[3])=0
Insert a given point with a specified point index ptId.
vtkAbstractPointLocator.h
vtkIdType
int vtkIdType
Definition: vtkType.h:338
vtkIncrementalPointLocator::InsertNextPoint
virtual vtkIdType InsertNextPoint(const double x[3])=0
Insert a given point and return the point index.
vtkIncrementalPointLocator::IsInsertedPoint
virtual vtkIdType IsInsertedPoint(const double x[3])=0
Determine whether or not a given point has been inserted.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkIncrementalPointLocator::FindClosestInsertedPoint
virtual vtkIdType FindClosestInsertedPoint(const double x[3])=0
Given a point x assumed to be covered by the search structure, return the index of the closest point ...
vtkIncrementalPointLocator
Abstract class in support of both point location and point insertion.
Definition: vtkIncrementalPointLocator.h:52
vtkIdList
list of point or cell ids
Definition: vtkIdList.h:31
vtkIncrementalPointLocator::InitPointInsertion
virtual int InitPointInsertion(vtkPoints *newPts, const double bounds[6], vtkIdType estSize)=0
Initialize the point insertion process.
vtkIncrementalPointLocator::InitPointInsertion
virtual int InitPointInsertion(vtkPoints *newPts, const double bounds[6])=0
Initialize the point insertion process.
vtkIncrementalPointLocator::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkAbstractPointLocator
abstract class to quickly locate points in 3-space
Definition: vtkAbstractPointLocator.h:39
vtkIncrementalPointLocator::~vtkIncrementalPointLocator
~vtkIncrementalPointLocator() override