Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkImageSkeleton2D.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkImageSkeleton2D.h,v $
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 =========================================================================*/
00043 #ifndef __vtkImageSkeleton2D_h
00044 #define __vtkImageSkeleton2D_h
00045 
00046 #include "vtkImageIterateFilter.h"
00047 
00048 class VTK_IMAGING_EXPORT vtkImageSkeleton2D : public vtkImageIterateFilter
00049 {
00050 public:
00051   static vtkImageSkeleton2D *New();
00052   vtkTypeRevisionMacro(vtkImageSkeleton2D,vtkImageIterateFilter);
00053   void PrintSelf(ostream& os, vtkIndent indent);
00054 
00056 
00057   vtkSetMacro(Prune,int);
00058   vtkGetMacro(Prune,int);
00059   vtkBooleanMacro(Prune,int);
00061 
00063   void SetNumberOfIterations(int num);
00064   
00065   virtual void IterativeExecuteData(vtkImageData *in, vtkImageData *out) 
00066     { this->MultiThread(in,out);};
00067 
00068 protected:
00069   vtkImageSkeleton2D();
00070   ~vtkImageSkeleton2D() {};
00071 
00072   int Prune;
00073 
00074   void ComputeInputUpdateExtent(int inExt[6], int outExt[6] );
00075   void ThreadedExecute(vtkImageData *inData, vtkImageData *outData,
00076                        int outExt[6], int id);
00077 private:
00078   vtkImageSkeleton2D(const vtkImageSkeleton2D&);  // Not implemented.
00079   void operator=(const vtkImageSkeleton2D&);  // Not implemented.
00080 };
00081 
00082 #endif
00083 
00084 
00085