VMTK
Loading...
Searching...
No Matches
vtkvmtkCenterlineSplitExtractor.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=========================================================================*/
32
33#ifndef __vtkvmtkCenterlineSplitExtractor_h
34#define __vtkvmtkCenterlineSplitExtractor_h
35
37#include "vtkvmtkWin32Header.h"
38
39class VTK_VMTK_COMPUTATIONAL_GEOMETRY_EXPORT vtkvmtkCenterlineSplitExtractor : public vtkvmtkCenterlineSplittingAndGroupingFilter
40{
41 public:
43 void PrintSelf(std::ostream& os, vtkIndent indent) override;
44
46
48
53 vtkSetVectorMacro(SplitPoint,double,3);
54 vtkGetVectorMacro(SplitPoint,double,3);
56
58
62 vtkSetMacro(Tolerance,double);
63 vtkGetMacro(Tolerance,double);
65
67
71 vtkSetMacro(GapLength,double);
72 vtkGetMacro(GapLength,double);
74
76
80 vtkSetVectorMacro(SplitPoint2,double,3);
81 vtkGetVectorMacro(SplitPoint2,double,3);
83
85
91 vtkSetMacro(SplittingMode,int);
92 vtkGetMacro(SplittingMode,int);
94
100
107
108//BTX
112 enum {
115 };
116//ETX
117
118 protected:
121
122 virtual void ComputeCenterlineSplitting(vtkPolyData* input, vtkIdType cellId) override;
123 virtual void ComputePointAndGapCenterlineSplitting(vtkPolyData* input, vtkIdType cellId);
124 virtual void ComputeBetweenPointsCenterlineSplitting(vtkPolyData* input, vtkIdType cellId);
125
126 double SplitPoint[3];
127 double SplitPoint2[3];
128 double Tolerance;
129 double GapLength;
130
132
133 private:
135 void operator=(const vtkvmtkCenterlineSplitExtractor&); // Not implemented.
136};
137
138#endif
Split a centerline into three tracts with the middle (blanked) tract being initialized between any tw...
virtual void SetSplittingMode(int)
static vtkvmtkCenterlineSplitExtractor * New()
void PrintSelf(std::ostream &os, vtkIndent indent) override
virtual void ComputeCenterlineSplitting(vtkPolyData *input, vtkIdType cellId)=0