VMTK
Loading...
Searching...
No Matches
vtkvmtkUnstructuredGridCenterlineSections.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 __vtkvmtkUnstructuredGridCenterlineSections_h
34#define __vtkvmtkUnstructuredGridCenterlineSections_h
35
36#include "vtkPolyDataAlgorithm.h"
37#include "vtkvmtkWin32Header.h"
38#include "vtkPolyData.h"
39
40class vtkUnstructuredGrid;
41class vtkTransform;
42
43class VTK_VMTK_COMPUTATIONAL_GEOMETRY_EXPORT vtkvmtkUnstructuredGridCenterlineSections : public vtkPolyDataAlgorithm
44{
45 public:
46 vtkTypeMacro(vtkvmtkUnstructuredGridCenterlineSections,vtkPolyDataAlgorithm);
47 void PrintSelf(std::ostream& os, vtkIndent indent) override;
48
50
52
56 vtkSetObjectMacro(Centerlines,vtkPolyData);
57 vtkGetObjectMacro(Centerlines,vtkPolyData);
59
61
65 vtkSetObjectMacro(SectionSource,vtkPolyData);
66 vtkGetObjectMacro(SectionSource,vtkPolyData);
68
70
74 vtkSetStringMacro(SectionUpNormalsArrayName);
75 vtkGetStringMacro(SectionUpNormalsArrayName);
77
79
84 vtkSetStringMacro(SectionNormalsArrayName);
85 vtkGetStringMacro(SectionNormalsArrayName);
87
89
94 vtkSetStringMacro(AdditionalNormalsArrayName);
95 vtkGetStringMacro(AdditionalNormalsArrayName);
97
99
103 vtkSetStringMacro(AdditionalScalarsArrayName);
104 vtkGetStringMacro(AdditionalScalarsArrayName);
106
108
112 vtkSetMacro(TransformSections,int);
113 vtkGetMacro(TransformSections,int);
114 vtkBooleanMacro(TransformSections,int);
116
118
122 vtkSetMacro(UseSectionSource,int);
123 vtkGetMacro(UseSectionSource,int);
124 vtkBooleanMacro(UseSectionSource,int);
126
128
133 vtkSetMacro(SourceScaling,int);
134 vtkGetMacro(SourceScaling,int);
135 vtkBooleanMacro(SourceScaling,int);
137
139
142 vtkSetVectorMacro(OriginOffset,double,3);
143 vtkGetVectorMacro(OriginOffset,double,3);
145
147
151 vtkSetStringMacro(VectorsArrayName);
152 vtkGetStringMacro(VectorsArrayName);
154
156
161 vtkSetStringMacro(SectionIdsArrayName);
162 vtkGetStringMacro(SectionIdsArrayName);
164
169 vtkGetObjectMacro(SectionPointsPolyData,vtkPolyData);
170
171 protected:
174
175 int FillInputPortInformation(int, vtkInformation *info) override;
176
177 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override;
178
179 double ComputeAngle(double vector0[3], double vector1[3]);
180 void CreateTransform(vtkTransform* transform, double currentOrigin[3], double currentNormal[3], double currentUpNormal[3], double targetOrigin[3], double targetNormal[3], double targetUpNormal[3]);
181
182 vtkPolyData* Centerlines;
183 vtkPolyData* SectionSource;
185
191
193
195
198
199 double OriginOffset[3];
200
201 private:
203 void operator=(const vtkvmtkUnstructuredGridCenterlineSections&); // Not implemented.
204};
205
206#endif
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
static vtkvmtkUnstructuredGridCenterlineSections * New()
void CreateTransform(vtkTransform *transform, double currentOrigin[3], double currentNormal[3], double currentUpNormal[3], double targetOrigin[3], double targetNormal[3], double targetUpNormal[3])
void PrintSelf(std::ostream &os, vtkIndent indent) override