00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkImageSkeleton2D.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 =========================================================================*/ 00032 #ifndef __vtkImageSkeleton2D_h 00033 #define __vtkImageSkeleton2D_h 00034 00035 #include "vtkImageIterateFilter.h" 00036 00037 class VTK_IMAGING_EXPORT vtkImageSkeleton2D : public vtkImageIterateFilter 00038 { 00039 public: 00040 static vtkImageSkeleton2D *New(); 00041 vtkTypeMacro(vtkImageSkeleton2D,vtkImageIterateFilter); 00042 void PrintSelf(ostream& os, vtkIndent indent); 00043 00045 00046 vtkSetMacro(Prune,int); 00047 vtkGetMacro(Prune,int); 00048 vtkBooleanMacro(Prune,int); 00050 00052 void SetNumberOfIterations(int num); 00053 00054 protected: 00055 vtkImageSkeleton2D(); 00056 ~vtkImageSkeleton2D() {}; 00057 00058 int Prune; 00059 00060 virtual int IterativeRequestUpdateExtent(vtkInformation* in, 00061 vtkInformation* out); 00062 void ThreadedExecute(vtkImageData *inData, vtkImageData *outData, 00063 int outExt[6], int id); 00064 private: 00065 vtkImageSkeleton2D(const vtkImageSkeleton2D&); // Not implemented. 00066 void operator=(const vtkImageSkeleton2D&); // Not implemented. 00067 }; 00068 00069 #endif 00070 00071 00072