VTK
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 
45 #include "vtkCommonDataModelModule.h" // For export macro
47 
48 class vtkPoints;
49 class vtkIdList;
50 
51 class VTKCOMMONDATAMODEL_EXPORT vtkIncrementalPointLocator : public vtkAbstractPointLocator
52 {
53 public:
54 
56  void PrintSelf( ostream & os, vtkIndent indent ) VTK_OVERRIDE;
57 
66  virtual vtkIdType FindClosestInsertedPoint( const double x[3] ) = 0;
67 
68  // -------------------------------------------------------------------------
69  // ---------------------------- Point Location ----------------------------
70  // ---- All virtual functions related to point location are declared by ----
71  // --------------- the parent class vtkAbstractPointLocator ---------------
72  // -------------------------------------------------------------------------
73 
74  // -------------------------------------------------------------------------
75  // ---------------------------- Point Insertion ----------------------------
76  // -------------------------------------------------------------------------
77 
84  virtual int InitPointInsertion( vtkPoints * newPts, const double bounds[6] ) = 0;
85 
92  virtual int InitPointInsertion( vtkPoints * newPts, const double bounds[6],
93  vtkIdType estSize ) = 0;
94 
100  virtual vtkIdType IsInsertedPoint( double x, double y, double z ) = 0;
101 
107  virtual vtkIdType IsInsertedPoint( const double x[3] ) = 0;
108 
113  virtual int InsertUniquePoint( const double x[3], vtkIdType & ptId ) = 0;
114 
121  virtual void InsertPoint( vtkIdType ptId, const double x[3] ) = 0;
122 
129  virtual vtkIdType InsertNextPoint( const double x[3] ) = 0;
130 
131 protected:
133  ~vtkIncrementalPointLocator() VTK_OVERRIDE;
134 
135 private:
136  vtkIncrementalPointLocator( const vtkIncrementalPointLocator & ) VTK_DELETE_FUNCTION;
137  void operator = ( const vtkIncrementalPointLocator & ) VTK_DELETE_FUNCTION;
138 };
139 
140 #endif
Abstract class in support of both point location and point insertion.
int vtkIdType
Definition: vtkType.h:287
a simple class to control print indentation
Definition: vtkIndent.h:39
void PrintSelf(ostream &os, vtkIndent indent) override
Standard type and print methods.
abstract class to quickly locate points in 3-space
list of point or cell ids
Definition: vtkIdList.h:36
represent and manipulate 3D points
Definition: vtkPoints.h:39