VMTK
Loading...
Searching...
No Matches
vtkvmtkPolyDataCenterlineMetricFilter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: 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=========================================================================*/
34
35#ifndef __vtkvmtkPolyDataCenterlineMetricFilter_h
36#define __vtkvmtkPolyDataCenterlineMetricFilter_h
37
38#include "vtkPolyDataAlgorithm.h"
39//#include "vtkvmtkComputationalGeometryWin32Header.h"
40#include "vtkvmtkWin32Header.h"
41
42#include "vtkPolyData.h"
43
44class vtkDataArray;
45
46class VTK_VMTK_COMPUTATIONAL_GEOMETRY_EXPORT vtkvmtkPolyDataCenterlineMetricFilter : public vtkPolyDataAlgorithm
47{
48public:
49 vtkTypeMacro(vtkvmtkPolyDataCenterlineMetricFilter,vtkPolyDataAlgorithm);
50
52
56 vtkSetStringMacro(MetricArrayName);
57 vtkGetStringMacro(MetricArrayName);
59
61
66 vtkSetStringMacro(GroupIdsArrayName);
67 vtkGetStringMacro(GroupIdsArrayName);
69
71
74 vtkSetObjectMacro(Centerlines,vtkPolyData);
75 vtkGetObjectMacro(Centerlines,vtkPolyData);
77
79
84 vtkSetMacro(UseRadiusInformation,int);
85 vtkGetMacro(UseRadiusInformation,int);
86 vtkBooleanMacro(UseRadiusInformation,int);
88
90
95 vtkSetStringMacro(RadiusArrayName);
96 vtkGetStringMacro(RadiusArrayName);
98
100
104 vtkSetStringMacro(CenterlineGroupIdsArrayName);
105 vtkGetStringMacro(CenterlineGroupIdsArrayName);
107
109
114 vtkSetStringMacro(CenterlineIdsArrayName);
115 vtkGetStringMacro(CenterlineIdsArrayName);
117
119
123 vtkSetStringMacro(CenterlineTractIdsArrayName);
124 vtkGetStringMacro(CenterlineTractIdsArrayName);
126
128
133 vtkSetStringMacro(BlankingArrayName);
134 vtkGetStringMacro(BlankingArrayName);
136
138
142 vtkSetMacro(IncludeBifurcations,int);
143 vtkGetMacro(IncludeBifurcations,int);
144 vtkBooleanMacro(IncludeBifurcations,int);
146
147protected:
150
151 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override;
152
153 virtual void EvaluateMetric(vtkIdType pointId, double point[3], vtkIdType groupId, vtkDataArray* metricArray) = 0;
154
157
159
160 vtkPolyData* Centerlines;
161
166
169
170private:
172 void operator=(const vtkvmtkPolyDataCenterlineMetricFilter&); // Not implemented.
173};
174
175#endif
176
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
virtual void EvaluateMetric(vtkIdType pointId, double point[3], vtkIdType groupId, vtkDataArray *metricArray)=0