VTK
vtkShrinkPolyData.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkShrinkPolyData.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 =========================================================================*/
45 #ifndef vtkShrinkPolyData_h
46 #define vtkShrinkPolyData_h
47 
48 #include "vtkFiltersGeneralModule.h" // For export macro
49 #include "vtkPolyDataAlgorithm.h"
50 
51 class VTKFILTERSGENERAL_EXPORT vtkShrinkPolyData : public vtkPolyDataAlgorithm
52 {
53 public:
56  void PrintSelf(ostream& os, vtkIndent indent) override;
57 
59 
62  vtkSetClampMacro(ShrinkFactor,double,0.0,1.0);
64 
66 
69  vtkGetMacro(ShrinkFactor,double);
71 
72 protected:
73  vtkShrinkPolyData(double sf=0.5);
74  ~vtkShrinkPolyData() override {}
75 
77  double ShrinkFactor;
78 private:
79  vtkShrinkPolyData(const vtkShrinkPolyData&) = delete;
80  void operator=(const vtkShrinkPolyData&) = delete;
81 };
82 
83 #endif
vtkShrinkPolyData::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkShrinkPolyData::vtkShrinkPolyData
vtkShrinkPolyData(double sf=0.5)
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkShrinkPolyData::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkShrinkPolyData
shrink cells composing PolyData
Definition: vtkShrinkPolyData.h:52
vtkPolyDataAlgorithm.h
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkShrinkPolyData::New
static vtkShrinkPolyData * New()
vtkShrinkPolyData::~vtkShrinkPolyData
~vtkShrinkPolyData() override
Definition: vtkShrinkPolyData.h:74
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkShrinkPolyData::ShrinkFactor
double ShrinkFactor
Definition: vtkShrinkPolyData.h:77
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:45