VMTK
Loading...
Searching...
No Matches
vtkvmtkPolyDataCenterlineSections.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=========================================================================*/
36
37#ifndef __vtkvmtkPolyDataCenterlineSections_h
38#define __vtkvmtkPolyDataCenterlineSections_h
39
40#include "vtkPolyDataAlgorithm.h"
41//#include "vtkvmtkComputationalGeometryWin32Header.h"
42#include "vtkvmtkWin32Header.h"
43#include "vtkPolyData.h"
44
45class VTK_VMTK_COMPUTATIONAL_GEOMETRY_EXPORT vtkvmtkPolyDataCenterlineSections : public vtkPolyDataAlgorithm
46{
47 public:
48 vtkTypeMacro(vtkvmtkPolyDataCenterlineSections,vtkPolyDataAlgorithm);
49 void PrintSelf(std::ostream& os, vtkIndent indent) override;
50
52
54
58 vtkSetObjectMacro(Centerlines,vtkPolyData);
59 vtkGetObjectMacro(Centerlines,vtkPolyData);
61
63
71
73
81
83
91
93
101
103
111
112 protected:
115
116 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override;
117
127 void ComputeCenterlineSections(vtkPolyData* input, vtkPolyData* output);
128
137 virtual bool ComputeSectionPlane(vtkIdType cellId, vtkIdType cellPointIndex, double origin[3], double normal[3]);
138
147 virtual void ExtractSection(vtkPolyData* input, double origin[3], double normal[3], vtkPolyData* section, bool & closed);
148
154 virtual void ProcessSection(vtkPolyData* input, vtkIdType pointId, vtkIdType sectionId, vtkPolyData* section, double origin[3], double normal[3], bool closed);
155
160 bool AbortRequested();
161
162 vtkPolyData* Centerlines;
163
169
170 private:
172 void operator=(const vtkvmtkPolyDataCenterlineSections&); // Not implemented.
173};
174
175#endif
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
virtual void ExtractSection(vtkPolyData *input, double origin[3], double normal[3], vtkPolyData *section, bool &closed)
void PrintSelf(std::ostream &os, vtkIndent indent) override
void ComputeCenterlineSections(vtkPolyData *input, vtkPolyData *output)
virtual void ProcessSection(vtkPolyData *input, vtkIdType pointId, vtkIdType sectionId, vtkPolyData *section, double origin[3], double normal[3], bool closed)
static vtkvmtkPolyDataCenterlineSections * New()
virtual bool ComputeSectionPlane(vtkIdType cellId, vtkIdType cellPointIndex, double origin[3], double normal[3])