VTK  9.2.6
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 =========================================================================*/
36 #ifndef vtkShrinkFilter_h
37 #define vtkShrinkFilter_h
38 
39 #include "vtkFiltersGeneralModule.h" // For export macro
41 
42 class VTKFILTERSGENERAL_EXPORT vtkShrinkFilter : public vtkUnstructuredGridAlgorithm
43 {
44 public:
45  static vtkShrinkFilter* New();
47  void PrintSelf(ostream& os, vtkIndent indent) override;
48 
50 
53  vtkSetClampMacro(ShrinkFactor, double, 0.0, 1.0);
54  vtkGetMacro(ShrinkFactor, double);
56 
57 protected:
59  ~vtkShrinkFilter() override;
60 
61  // Override to specify support for any vtkDataSet input type.
63 
64  // Main implementation.
66 
67  double ShrinkFactor;
68 
69 private:
70  vtkShrinkFilter(const vtkShrinkFilter&) = delete;
71  void operator=(const vtkShrinkFilter&) = delete;
72 };
73 
74 #endif
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Store vtkAlgorithm input/output information.
static vtkUnstructuredGridAlgorithm * New()
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:39
Superclass for algorithms that produce only unstructured grid as output.
Store zero or more vtkInformation instances.
shrink cells composing an arbitrary data set