VTK  9.3.1
vtkShrinkFilter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
24 #ifndef vtkShrinkFilter_h
25 #define vtkShrinkFilter_h
26 
27 #include "vtkFiltersGeneralModule.h" // For export macro
29 
30 VTK_ABI_NAMESPACE_BEGIN
31 class VTKFILTERSGENERAL_EXPORT vtkShrinkFilter : public vtkUnstructuredGridAlgorithm
32 {
33 public:
34  static vtkShrinkFilter* New();
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
39 
42  vtkSetClampMacro(ShrinkFactor, double, 0.0, 1.0);
43  vtkGetMacro(ShrinkFactor, double);
45 
46 protected:
48  ~vtkShrinkFilter() override;
49 
50  // Override to specify support for any vtkDataSet input type.
52 
53  // Main implementation.
55 
56  double ShrinkFactor;
57 
58 private:
59  vtkShrinkFilter(const vtkShrinkFilter&) = delete;
60  void operator=(const vtkShrinkFilter&) = delete;
61 };
62 
63 VTK_ABI_NAMESPACE_END
64 #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:28
Superclass for algorithms that produce only unstructured grid as output.
Store zero or more vtkInformation instances.
shrink cells composing an arbitrary data set