VTK  9.3.20240423
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
133#ifndef vtkShrinkFilter_h
134#define vtkShrinkFilter_h
135
136#include "vtkFiltersGeneralModule.h" // For export macro
138
139VTK_ABI_NAMESPACE_BEGIN
140class VTKFILTERSGENERAL_EXPORT vtkShrinkFilter : public vtkUnstructuredGridAlgorithm
141{
142public:
145 void PrintSelf(ostream& os, vtkIndent indent) override;
146
148
151 vtkSetClampMacro(ShrinkFactor, double, 0.0, 1.0);
152 vtkGetMacro(ShrinkFactor, double);
154
155protected:
158
159 // Override to specify support for any vtkDataSet input type.
160 int FillInputPortInformation(int port, vtkInformation* info) override;
161
162 // Main implementation.
164
166
167private:
168 vtkShrinkFilter(const vtkShrinkFilter&) = delete;
169 void operator=(const vtkShrinkFilter&) = delete;
170};
171
172VTK_ABI_NAMESPACE_END
173#endif
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
shrink cells composing an arbitrary data set
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
static vtkShrinkFilter * New()
~vtkShrinkFilter() override
Superclass for algorithms that produce only unstructured grid as output.