00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkMergePoints.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00029 #ifndef __vtkMergePoints_h 00030 #define __vtkMergePoints_h 00031 00032 #include "vtkPointLocator.h" 00033 00034 class VTK_FILTERING_EXPORT vtkMergePoints : public vtkPointLocator 00035 { 00036 public: 00037 static vtkMergePoints *New(); 00038 vtkTypeMacro(vtkMergePoints,vtkPointLocator); 00039 void PrintSelf(ostream& os, vtkIndent indent); 00040 00042 00045 vtkIdType IsInsertedPoint(const double x[3]); 00046 vtkIdType IsInsertedPoint(double x, double y, double z) 00047 {return this->vtkPointLocator::IsInsertedPoint(x, y, z); }; 00049 00056 int InsertUniquePoint(const double x[3], vtkIdType &ptId); 00057 00058 protected: 00059 vtkMergePoints() {}; 00060 ~vtkMergePoints() {}; 00061 00062 private: 00063 vtkMergePoints(const vtkMergePoints&); // Not implemented. 00064 void operator=(const vtkMergePoints&); // Not implemented. 00065 }; 00066 00067 #endif 00068 00069