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