VMTK
Loading...
Searching...
No Matches
vtkvmtkCenterlineBranchGeometry.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=========================================================================*/
35
36#ifndef __vtkvmtkCenterlineBranchGeometry_h
37#define __vtkvmtkCenterlineBranchGeometry_h
38
39#include "vtkPolyDataAlgorithm.h"
40//#include "vtkvmtkComputationalGeometryWin32Header.h"
41#include "vtkvmtkWin32Header.h"
42#include "vtkPolyData.h"
43
44class vtkPoints;
45class vtkDoubleArray;
46class vtkIntArray;
47
48class VTK_VMTK_COMPUTATIONAL_GEOMETRY_EXPORT vtkvmtkCenterlineBranchGeometry : public vtkPolyDataAlgorithm
49{
50 public:
51 vtkTypeMacro(vtkvmtkCenterlineBranchGeometry,vtkPolyDataAlgorithm);
52 void PrintSelf(std::ostream& os, vtkIndent indent) override;
53
55
57
62 vtkSetStringMacro(RadiusArrayName);
63 vtkGetStringMacro(RadiusArrayName);
65
67
72 vtkSetStringMacro(GroupIdsArrayName);
73 vtkGetStringMacro(GroupIdsArrayName);
75
77
83 vtkSetStringMacro(BlankingArrayName);
84 vtkGetStringMacro(BlankingArrayName);
86
88
92 vtkSetStringMacro(LengthArrayName);
93 vtkGetStringMacro(LengthArrayName);
95
97
102 vtkSetStringMacro(CurvatureArrayName);
103 vtkGetStringMacro(CurvatureArrayName);
105
107
112 vtkSetStringMacro(TorsionArrayName);
113 vtkGetStringMacro(TorsionArrayName);
115
117
122 vtkSetStringMacro(TortuosityArrayName);
123 vtkGetStringMacro(TortuosityArrayName);
125
127
132 vtkSetMacro(MinSubsamplingSpacing,double);
133 vtkGetMacro(MinSubsamplingSpacing,double);
135
137
141 vtkSetMacro(SmoothingFactor,double);
142 vtkGetMacro(SmoothingFactor,double);
144
146
153
155
159 vtkSetMacro(LineSmoothing,int);
160 vtkGetMacro(LineSmoothing,int);
161 vtkBooleanMacro(LineSmoothing,int);
163
165
169 vtkSetMacro(LineSubsampling,int);
170 vtkGetMacro(LineSubsampling,int);
171 vtkBooleanMacro(LineSubsampling,int);
173
175
180 vtkSetMacro(SphereSubsampling,int);
181 vtkGetMacro(SphereSubsampling,int);
182 vtkBooleanMacro(SphereSubsampling,int);
184
185 protected:
188
189 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override;
190
191 double ComputeGroupLength(vtkPolyData* input, int branchGroupId);
192 double ComputeGroupCurvature(vtkPolyData* input, int branchGroupId);
193 double ComputeGroupTorsion(vtkPolyData* input, int branchGroupId);
194 double ComputeGroupTortuosity(vtkPolyData* input, int branchGroupId, double groupLength);
195
196 static void SubsampleLine(vtkPoints* linePoints, vtkPoints* subsampledLinePoints, double minSpacing = 0.01);
197 void SphereSubsampleLine(vtkPolyData* input, vtkIdType cellId, vtkPoints* subsampledLinePoints);
198
202
207
211
215
216 private:
218 void operator=(const vtkvmtkCenterlineBranchGeometry&); // Not implemented.
219};
220
221#endif
static vtkvmtkCenterlineBranchGeometry * New()
void SphereSubsampleLine(vtkPolyData *input, vtkIdType cellId, vtkPoints *subsampledLinePoints)
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
double ComputeGroupLength(vtkPolyData *input, int branchGroupId)
static void SubsampleLine(vtkPoints *linePoints, vtkPoints *subsampledLinePoints, double minSpacing=0.01)
double ComputeGroupTortuosity(vtkPolyData *input, int branchGroupId, double groupLength)
double ComputeGroupCurvature(vtkPolyData *input, int branchGroupId)
double ComputeGroupTorsion(vtkPolyData *input, int branchGroupId)
void PrintSelf(std::ostream &os, vtkIndent indent) override