93#ifndef vtkAttributeSmoothingFilter_h
94#define vtkAttributeSmoothingFilter_h
97#include "vtkFiltersGeometryModule.h"
102VTK_ABI_NAMESPACE_BEGIN
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();
smooth mesh point attribute data using distance weighted Laplacian kernel
std::vector< std::string > ExcludedArrays
static vtkAttributeSmoothingFilter * 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...
vtkSmartPointer< vtkUnsignedCharArray > SmoothingMask
void ClearExcludedArrays()
Clears the contents of excluded array list.
void AddExcludedArray(const std::string &excludedArray)
Adds an array to the list of arrays which are to be excluded from the interpolation process.
void SetWeightsTypeToAverage()
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.
int GetNumberOfExcludedArrays()
Return the number of excluded arrays.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
void SetWeightsTypeToDistance()
Indicate how to compute weights, using 1) a simple average of all connected points in the stencil; 2)...
void SetWeightsTypeToDistance2()
Indicate how to compute weights, using 1) a simple average of all connected points in the stencil; 2)...
~vtkAttributeSmoothingFilter() override=default
void SetSmoothingStrategyToSmoothingMask()
Indicate how to constrain smoothing of the attribute data.
vtkAttributeSmoothingFilter()
void SetSmoothingStrategyToAllPoints()
Indicate how to constrain smoothing of the attribute data.
void SetSmoothingStrategyToAllButBoundary()
Indicate how to constrain smoothing of the attribute data.
const char * GetExcludedArray(int i)
Return the name of the ith excluded array.
Superclass for algorithms that produce output of the same type as input.
a simple class to control print indentation
virtual void Modified()
Update the modification time for this object.
Hold a reference to a vtkObjectBase instance.
dynamic, self-adjusting array of unsigned char