Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | 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 =========================================================================*/
00038 #ifndef __vtkShrinkFilter_h
00039 #define __vtkShrinkFilter_h
00040 
00041 #include "vtkUnstructuredGridAlgorithm.h"
00042 
00043 class VTK_GRAPHICS_EXPORT vtkShrinkFilter : public vtkUnstructuredGridAlgorithm
00044 {
00045 public:
00046   static vtkShrinkFilter *New();
00047   vtkTypeRevisionMacro(vtkShrinkFilter,vtkUnstructuredGridAlgorithm);
00048   void PrintSelf(ostream& os, vtkIndent indent);
00049 
00051 
00052   vtkSetClampMacro(ShrinkFactor, double, 0.0, 1.0);
00053   vtkGetMacro(ShrinkFactor, double);
00055 
00056 protected:
00057   vtkShrinkFilter();
00058   ~vtkShrinkFilter();
00059 
00060   // Override to specify support for any vtkDataSet input type.
00061   virtual int FillInputPortInformation(int port, vtkInformation* info);
00062 
00063   // Main implementation.
00064   virtual int RequestData(vtkInformation*,
00065                           vtkInformationVector**,
00066                           vtkInformationVector*);
00067 
00068   double ShrinkFactor;
00069 
00070 private:
00071   vtkShrinkFilter(const vtkShrinkFilter&);  // Not implemented.
00072   void operator=(const vtkShrinkFilter&);  // Not implemented.
00073 };
00074 
00075 #endif

Generated on Mon Jan 21 23:07:26 2008 for VTK by  doxygen 1.4.3-20050530