VTK
vtkSmoothPolyDataFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSmoothPolyDataFilter.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 =========================================================================*/
98 #ifndef vtkSmoothPolyDataFilter_h
99 #define vtkSmoothPolyDataFilter_h
100 
101 #include "vtkFiltersCoreModule.h" // For export macro
102 #include "vtkPolyDataAlgorithm.h"
103 
104 class vtkSmoothPoints;
105 
107 {
108 public:
110  void PrintSelf(ostream& os, vtkIndent indent);
111 
118 
120 
122  vtkSetClampMacro(Convergence,double,0.0,1.0);
123  vtkGetMacro(Convergence,double);
125 
127 
128  vtkSetClampMacro(NumberOfIterations,int,0,VTK_INT_MAX);
129  vtkGetMacro(NumberOfIterations,int);
131 
133 
138  vtkSetMacro(RelaxationFactor,double);
139  vtkGetMacro(RelaxationFactor,double);
141 
143 
144  vtkSetMacro(FeatureEdgeSmoothing,int);
145  vtkGetMacro(FeatureEdgeSmoothing,int);
146  vtkBooleanMacro(FeatureEdgeSmoothing,int);
148 
150 
151  vtkSetClampMacro(FeatureAngle,double,0.0,180.0);
152  vtkGetMacro(FeatureAngle,double);
154 
156 
158  vtkSetClampMacro(EdgeAngle,double,0.0,180.0);
159  vtkGetMacro(EdgeAngle,double);
161 
163 
164  vtkSetMacro(BoundarySmoothing,int);
165  vtkGetMacro(BoundarySmoothing,int);
166  vtkBooleanMacro(BoundarySmoothing,int);
168 
170 
171  vtkSetMacro(GenerateErrorScalars,int);
172  vtkGetMacro(GenerateErrorScalars,int);
173  vtkBooleanMacro(GenerateErrorScalars,int);
175 
177 
178  vtkSetMacro(GenerateErrorVectors,int);
179  vtkGetMacro(GenerateErrorVectors,int);
180  vtkBooleanMacro(GenerateErrorVectors,int);
182 
184 
190 
192 
195  vtkSetMacro(OutputPointsPrecision,int);
196  vtkGetMacro(OutputPointsPrecision,int);
198 
199 protected:
202 
205 
206  double Convergence;
210  double FeatureAngle;
211  double EdgeAngle;
216 
217  vtkSmoothPoints *SmoothPoints;
218 private:
219  vtkSmoothPolyDataFilter(const vtkSmoothPolyDataFilter&); // Not implemented.
220  void operator=(const vtkSmoothPolyDataFilter&); // Not implemented.
221 };
222 
223 #endif
vtkSmoothPolyDataFilter::NumberOfIterations
int NumberOfIterations
Definition: vtkSmoothPolyDataFilter.h:207
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:132
vtkSmoothPolyDataFilter::OutputPointsPrecision
int OutputPointsPrecision
Definition: vtkSmoothPolyDataFilter.h:215
vtkSmoothPolyDataFilter::RelaxationFactor
double RelaxationFactor
Definition: vtkSmoothPolyDataFilter.h:208
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkSmoothPolyDataFilter::BoundarySmoothing
int BoundarySmoothing
Definition: vtkSmoothPolyDataFilter.h:212
vtkSmoothPolyDataFilter::~vtkSmoothPolyDataFilter
~vtkSmoothPolyDataFilter()
Definition: vtkSmoothPolyDataFilter.h:201
vtkSmoothPolyDataFilter::GenerateErrorVectors
int GenerateErrorVectors
Definition: vtkSmoothPolyDataFilter.h:214
vtkSmoothPolyDataFilter::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkSmoothPolyDataFilter::Convergence
double Convergence
Definition: vtkSmoothPolyDataFilter.h:206
vtkSmoothPolyDataFilter::FeatureAngle
double FeatureAngle
Definition: vtkSmoothPolyDataFilter.h:210
vtkSmoothPolyDataFilter::SetSourceData
void SetSourceData(vtkPolyData *source)
vtkFiltersCoreModule.h
vtkPolyDataAlgorithm.h
source
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
Definition: vtkBoostGraphAdapter.h:821
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkSetClampMacro
#define vtkSetClampMacro(name, type, min, max)
Definition: vtkSetGet.h:143
vtkSmoothPolyDataFilter::FeatureEdgeSmoothing
int FeatureEdgeSmoothing
Definition: vtkSmoothPolyDataFilter.h:209
vtkSmoothPolyDataFilter::GetSource
vtkPolyData * GetSource()
vtkSmoothPolyDataFilter::SmoothPoints
vtkSmoothPoints * SmoothPoints
Definition: vtkSmoothPolyDataFilter.h:217
vtkSmoothPolyDataFilter::New
static vtkSmoothPolyDataFilter * New()
VTKFILTERSCORE_EXPORT
#define VTKFILTERSCORE_EXPORT
Definition: vtkFiltersCoreModule.h:15
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSmoothPolyDataFilter
adjust point positions using Laplacian smoothing
Definition: vtkSmoothPolyDataFilter.h:107
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkSmoothPolyDataFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkSmoothPolyDataFilter::vtkSmoothPolyDataFilter
vtkSmoothPolyDataFilter()
vtkSmoothPolyDataFilter::GenerateErrorScalars
int GenerateErrorScalars
Definition: vtkSmoothPolyDataFilter.h:213
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
vtkSmoothPolyDataFilter::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44
vtkSmoothPolyDataFilter::EdgeAngle
double EdgeAngle
Definition: vtkSmoothPolyDataFilter.h:211