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

vtkShrinkFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkShrinkFilter.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 =========================================================================*/
00052 #ifndef __vtkShrinkFilter_h
00053 #define __vtkShrinkFilter_h
00054 
00055 #include "vtkDataSetToUnstructuredGridFilter.h"
00056 
00057 class VTK_GRAPHICS_EXPORT vtkShrinkFilter : public vtkDataSetToUnstructuredGridFilter
00058 {
00059 public:
00060   static vtkShrinkFilter *New();
00061   vtkTypeRevisionMacro(vtkShrinkFilter,vtkDataSetToUnstructuredGridFilter);
00062   void PrintSelf(ostream& os, vtkIndent indent);
00063 
00065 
00066   vtkSetClampMacro(ShrinkFactor,double,0.0,1.0);
00068 
00070 
00071   vtkGetMacro(ShrinkFactor,double);
00073 
00074 protected:
00075   vtkShrinkFilter(double sf=0.5);
00076   ~vtkShrinkFilter() {};
00077 
00078   void Execute();
00079   double ShrinkFactor;
00080 private:
00081   vtkShrinkFilter(const vtkShrinkFilter&);  // Not implemented.
00082   void operator=(const vtkShrinkFilter&);  // Not implemented.
00083 };
00084 
00085 #endif
00086 
00087