VMTK
Loading...
Searching...
No Matches
DifferentialGeometry
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
45
class
VTK_VMTK_DIFFERENTIAL_GEOMETRY_EXPORT
vtkvmtkPolyDataClampedSmoothingFilter
:
public
vtkPolyDataAlgorithm
46
{
47
public
:
48
49
static
vtkvmtkPolyDataClampedSmoothingFilter
*
New
();
50
vtkTypeMacro(
vtkvmtkPolyDataClampedSmoothingFilter
,vtkPolyDataAlgorithm);
51
void
PrintSelf
(std::ostream& os, vtkIndent indent)
override
;
52
54
60
vtkSetMacro(
SmoothingType
,
int
);
61
vtkGetMacro(
SmoothingType
,
int
);
62
void
SetSmoothingTypeToLaplacian
()
63
{ this->
SmoothingType
=
LAPLACIAN
; }
64
void
SetSmoothingTypeToCurvatureDiffusion
()
65
{ this->
SmoothingType
=
CURVATURE_DIFFUSION
; }
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
{
118
LAPLACIAN
,
119
CURVATURE_DIFFUSION
120
};
121
//ETX
122
123
protected
:
124
vtkvmtkPolyDataClampedSmoothingFilter
();
125
~vtkvmtkPolyDataClampedSmoothingFilter
();
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
132
int
SmoothingType
;
133
int
NumberOfIterations
;
134
int
Clamp
;
135
double
ClampThreshold
;
136
double
TimeStepFactor
;
137
138
char
*
ClampArrayName
;
139
140
private
:
141
vtkvmtkPolyDataClampedSmoothingFilter
(
const
vtkvmtkPolyDataClampedSmoothingFilter
&);
// Not implemented.
142
void
operator=(
const
vtkvmtkPolyDataClampedSmoothingFilter
&);
// Not implemented.
143
};
144
145
#endif
146
vtkvmtkPolyDataClampedSmoothingFilter
Apply a laplacian or curvature based smoothing filter to a surface with particular points fixed in pl...
Definition
vtkvmtkPolyDataClampedSmoothingFilter.h:46
vtkvmtkPolyDataClampedSmoothingFilter::New
static vtkvmtkPolyDataClampedSmoothingFilter * New()
vtkvmtkPolyDataClampedSmoothingFilter::TimeStepFactor
double TimeStepFactor
Definition
vtkvmtkPolyDataClampedSmoothingFilter.h:136
vtkvmtkPolyDataClampedSmoothingFilter::SetSmoothingTypeToCurvatureDiffusion
void SetSmoothingTypeToCurvatureDiffusion()
Definition
vtkvmtkPolyDataClampedSmoothingFilter.h:64
vtkvmtkPolyDataClampedSmoothingFilter::SetSmoothingTypeToLaplacian
void SetSmoothingTypeToLaplacian()
Definition
vtkvmtkPolyDataClampedSmoothingFilter.h:62
vtkvmtkPolyDataClampedSmoothingFilter::Clamp
int Clamp
Definition
vtkvmtkPolyDataClampedSmoothingFilter.h:134
vtkvmtkPolyDataClampedSmoothingFilter::SmoothingType
int SmoothingType
Definition
vtkvmtkPolyDataClampedSmoothingFilter.h:132
vtkvmtkPolyDataClampedSmoothingFilter::NumberOfIterations
int NumberOfIterations
Definition
vtkvmtkPolyDataClampedSmoothingFilter.h:133
vtkvmtkPolyDataClampedSmoothingFilter::ClampThreshold
double ClampThreshold
Definition
vtkvmtkPolyDataClampedSmoothingFilter.h:135
vtkvmtkPolyDataClampedSmoothingFilter::vtkvmtkPolyDataClampedSmoothingFilter
vtkvmtkPolyDataClampedSmoothingFilter()
Definition
vtkvmtkPolyDataClampedSmoothingFilter.cxx:37
vtkvmtkPolyDataClampedSmoothingFilter::ClampArrayName
char * ClampArrayName
Definition
vtkvmtkPolyDataClampedSmoothingFilter.h:138
vtkvmtkPolyDataClampedSmoothingFilter::CURVATURE_DIFFUSION
@ CURVATURE_DIFFUSION
Definition
vtkvmtkPolyDataClampedSmoothingFilter.h:119
vtkvmtkPolyDataClampedSmoothingFilter::LAPLACIAN
@ LAPLACIAN
Definition
vtkvmtkPolyDataClampedSmoothingFilter.h:118
vtkvmtkPolyDataClampedSmoothingFilter::PrintSelf
void PrintSelf(std::ostream &os, vtkIndent indent) override
Definition
vtkvmtkPolyDataClampedSmoothingFilter.cxx:288
Generated by
1.15.0