VMTK
Loading...
Searching...
No Matches
vtkvmtkCenterlineSmoothing.h
Go to the documentation of this file.
1/*=========================================================================
2
3Program: VTK Blood Vessel Smoothing
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=========================================================================*/
32
33#ifndef __vtkvmtkCenterlineSmoothing_h
34#define __vtkvmtkCenterlineSmoothing_h
35
36#include "vtkPolyDataAlgorithm.h"
37//#include "vtkvmtkComputationalSmoothingWin32Header.h"
38#include "vtkvmtkWin32Header.h"
39
40class vtkDoubleArray;
41
42class VTK_VMTK_COMPUTATIONAL_GEOMETRY_EXPORT vtkvmtkCenterlineSmoothing : public vtkPolyDataAlgorithm
43{
44 public:
45 vtkTypeMacro(vtkvmtkCenterlineSmoothing,vtkPolyDataAlgorithm);
46 void PrintSelf(std::ostream& os, vtkIndent indent) override;
47
49
51
55 vtkSetMacro(SmoothingFactor,double);
56 vtkGetMacro(SmoothingFactor,double);
58
60
66
72 static void SmoothLine(vtkPoints* linePoints, vtkPoints* smoothLinePoints, int numberOfIterations = 10, double relaxation = 0.1);
73
74 protected:
77
78 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override;
79
82
83 private:
85 void operator=(const vtkvmtkCenterlineSmoothing&); // Not implemented.
86};
87
88#endif
static void SmoothLine(vtkPoints *linePoints, vtkPoints *smoothLinePoints, int numberOfIterations=10, double relaxation=0.1)
static vtkvmtkCenterlineSmoothing * New()
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
void PrintSelf(std::ostream &os, vtkIndent indent) override