Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Graphics/vtkShrinkPolyData.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkShrinkPolyData.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00058 #ifndef __vtkShrinkPolyData_h
00059 #define __vtkShrinkPolyData_h
00060 
00061 #include "vtkPolyDataToPolyDataFilter.h"
00062 
00063 class VTK_GRAPHICS_EXPORT vtkShrinkPolyData : public vtkPolyDataToPolyDataFilter 
00064 {
00065 public:
00066   static vtkShrinkPolyData *New();
00067   vtkTypeRevisionMacro(vtkShrinkPolyData,vtkPolyDataToPolyDataFilter);
00068   void PrintSelf(ostream& os, vtkIndent indent);
00069 
00071 
00072   vtkSetClampMacro(ShrinkFactor,float,0.0,1.0);
00074 
00076 
00077   vtkGetMacro(ShrinkFactor,float);
00079 
00080 protected:
00081   vtkShrinkPolyData(float sf=0.5);
00082   ~vtkShrinkPolyData() {};
00083 
00084   void Execute();
00085   float ShrinkFactor;
00086 private:
00087   vtkShrinkPolyData(const vtkShrinkPolyData&);  // Not implemented.
00088   void operator=(const vtkShrinkPolyData&);  // Not implemented.
00089 };
00090 
00091 #endif