30 #ifndef __vtkvmtkCenterlineBranchGeometry_h 31 #define __vtkvmtkCenterlineBranchGeometry_h 33 #include "vtkPolyDataAlgorithm.h" 35 #include "vtkvmtkWin32Header.h" 36 #include "vtkPolyData.h" 46 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
50 vtkSetStringMacro(RadiusArrayName);
51 vtkGetStringMacro(RadiusArrayName);
53 vtkSetStringMacro(GroupIdsArrayName);
54 vtkGetStringMacro(GroupIdsArrayName);
56 vtkSetStringMacro(BlankingArrayName);
57 vtkGetStringMacro(BlankingArrayName);
59 vtkSetStringMacro(LengthArrayName);
60 vtkGetStringMacro(LengthArrayName);
62 vtkSetStringMacro(CurvatureArrayName);
63 vtkGetStringMacro(CurvatureArrayName);
65 vtkSetStringMacro(TorsionArrayName);
66 vtkGetStringMacro(TorsionArrayName);
68 vtkSetStringMacro(TortuosityArrayName);
69 vtkGetStringMacro(TortuosityArrayName);
71 vtkSetMacro(MinSubsamplingSpacing,
double);
72 vtkGetMacro(MinSubsamplingSpacing,
double);
74 vtkSetMacro(SmoothingFactor,
double);
75 vtkGetMacro(SmoothingFactor,
double);
77 vtkSetMacro(NumberOfSmoothingIterations,
int);
78 vtkGetMacro(NumberOfSmoothingIterations,
int);
80 vtkSetMacro(LineSmoothing,
int);
81 vtkGetMacro(LineSmoothing,
int);
82 vtkBooleanMacro(LineSmoothing,
int);
84 vtkSetMacro(LineSubsampling,
int);
85 vtkGetMacro(LineSubsampling,
int);
86 vtkBooleanMacro(LineSubsampling,
int);
88 vtkSetMacro(SphereSubsampling,
int);
89 vtkGetMacro(SphereSubsampling,
int);
90 vtkBooleanMacro(SphereSubsampling,
int);
96 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
98 double ComputeGroupLength(vtkPolyData* input,
int branchGroupId);
99 double ComputeGroupCurvature(vtkPolyData* input,
int branchGroupId);
100 double ComputeGroupTorsion(vtkPolyData* input,
int branchGroupId);
101 double ComputeGroupTortuosity(vtkPolyData* input,
int branchGroupId,
double groupLength);
103 static void SubsampleLine(vtkPoints* linePoints, vtkPoints* subsampledLinePoints,
double minSpacing = 0.01);
104 void SphereSubsampleLine(vtkPolyData* input, vtkIdType cellId, vtkPoints* subsampledLinePoints);
double MinSubsamplingSpacing
Computes the length, curvature, torsion, and tortuosity each for branch within a split centerline...
int NumberOfSmoothingIterations
char * CurvatureArrayName
char * TortuosityArrayName