VTK
dox/Imaging/Morphological/vtkImageSkeleton2D.h
Go to the documentation of this file.
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 "vtkImagingMorphologicalModule.h" // For export macro
00036 #include "vtkImageIterateFilter.h"
00037 
00038 class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageSkeleton2D : public vtkImageIterateFilter
00039 {
00040 public:
00041   static vtkImageSkeleton2D *New();
00042   vtkTypeMacro(vtkImageSkeleton2D,vtkImageIterateFilter);
00043   void PrintSelf(ostream& os, vtkIndent indent);
00044 
00046 
00047   vtkSetMacro(Prune,int);
00048   vtkGetMacro(Prune,int);
00049   vtkBooleanMacro(Prune,int);
00051 
00053   void SetNumberOfIterations(int num);
00054 
00055 protected:
00056   vtkImageSkeleton2D();
00057   ~vtkImageSkeleton2D() {};
00058 
00059   int Prune;
00060 
00061   virtual int IterativeRequestUpdateExtent(vtkInformation* in,
00062                                            vtkInformation* out);
00063   void ThreadedRequestData(
00064     vtkInformation* request,
00065     vtkInformationVector** inputVector,
00066     vtkInformationVector* outputVector,
00067     vtkImageData ***inDataV,
00068     vtkImageData **outDataV,
00069     int outExt[6],
00070     int id);
00071 private:
00072   vtkImageSkeleton2D(const vtkImageSkeleton2D&);  // Not implemented.
00073   void operator=(const vtkImageSkeleton2D&);  // Not implemented.
00074 };
00075 
00076 #endif
00077 
00078 
00079