93 #ifndef vtkAttributeSmoothingFilter_h
94 #define vtkAttributeSmoothingFilter_h
97 #include "vtkFiltersGeometryModule.h"
102 VTK_ABI_NAMESPACE_BEGIN
121 vtkSetClampMacro(NumberOfIterations,
int, 0,
VTK_INT_MAX);
122 vtkGetMacro(NumberOfIterations,
int);
133 vtkSetClampMacro(RelaxationFactor,
double, 0.0, 1.0);
134 vtkGetMacro(RelaxationFactor,
double);
140 ALL_BUT_BOUNDARY = 1,
141 ADJACENT_TO_BOUNDARY = 2,
158 vtkSetClampMacro(SmoothingStrategy,
int, ALL_POINTS, SMOOTHING_MASK);
159 vtkGetMacro(SmoothingStrategy,
int);
164 this->SetSmoothingStrategy(ADJACENT_TO_BOUNDARY);
198 vtkSetClampMacro(WeightsType,
int, AVERAGE, DISTANCE2);
199 vtkGetMacro(WeightsType,
int);
213 this->ExcludedArrays.push_back(excludedArray);
224 this->ExcludedArrays.clear();
240 if (i < 0 || i >= static_cast<int>(this->ExcludedArrays.size()))
244 return this->ExcludedArrays[i].c_str();
266 VTK_ABI_NAMESPACE_END
void SetWeightsTypeToDistance2()
Indicate how to compute weights, using 1) a simple average of all connected points in the stencil; 2)...
void SetSmoothingStrategyToAdjacentToBoundary()
Indicate how to constrain smoothing of the attribute data.
void AddExcludedArray(const std::string &excludedArray)
Adds an array to the list of arrays which are to be excluded from the interpolation process...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetWeightsTypeToAverage()
Indicate how to compute weights, using 1) a simple average of all connected points in the stencil; 2)...
a simple class to control print indentation
smooth mesh point attribute data using distance weighted Laplacian kernel
void SetSmoothingStrategyToSmoothingMask()
Indicate how to constrain smoothing of the attribute data.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
virtual void Modified()
Update the modification time for this object.
void ClearExcludedArrays()
Clears the contents of excluded array list.
dynamic, self-adjusting array of unsigned char
std::vector< std::string > ExcludedArrays
void SetSmoothingStrategyToAllPoints()
Indicate how to constrain smoothing of the attribute data.
int GetNumberOfExcludedArrays()
Return the number of excluded arrays.
Superclass for algorithms that produce output of the same type as input.
static vtkDataSetAlgorithm * New()
const char * GetExcludedArray(int i)
Return the name of the ith excluded array.
vtkSmartPointer< vtkUnsignedCharArray > SmoothingMask
void SetWeightsTypeToDistance()
Indicate how to compute weights, using 1) a simple average of all connected points in the stencil; 2)...
void SetSmoothingStrategyToAllButBoundary()
Indicate how to constrain smoothing of the attribute data.