VMTK
Loading...
Searching...
No Matches
vtkvmtkCenterlineGeometry.h
Go to the documentation of this file.
1/*=========================================================================
2
3Program: 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=========================================================================*/
43
44#ifndef __vtkvmtkCenterlineGeometry_h
45#define __vtkvmtkCenterlineGeometry_h
46
47#include "vtkPolyDataAlgorithm.h"
48//#include "vtkvmtkComputationalGeometryWin32Header.h"
49#include "vtkvmtkWin32Header.h"
50
51class vtkDoubleArray;
52
53class VTK_VMTK_COMPUTATIONAL_GEOMETRY_EXPORT vtkvmtkCenterlineGeometry : public vtkPolyDataAlgorithm
54{
55 public:
56 vtkTypeMacro(vtkvmtkCenterlineGeometry,vtkPolyDataAlgorithm);
57 void PrintSelf(std::ostream& os, vtkIndent indent) override;
58
60
62
66 vtkSetStringMacro(LengthArrayName);
67 vtkGetStringMacro(LengthArrayName);
69
71
76 vtkSetStringMacro(CurvatureArrayName);
77 vtkGetStringMacro(CurvatureArrayName);
79
81
86 vtkSetStringMacro(TorsionArrayName);
87 vtkGetStringMacro(TorsionArrayName);
89
91
97 vtkSetStringMacro(TortuosityArrayName);
98 vtkGetStringMacro(TortuosityArrayName);
100
102
107 vtkSetStringMacro(FrenetTangentArrayName);
108 vtkGetStringMacro(FrenetTangentArrayName);
110
112
117 vtkSetStringMacro(FrenetNormalArrayName);
118 vtkGetStringMacro(FrenetNormalArrayName);
120
122
127 vtkSetStringMacro(FrenetBinormalArrayName);
128 vtkGetStringMacro(FrenetBinormalArrayName);
130
132
135 vtkSetMacro(SmoothingFactor,double);
136 vtkGetMacro(SmoothingFactor,double);
138
140
145
147
152 vtkSetMacro(LineSmoothing,int);
153 vtkGetMacro(LineSmoothing,int);
154 vtkBooleanMacro(LineSmoothing,int);
156
158
162 vtkSetMacro(OutputSmoothedLines,int);
163 vtkGetMacro(OutputSmoothedLines,int);
164 vtkBooleanMacro(OutputSmoothedLines,int);
166
171 static double ComputeLineCurvature(vtkPoints* linePoints, vtkDoubleArray* curvatureArray);
172
177 static double ComputeLineTorsion(vtkPoints* linePoints, vtkDoubleArray* torsionArray);
178
183 static void ComputeLineFrenetReferenceSystem(vtkPoints* linePoints, vtkDoubleArray* lineTangentArray, vtkDoubleArray* lineNormalArray, vtkDoubleArray* lineBinormalArray);
184
185 protected:
188
189 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override;
190
198
203
204 private:
205 vtkvmtkCenterlineGeometry(const vtkvmtkCenterlineGeometry&); // Not implemented.
206 void operator=(const vtkvmtkCenterlineGeometry&); // Not implemented.
207};
208
209#endif
static void ComputeLineFrenetReferenceSystem(vtkPoints *linePoints, vtkDoubleArray *lineTangentArray, vtkDoubleArray *lineNormalArray, vtkDoubleArray *lineBinormalArray)
static double ComputeLineTorsion(vtkPoints *linePoints, vtkDoubleArray *torsionArray)
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
static vtkvmtkCenterlineGeometry * New()
void PrintSelf(std::ostream &os, vtkIndent indent) override
static double ComputeLineCurvature(vtkPoints *linePoints, vtkDoubleArray *curvatureArray)