VTK  9.2.6
vtkConstrainedSmoothingFilter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkConstrainedSmoothingFilter.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=========================================================================*/
55
56#ifndef vtkConstrainedSmoothingFilter_h
57#define vtkConstrainedSmoothingFilter_h
58
59#include "vtkCellArray.h" // For point smoothing stencils
60#include "vtkFiltersCoreModule.h" // For export macro
62
63class VTKFILTERSCORE_EXPORT vtkConstrainedSmoothingFilter : public vtkPointSetAlgorithm
64{
65public:
67
73 void PrintSelf(ostream& os, vtkIndent indent) override;
75
77
83 vtkSetClampMacro(Convergence, double, 0.0, 1.0);
84 vtkGetMacro(Convergence, double);
86
88
93 vtkSetClampMacro(NumberOfIterations, int, 0, VTK_INT_MAX);
94 vtkGetMacro(NumberOfIterations, int);
96
98
105 vtkSetMacro(RelaxationFactor, double);
106 vtkGetMacro(RelaxationFactor, double);
108
115
117
127 vtkGetMacro(ConstraintStrategy, int);
135
137
143 vtkSetClampMacro(ConstraintDistance, double, 0.0, VTK_FLOAT_MAX);
144 vtkGetMacro(ConstraintDistance, double);
146
148
158
160
164 vtkSetMacro(GenerateErrorScalars, bool);
165 vtkGetMacro(GenerateErrorScalars, bool);
166 vtkBooleanMacro(GenerateErrorScalars, bool);
168
170
174 vtkSetMacro(GenerateErrorVectors, bool);
175 vtkGetMacro(GenerateErrorVectors, bool);
176 vtkBooleanMacro(GenerateErrorVectors, bool);
178
180
185 vtkSetMacro(OutputPointsPrecision, int);
186 vtkGetMacro(OutputPointsPrecision, int);
188
189protected:
191 ~vtkConstrainedSmoothingFilter() override = default;
192
196
200
204
206
207private:
209 void operator=(const vtkConstrainedSmoothingFilter&) = delete;
210};
211
212#endif
object to represent cell connectivity
void SetConstraintStrategyToConstraintDistance()
Indicate how to apply constraints.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkSmartPointer< vtkCellArray > SmoothingStencils
~vtkConstrainedSmoothingFilter() override=default
void SetConstraintStrategyToDefault()
Indicate how to apply constraints.
virtual void SetConstraintStrategy(int)
Indicate how to apply constraints.
static vtkConstrainedSmoothingFilter * New()
Standard methods for instantiation, to obtain type information, and print the state of a class instan...
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation, to obtain type information, and print the state of a class instan...
vtkSetSmartPointerMacro(SmoothingStencils, vtkCellArray)
Set / get the point smoothing stencils.
void SetConstraintStrategyToConstraintArray()
Indicate how to apply constraints.
vtkGetSmartPointerMacro(SmoothingStencils, vtkCellArray)
Set / get the point smoothing stencils.
a simple class to control print indentation
Definition vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Hold a reference to a vtkObjectBase instance.
#define VTK_INT_MAX
Definition vtkType.h:155
#define VTK_FLOAT_MAX
Definition vtkType.h:163