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 =========================================================================*/
44 #ifndef vtkIncrementalPointLocator_h
45 #define vtkIncrementalPointLocator_h
46 
47 #include "vtkCommonDataModelModule.h" // For export macro
49 
50 class vtkPoints;
51 class vtkIdList;
52 
54 {
55 public:
56 
58  void PrintSelf( ostream & os, vtkIndent indent );
59 
61  virtual void Initialize() = 0;
62 
70  virtual vtkIdType FindClosestInsertedPoint( const double x[3] ) = 0;
71 
72  // -------------------------------------------------------------------------
73  // ---------------------------- Point Location ----------------------------
74  // ---- All virtual functions related to point location are declared by ----
75  // --------------- the parent class vtkAbstractPointLocator ---------------
76  // -------------------------------------------------------------------------
77 
78  // -------------------------------------------------------------------------
79  // ---------------------------- Point Insertion ----------------------------
80  // -------------------------------------------------------------------------
81 
87  virtual int InitPointInsertion( vtkPoints * newPts, const double bounds[6] ) = 0;
88 
90 
95  virtual int InitPointInsertion( vtkPoints * newPts, const double bounds[6],
96  vtkIdType estSize ) = 0;
98 
102  virtual vtkIdType IsInsertedPoint( double x, double y, double z ) = 0;
103 
107  virtual vtkIdType IsInsertedPoint( const double x[3] ) = 0;
108 
111  virtual int InsertUniquePoint( const double x[3], vtkIdType & ptId ) = 0;
112 
118  virtual void InsertPoint( vtkIdType ptId, const double x[3] ) = 0;
119 
125  virtual vtkIdType InsertNextPoint( const double x[3] ) = 0;
126 
127 protected:
129  virtual ~vtkIncrementalPointLocator();
130 
131 private:
132  vtkIncrementalPointLocator( const vtkIncrementalPointLocator & ); // Not implemented.
133  void operator = ( const vtkIncrementalPointLocator & ); // Not implemented.
134 };
135 
136 #endif
Abstract class in support of both point location and point insertion.
int vtkIdType
Definition: vtkType.h:275
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