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 =========================================================================*/
41 #ifndef __vtkIncrementalPointLocator_h
42 #define __vtkIncrementalPointLocator_h
43 
45 
46 class vtkPoints;
47 class vtkIdList;
48 
50 {
51 public:
52 
54  void PrintSelf( ostream & os, vtkIndent indent );
55 
57  virtual void Initialize() = 0;
58 
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 
83  virtual int InitPointInsertion( vtkPoints * newPts, const double bounds[6] ) = 0;
84 
86 
91  virtual int InitPointInsertion( vtkPoints * newPts, const double bounds[6],
92  vtkIdType estSize ) = 0;
94 
98  virtual vtkIdType IsInsertedPoint( double x, double y, double z ) = 0;
99 
103  virtual vtkIdType IsInsertedPoint( const double x[3] ) = 0;
104 
107  virtual int InsertUniquePoint( const double x[3], vtkIdType & ptId ) = 0;
108 
114  virtual void InsertPoint( vtkIdType ptId, const double x[3] ) = 0;
115 
121  virtual vtkIdType InsertNextPoint( const double x[3] ) = 0;
122 
123 protected:
125  virtual ~vtkIncrementalPointLocator();
126 
127 private:
128  vtkIncrementalPointLocator( const vtkIncrementalPointLocator & ); // Not implemented.
129  void operator = ( const vtkIncrementalPointLocator & ); // Not implemented.
130 };
131 
132 #endif