VMTK
Loading...
Searching...
No Matches
vtkvmtkCenterlineBifurcationVectors.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=========================================================================*/
41
42#ifndef __vtkvmtkCenterlineBifurcationVectors_h
43#define __vtkvmtkCenterlineBifurcationVectors_h
44
45#include "vtkPolyDataAlgorithm.h"
46//#include "vtkvmtkComputationalGeometryWin32Header.h"
47#include "vtkvmtkWin32Header.h"
48#include "vtkPolyData.h"
49
50class vtkPoints;
51class vtkDoubleArray;
52class vtkIntArray;
53
54class VTK_VMTK_COMPUTATIONAL_GEOMETRY_EXPORT vtkvmtkCenterlineBifurcationVectors : public vtkPolyDataAlgorithm
55{
56 public:
57 vtkTypeMacro(vtkvmtkCenterlineBifurcationVectors,vtkPolyDataAlgorithm);
58 void PrintSelf(std::ostream& os, vtkIndent indent) override;
59
61
63
68 vtkSetStringMacro(RadiusArrayName);
69 vtkGetStringMacro(RadiusArrayName);
71
73
78 vtkSetStringMacro(GroupIdsArrayName);
79 vtkGetStringMacro(GroupIdsArrayName);
81
83
88 vtkSetStringMacro(CenterlineIdsArrayName);
89 vtkGetStringMacro(CenterlineIdsArrayName);
91
93
98 vtkSetStringMacro(TractIdsArrayName);
99 vtkGetStringMacro(TractIdsArrayName);
101
103
109 vtkSetStringMacro(BlankingArrayName);
110 vtkGetStringMacro(BlankingArrayName);
112
114
119 vtkSetObjectMacro(ReferenceSystems,vtkPolyData);
120 vtkGetObjectMacro(ReferenceSystems,vtkPolyData);
122
124
132
134
142
144
152
154
159 vtkSetStringMacro(BifurcationVectorsArrayName);
160 vtkGetStringMacro(BifurcationVectorsArrayName);
162
164
172
174
182
184
193
195
204
206
215
217
225
227
233 vtkBooleanMacro(NormalizeBifurcationVectors,int);
235//BTX
240 enum
241 {
244 };
245//ETX
246 protected:
249
250 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override;
251
252 void ComputeBifurcationVectors(vtkPolyData* input, int bifurcationGroupId, vtkIdList* bifurcationVectorsGroupIds, vtkIntArray* bifurcationVectorsOrientation, vtkDoubleArray* bifurcationVectors, vtkPoints* bifurcationVectorsPoints);
253
254 void ComputeBifurcationVectorComponents(int bifurcationGroupId, vtkDoubleArray* bifurcationVectors, vtkDoubleArray* inPlaneBifurcationVectors, vtkDoubleArray* outOfPlaneBifurcationVectors);
255
256 void ComputeBifurcationVectorAngles(int bifurcationGroupId, vtkDoubleArray* bifurcationVectors, vtkDoubleArray* inPlaneBifurcationVectors, vtkDoubleArray* outOfPlaneBifurcationVectors, vtkDoubleArray* inPlaneBifurcationVectorAngles, vtkDoubleArray* outOfPlaneBifurcationVectorAngles);
257
263
264 vtkPolyData* ReferenceSystems;
265
269
274
277
279
281
282 private:
284 void operator=(const vtkvmtkCenterlineBifurcationVectors&); // Not implemented.
285};
286
287#endif
Compute vectors which represent the orientation of branches involved within a bifurcation from a spli...
static vtkvmtkCenterlineBifurcationVectors * New()
void PrintSelf(std::ostream &os, vtkIndent indent) override