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 
44 #include "vtkCommonDataModelModule.h" // For export macro
46 
47 class vtkPoints;
48 class vtkIdList;
49 
51 {
52 public:
53 
55  void PrintSelf( ostream & os, vtkIndent indent );
56 
58  virtual void Initialize() = 0;
59 
67  virtual vtkIdType FindClosestInsertedPoint( const double x[3] ) = 0;
68 
69  // -------------------------------------------------------------------------
70  // ---------------------------- Point Location ----------------------------
71  // ---- All virtual functions related to point location are declared by ----
72  // --------------- the parent class vtkAbstractPointLocator ---------------
73  // -------------------------------------------------------------------------
74 
75  // -------------------------------------------------------------------------
76  // ---------------------------- Point Insertion ----------------------------
77  // -------------------------------------------------------------------------
78 
84  virtual int InitPointInsertion( vtkPoints * newPts, const double bounds[6] ) = 0;
85 
87 
92  virtual int InitPointInsertion( vtkPoints * newPts, const double bounds[6],
93  vtkIdType estSize ) = 0;
95 
99  virtual vtkIdType IsInsertedPoint( double x, double y, double z ) = 0;
100 
104  virtual vtkIdType IsInsertedPoint( const double x[3] ) = 0;
105 
108  virtual int InsertUniquePoint( const double x[3], vtkIdType & ptId ) = 0;
109 
115  virtual void InsertPoint( vtkIdType ptId, const double x[3] ) = 0;
116 
122  virtual vtkIdType InsertNextPoint( const double x[3] ) = 0;
123 
124 protected:
126  virtual ~vtkIncrementalPointLocator();
127 
128 private:
129  vtkIncrementalPointLocator( const vtkIncrementalPointLocator & ); // Not implemented.
130  void operator = ( const vtkIncrementalPointLocator & ); // Not implemented.
131 };
132 
133 #endif
Abstract class in support of both point location and point insertion.
int vtkIdType
Definition: vtkType.h:247
a simple class to control print indentation
Definition: vtkIndent.h:38
abstract class to quickly locate points in 3-space
list of point or cell ids
Definition: vtkIdList.h:35
void PrintSelf(ostream &os, vtkIndent indent)
virtual void Initialize()
#define VTKCOMMONDATAMODEL_EXPORT
represent and manipulate 3D points
Definition: vtkPoints.h:38