VTK
vtkShrinkFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkShrinkFilter.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
38 #ifndef vtkShrinkFilter_h
39 #define vtkShrinkFilter_h
40 
41 #include "vtkFiltersGeneralModule.h" // For export macro
43 
45 {
46 public:
47  static vtkShrinkFilter *New();
49  void PrintSelf(ostream& os, vtkIndent indent);
50 
52 
53  vtkSetClampMacro(ShrinkFactor, double, 0.0, 1.0);
54  vtkGetMacro(ShrinkFactor, double);
56 
57 protected:
59  ~vtkShrinkFilter();
60 
61  // Override to specify support for any vtkDataSet input type.
63 
64  // Main implementation.
65  virtual int RequestData(vtkInformation*,
68 
69  double ShrinkFactor;
70 
71 private:
72  vtkShrinkFilter(const vtkShrinkFilter&); // Not implemented.
73  void operator=(const vtkShrinkFilter&); // Not implemented.
74 };
75 
76 #endif
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Store vtkAlgorithm input/output information.
static vtkUnstructuredGridAlgorithm * New()
virtual int FillInputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:38
void PrintSelf(ostream &os, vtkIndent indent)
#define VTKFILTERSGENERAL_EXPORT
Superclass for algorithms that produce only unstructured grid as output.
Store zero or more vtkInformation instances.
shrink cells composing an arbitrary data set