VMTK
Loading...
Searching...
No Matches
vtkvmtkPolyDataClampedSmoothingFilter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: VMTK
4
5 Copyright (c) Luca Antiga, David Steinman. All rights reserved.
6 See LICENSE file for details.
7
8 Portions of this code are covered under the VTK copyright.
9 See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm
10 for details.
11
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
15
16=========================================================================*/
37
38#ifndef __vtkvmtkPolyDataClampedSmoothingFilter_h
39#define __vtkvmtkPolyDataClampedSmoothingFilter_h
40
41#include "vtkObject.h"
42#include "vtkPolyDataAlgorithm.h"
43#include "vtkvmtkWin32Header.h"
44
45class VTK_VMTK_DIFFERENTIAL_GEOMETRY_EXPORT vtkvmtkPolyDataClampedSmoothingFilter : public vtkPolyDataAlgorithm
46{
47public:
48
50 vtkTypeMacro(vtkvmtkPolyDataClampedSmoothingFilter,vtkPolyDataAlgorithm);
51 void PrintSelf(std::ostream& os, vtkIndent indent) override;
52
54
60 vtkSetMacro(SmoothingType,int);
61 vtkGetMacro(SmoothingType,int);
66
67
69
72 vtkSetMacro(NumberOfIterations,int);
73 vtkGetMacro(NumberOfIterations,int);
75
77
81 vtkSetMacro(Clamp,int);
82 vtkGetMacro(Clamp,int);
83 vtkBooleanMacro(Clamp,int);
85
87
91 vtkSetMacro(ClampThreshold,double);
92 vtkGetMacro(ClampThreshold,double);
94
96
101 vtkSetStringMacro(ClampArrayName);
102 vtkGetStringMacro(ClampArrayName);
104
106
112 vtkSetMacro(TimeStepFactor,double);
113 vtkGetMacro(TimeStepFactor,double);
115
116//BTX
117 enum {
120 };
121//ETX
122
123protected:
126
127 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override;
128 void LaplacianIteration(vtkPolyData* surface);
129 void CurvatureDiffusionIteration(vtkPolyData* surface);
130 double ComputeTimeStep(vtkPolyData* surface);
131
134 int Clamp;
137
139
140private:
142 void operator=(const vtkvmtkPolyDataClampedSmoothingFilter&); // Not implemented.
143};
144
145#endif
146
Apply a laplacian or curvature based smoothing filter to a surface with particular points fixed in pl...
static vtkvmtkPolyDataClampedSmoothingFilter * New()
void PrintSelf(std::ostream &os, vtkIndent indent) override