28 #ifndef __vtkvmtkPolyDataCenterlines_h 29 #define __vtkvmtkPolyDataCenterlines_h 31 #include "vtkPolyDataAlgorithm.h" 33 #include "vtkvmtkWin32Header.h" 35 #include "vtkUnstructuredGrid.h" 46 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
50 virtual void SetSourceSeedIds(vtkIdList*);
51 vtkGetObjectMacro(SourceSeedIds,vtkIdList);
53 virtual void SetTargetSeedIds(vtkIdList*);
54 vtkGetObjectMacro(TargetSeedIds,vtkIdList);
56 virtual void SetCapCenterIds(vtkIdList*);
57 vtkGetObjectMacro(CapCenterIds,vtkIdList);
59 vtkSetObjectMacro(DelaunayTessellation,vtkUnstructuredGrid);
60 vtkGetObjectMacro(DelaunayTessellation,vtkUnstructuredGrid);
62 vtkGetObjectMacro(VoronoiDiagram,vtkPolyData);
64 vtkGetObjectMacro(PoleIds,vtkIdList);
66 vtkSetStringMacro(RadiusArrayName);
67 vtkGetStringMacro(RadiusArrayName);
69 vtkSetStringMacro(CostFunction);
70 vtkGetStringMacro(CostFunction);
72 vtkSetStringMacro(EikonalSolutionArrayName);
73 vtkGetStringMacro(EikonalSolutionArrayName);
75 vtkSetStringMacro(EdgeArrayName);
76 vtkGetStringMacro(EdgeArrayName);
78 vtkSetStringMacro(EdgePCoordArrayName);
79 vtkGetStringMacro(EdgePCoordArrayName);
81 vtkSetStringMacro(CostFunctionArrayName);
82 vtkGetStringMacro(CostFunctionArrayName);
84 vtkSetMacro(FlipNormals,
int);
85 vtkGetMacro(FlipNormals,
int);
86 vtkBooleanMacro(FlipNormals,
int);
88 vtkSetMacro(SimplifyVoronoi,
int);
89 vtkGetMacro(SimplifyVoronoi,
int);
90 vtkBooleanMacro(SimplifyVoronoi,
int);
92 vtkSetMacro(CenterlineResampling,
int);
93 vtkGetMacro(CenterlineResampling,
int);
94 vtkBooleanMacro(CenterlineResampling,
int);
96 vtkSetMacro(ResamplingStepLength,
double);
97 vtkGetMacro(ResamplingStepLength,
double);
99 vtkSetMacro(AppendEndPointsToCenterlines,
int);
100 vtkGetMacro(AppendEndPointsToCenterlines,
int);
101 vtkBooleanMacro(AppendEndPointsToCenterlines,
int);
103 vtkSetMacro(GenerateDelaunayTessellation,
int);
104 vtkGetMacro(GenerateDelaunayTessellation,
int);
105 vtkBooleanMacro(GenerateDelaunayTessellation,
int);
107 vtkSetMacro(DelaunayTolerance,
double);
108 vtkGetMacro(DelaunayTolerance,
double);
115 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
117 void FindVoronoiSeeds(vtkUnstructuredGrid *delaunay, vtkIdList *boundaryBaricenterIds, vtkDataArray *normals, vtkIdList *seedIds);
118 void AppendEndPoints(vtkPoints* endPointPairs);
119 void ResampleCenterlines();
120 void ReverseCenterlines();
char * EikonalSolutionArrayName
int GenerateDelaunayTessellation
vtkPolyData * VoronoiDiagram
Compute centerlines from surface.
int AppendEndPointsToCenterlines
vtkIdList * SourceSeedIds
char * CostFunctionArrayName
double ResamplingStepLength
vtkUnstructuredGrid * DelaunayTessellation
vtkIdList * TargetSeedIds
char * EdgePCoordArrayName