VTK  9.2.5
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 =========================================================================*/
145 #ifndef vtkShrinkFilter_h
146 #define vtkShrinkFilter_h
147 
148 #include "vtkFiltersGeneralModule.h" // For export macro
150 
151 class VTKFILTERSGENERAL_EXPORT vtkShrinkFilter : public vtkUnstructuredGridAlgorithm
152 {
153 public:
154  static vtkShrinkFilter* New();
156  void PrintSelf(ostream& os, vtkIndent indent) override;
157 
159 
162  vtkSetClampMacro(ShrinkFactor, double, 0.0, 1.0);
163  vtkGetMacro(ShrinkFactor, double);
165 
166 protected:
168  ~vtkShrinkFilter() override;
169 
170  // Override to specify support for any vtkDataSet input type.
172 
173  // Main implementation.
175 
176  double ShrinkFactor;
177 
178 private:
179  vtkShrinkFilter(const vtkShrinkFilter&) = delete;
180  void operator=(const vtkShrinkFilter&) = delete;
181 };
182 
183 #endif
a simple class to control print indentation
Definition: vtkIndent.h:119
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.
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453